Skip to content

Instantly share code, notes, and snippets.

@samair
Last active January 2, 2020 04:53
Show Gist options
  • Save samair/4ba56b16cef44baf89cfe6255c965bfd to your computer and use it in GitHub Desktop.
Save samair/4ba56b16cef44baf89cfe6255c965bfd to your computer and use it in GitHub Desktop.
Scale a deployment:
============================
kubectl scale deployment alphamon-user --replicas=2
Update/Change image of a deployment:
=======================================
kubectl set image deployments/alphamon-user alphamon-user=gcr.io/alphamon-982144/alphamon-user:v2
Describe a deployment:
======================================
kubectl describe deployments/alphamon-user
Generate and push container image to GCR:
====================================================================================
./mvnw com.google.cloud.tools:jib-maven-plugin:build -Dimage=gcr.io/alphamon-982144/alphamon-device:v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment