Created
May 8, 2019 16:27
-
-
Save acaire/54502043f839694fabb35fbf8dbc9571 to your computer and use it in GitHub Desktop.
magic namespace bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 - Install magic-namespace | |
$ helm upgrade --install test-tiller stable/magic-namespace --set tiller.storage=secret | |
Release "test-tiller" does not exist. Installing it now. | |
NAME: test-tiller | |
LAST DEPLOYED: Thu May 9 00:14:20 2019 | |
NAMESPACE: default | |
STATUS: DEPLOYED | |
RESOURCES: | |
==> v1/Pod(related) | |
NAME READY STATUS RESTARTS AGE | |
tiller-deploy-64bfbd89b6-dlk92 0/1 ContainerCreating 0 0s | |
==> v1/RoleBinding | |
NAME AGE | |
tiller-admin 0s | |
==> v1/ServiceAccount | |
NAME SECRETS AGE | |
tiller 1 0s | |
==> v1beta1/Deployment | |
NAME READY UP-TO-DATE AVAILABLE AGE | |
tiller-deploy 0/1 1 0 0s | |
NOTES: | |
The namespace "default" has been created if it didn't already exist. | |
The following service accounts have been created in the namespace: | |
- tiller | |
The following role bindings have been created in the namespace: | |
- ServiceAccount[tiller] --> [admin] | |
Utilize the Tiller in your new namespace like so: | |
$ helm <command> --tiller-namespace default | |
# 2 - Show the logs, note storage driver is "Memory" | |
$ kubectl logs tiller-deploy-64bfbd89b6-dlk92 | |
[main] 2019/05/08 16:14:32 Starting Tiller v2.8.1 (tls=false) | |
[main] 2019/05/08 16:14:32 GRPC listening on 127.0.0.1:44134 | |
[main] 2019/05/08 16:14:32 Probes listening on :44135 | |
[main] 2019/05/08 16:14:32 Storage driver is Memory | |
[main] 2019/05/08 16:14:32 Max history per release is 0 | |
# 3 - Get the pod config, note the storage param quotes | |
$ kubectl get pod tiller-deploy-64bfbd89b6-dlk92 -o yaml | grep storage | |
- --storage="secret" | |
# 4 - Change the pod config to not have quotes | |
$ kubectl get deploy -o yaml | sed 's/"secret"/secret/g' | kubectl apply -f - | |
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply | |
deployment.extensions/tiller-deploy configured | |
# 5 - Get the pod config, note lack of quotes | |
$ kubectl get pod -o yaml -l name=tiller | grep storage | |
- --storage=secret | |
# 6 - Get the logs, note storage drive is "Secret" | |
$ kubectl logs -l name=tiller | |
[main] 2019/05/08 16:17:57 Starting Tiller v2.8.1 (tls=false) | |
[main] 2019/05/08 16:17:57 GRPC listening on 127.0.0.1:44134 | |
[main] 2019/05/08 16:17:57 Probes listening on :44135 | |
[main] 2019/05/08 16:17:57 Storage driver is Secret | |
[main] 2019/05/08 16:17:57 Max history per release is 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment