Monday, August 12, 2019

How to deploy image in google registry to google kubernetes engine

If you already push you image with google registry you can deploy it easily by access that image and deploy to GKE

If you prefer to use command line I can show you like below

1. List all images in google registry
gcloud container images list --repository=eu.gcr.io/myproject

2. Install kubernetes
gcloud components install kubectl

3. Deploy image to GKE
kubectl run hello-server --image gcr.io/google-samples/hello-app:1.0 --port 8080




4. Kubernetes service
[Get] kubectl get services

[Delete] kubectl delete service hello-web
gcloud components install kubectl
gcloud components install kubectl
gcloud components install kubectl

No comments:

Post a Comment