Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not port forward in Kubernetes #50

Closed
franz101 opened this issue Jan 30, 2021 · 2 comments
Closed

Can not port forward in Kubernetes #50

franz101 opened this issue Jan 30, 2021 · 2 comments

Comments

@franz101
Copy link

franz101 commented Jan 30, 2021

apiVersion: apps/v1
kind: Deployment
metadata:
name: coder
labels:
name: coder
namespace: coder
spec:
replicas: 1
selector:
matchLabels:
name: coder
template:
metadata:
labels:
name: coder
spec:
nodeSelector:
name: spot
containers:
- name: coder
image: codercom/code-server
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8443
- containerPort: 80
resources:
requests:
cpu: "1"
memory: 501Mi
volumeMounts:
- name: efs-coder
mountPath: "/config"
subPath: coder/config
- name: efs-coder
mountPath: "/home/coder/project"
subPath: coder/project
- name: efs-coder
mountPath: "/home/coder/notebooks"
subPath: jupyter
env:
- name: PUID
value: "1000"
# - DOCKER_MODS: taisun/nzbget-mod
- name: PGID
value: "1000"
- name: PASSWORD
value: "foobar"
- name: SUDO_PASSWORD
value: "fooobar"
# - name: TZ
# value: "Europe/Berlin"
dnsPolicy: ClusterFirst
volumes:
- name: efs-coder
persistentVolumeClaim:
claimName: coder-local-claim

What am I missing? probably something basic:
kubectl port-forward deployments/coder 8443:8443 -n coder

@project-bot project-bot bot added this to To do in Issue & PR Tracker Jan 30, 2021
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@franz101
Copy link
Author

Lool wrong image

Issue & PR Tracker automation moved this from To do to Done Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant