Skip to content

Instantly share code, notes, and snippets.

@priteshgudge
Last active February 16, 2019 18:51
Show Gist options
  • Select an option

  • Save priteshgudge/54c5cb394714bfa7720049aaca00fc49 to your computer and use it in GitHub Desktop.

Select an option

Save priteshgudge/54c5cb394714bfa7720049aaca00fc49 to your computer and use it in GitHub Desktop.
build_and_push
sh build.sh
docker build --target app -f Dockerfile -t asia.gcr.io/pritesh-sample-1/testapplication:dev_0.0.1 .
docker push asia.gcr.io/pritesh-sample-1/testapplication:dev_0.0.1
docker run -p 8080:8080 asia.gcr.io/pritesh-sample-1/testapplication:dev_0.0.1
http://localhost:8080/ping/
#Kubernetes
# gcloud container clusters get-credentials test-cluster --zone=asia-south1-a
# gcloud compute firewall-rules create my-rule --allow=tcp:8011
# kubectl get pods
# kubectl get services
# kubectl apply -f file.yml
# kubectl delete service ...
# kubectl logs -f --tail 100 pod_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment