gcloud container clusters create kaka-cluster --num-nodes=1
- kaka-cluster: the name of the cluster
kubectl run kaka-server --image=gcr.io/kaka-234500/dockerflask_docker-flask:latest --port 5000 --env="FLASK_APP=app/main.py" --env="PORT=5000" --env="HOST=0.0.0.0"
- kaka-server: the name of the workload
- image: the name of the image on the hub
- port: the exposed by the docker
- env: the environment variables
kubectl expose deployment kaka-server --type=LoadBalancer --port 80 --target-port 5000
- kaka-server: the name of the workload
- port: the exposed port
- target-port: the exposed by the docker
kubectl get service