Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 721 Bytes

deploy-api-to-google-registry.md

File metadata and controls

38 lines (33 loc) · 721 Bytes

Deploy API Application To Google Cloud Registry

Build The App:

$ ./gradlew build docker

Configure Local Docker Registry:

$ gcloud auth configure-docker

Tag The Docker Image:

# Grab the image id from this list
$ docker images --all
$ docker tag <image id> us.gcr.io/enfuse-gke/<image name to appear in google registry>

Push To Registry:

$ docker push us.gcr.io/enfuse-gke/<image name>

Deploy The Image To GKE:

kubectl run <name the GKE deployment> --image=us.gcr.io/enfuse-gke/<image name>--port=8080

Expose Image As A Service:

 kubectl expose deployment <name of GKE deployment> --type=LoadBalancer --name=<name the service>