Code Server Cheatsheet - rivernews/iriversland2-kubernetes GitHub Wiki
Quickly spin up a code-server pod
Create a on-the-fly pod that will clean up itself:
kubectl run -i --tty --rm debug --image=codercom/code-server:latest --restart=Never \
--env="PASSWORD=123" --env="DOCKER_USER:root" --port=8080 -- /home/coder
Then, port forward:
KUBECONFIG=~/.kube/kubeconfig.yaml kubectl port-forward pod/debug 8080
We can now access it in browser at http://localhost:8080!
The limitation is you need kubectl's port-forwarding, so iPad cannot use it. But on your laptop it's good to go. kubectl supports M1 Apple Silicon too.
Use on iPad: Expose Code Server to outside world
Works out of the box with our own micro service tf module! As long as cert-manager works, and you make the server expose to the right port - which we did both - then it's no difference from iriversland-api & apply-tracky-api.
Reference
- Dockerhub Code-Server