-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path03-playing-with-helm.bash
50 lines (39 loc) · 1.42 KB
/
03-playing-with-helm.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#
# Online Talk part 3: Playing with helm
#
# At the end of this script, you will experience some issues with Helm and then have it configured for your minikube cluster
## NOTE: if you want to reproduce the same environment, execute these previous commands
# kubectl config use-context minikube
# kubectl delete clusterrolebinding minikube-rbac
# Set up helm using the last set of commands
## Try deploying a dokuwiki chart
kubectl config use-context jsalmeron@minikube
helm install stable/dokuwiki --namespace=test
## We need to grant some extra permissions for jsalmeron to access tiller
kubectl config use-context minikube
kubectl apply -f ./yaml/07-helm-tiller-access.yaml
kubectl apply -f ./yaml/08-salme-use-tiller.yaml
## Try now
kubectl config use-context jsalmeron@minikube
helm ls
helm install stable/dokuwiki --namespace=test
kubectl get pods -n test -w
helm install stable/dokuwiki
kubectl run --image=bitnami/dokuwiki dokuwiki
kubectl get pods
helm install stable/dokuwiki --namespace=kube-system
## Let's delete tiller
kubectl config use-context minikube
helm reset --force
helm init
## Let's try now
helm ls
kubectl config use-context jsalmeron@minikube
helm install stable/dokuwiki
## Let's fix this
kubectl config use-context minikube
kubectl create serviceaccount tiller-sa -n kube-system
kubectl apply -f yaml/09-tiller-clusterrolebinding.yaml
## Redeploy helm
helm init --upgrade --service-account tiller-sa