Start kubernetes service with a dockerhub image

Опубликовано: 07 Октябрь 2024
на канале: kdguntu
39
1

Use kubectl to deploy and expose a kubernetes cluster:
kubectl create deploy pweb --image=jancelis/pythonweb
kubectl scale deploy pweb --replicas=3
kubectl expose deploy pweb --type=NodePort --port=8888 --target-port=8000
kubectl get svc pweb
kubectl run -it --rm --restart=Never busybox --image=busybox -- wget -O - pweb:8888

Demo of creating the docker image on this link:
   • Create a docker with a python webserver