https://github.com/chees/twistlocktest
https://github.com/chees/twistlocktest
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chees/twistlocktest
- Owner: chees
- Created: 2016-02-05T14:35:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T15:33:08.000Z (over 10 years ago)
- Last Synced: 2023-03-11T11:48:13.850Z (over 3 years ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy new version
Build and push to gcr.io:
./build_and_push.sh
Rolling update:
kubectl rolling-update twistlocktest --image=eu.gcr.io/chees-info/twistlocktest:v4
# One time setup
Build and push to gcr.io:
./build_and_push.sh
Create cluster:
gcloud container clusters create cluster-1 --num-nodes 1 --machine-type g1-small
Start on the cluster:
kubectl run twistlocktest --image=eu.gcr.io/chees-info/twistlocktest:v3 --port=8080
Create a loadbalancer:
kubectl expose rc twistlocktest --type="LoadBalancer"
To get the external ip of the loadbalancer:
kubectl get services twistlocktest
# Handy stuff
View:
open http://104.155.61.161:8080/Christiaan
View Kubernetes UI:
kubectl proxy
open http://localhost:8001/ui
Scale replication controller:
kubectl scale rc twistlocktest --replicas=3
Scale nodes:
gcloud container clusters resize cluster-1 2