Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Helm chart and installation instructions #11

Merged
merged 1 commit into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,22 @@ the GCloud API. See [documentation](https://developers.google.com/identity/proto
### Deploy with Helm

```
brew install kubernetes-helm
helm init --history-max 25 --upgrade
helm package chart/estafette-gke-node-pool-shifter --version 1.0.11
helm upgrade estafette-gke-node-pool-shifter estafette-gke-node-pool-shifter-1.0.11.tgz --namespace estafette --install --set rbac.create=true --set googleServiceAccount=$(./google_service_account.json | base64)
# Prepare Helm/Tiller
$ kubectl create sa tiller -n kube-system
$ helm init --service-account tiller
$ kubectl create clusterrolebinding tiller \
--clusterrole=cluster-admin \
--serviceaccount=kube-system:tiller
# Install
$ helm upgrade estafette-gke-node-pool-shifter \
--namespace estafette \
--install \
--set rbac.create=true \
--set-file googleServiceAccount=./google_service_account.json \
--set nodePool.from=default-pool \
--set nodePool.to=preemptible-pool \
chart/estafette-gke-node-pool-shifter
```

### Deploy without Helm
Expand Down
3 changes: 1 addition & 2 deletions chart/estafette-gke-node-pool-shifter/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ metadata:
{{- end }}
type: Opaque
data:
# Waiting for https://github.com/kubernetes/helm/issues/1754
google-service-account.json: {{ .Values.googleServiceAccount }}
google-service-account.json: {{ .Values.googleServiceAccount | b64enc }}