Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:39:13] C:1
- $ helm reset --tiller-namespace integrations-acc --force
- Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster.
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:39:38] C:1
- $ helm init --service-account tiller --tiller-namespace integrations-acc --override 'spec.template.spec.containers[0].resources.limits.cpu'="2" --override 'spec.template.spec.containers[0].resources.limits.memory'="1Gi" --debug --upgrade
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- creationTimestamp: null
- labels:
- app: helm
- name: tiller
- name: tiller-deploy
- namespace: integrations-acc
- spec:
- strategy: {}
- template:
- metadata:
- creationTimestamp: null
- labels:
- app: helm
- name: tiller
- spec:
- containers:
- - env:
- - name: TILLER_NAMESPACE
- value: integrations-acc
- - name: TILLER_HISTORY_MAX
- value: "0"
- image: gcr.io/kubernetes-helm/tiller:v2.7.2
- imagePullPolicy: IfNotPresent
- livenessProbe:
- httpGet:
- path: /liveness
- port: 44135
- initialDelaySeconds: 1
- timeoutSeconds: 1
- name: tiller
- ports:
- - containerPort: 44134
- name: tiller
- readinessProbe:
- httpGet:
- path: /readiness
- port: 44135
- initialDelaySeconds: 1
- timeoutSeconds: 1
- resources:
- limits:
- cpu: "2"
- memory: 1Gi
- serviceAccountName: tiller
- status: {}
- ---
- apiVersion: v1
- kind: Service
- metadata:
- creationTimestamp: null
- labels:
- app: helm
- name: tiller
- name: tiller-deploy
- namespace: integrations-acc
- spec:
- ports:
- - name: tiller
- port: 44134
- targetPort: tiller
- selector:
- app: helm
- name: tiller
- type: ClusterIP
- status:
- loadBalancer: {}
- ...
- $HELM_HOME has been configured at /Users/maxx/.helm.
- Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
- Happy Helming!
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:40:09] C:1
- $ helm del --purge rmlater3 --tiller-namespace integrations-acc
- release "rmlater3" deleted
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:40:26]
- $ helm install stable/drupal --tiller-namespace integrations-acc --namespace integrations-acc --name rmlater3
- NAME: rmlater3
- LAST DEPLOYED: Thu Dec 28 16:40:30 2017
- NAMESPACE: integrations-acc
- STATUS: DEPLOYED
- RESOURCES:
- ==> v1/PersistentVolumeClaim
- NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
- rmlater3-mariadb Pending 1s
- rmlater3-drupal-apache Pending 1s
- rmlater3-drupal-drupal Pending 1s
- ==> v1/Service
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
- rmlater3-mariadb ClusterIP 10.233.61.241 <none> 3306/TCP 1s
- rmlater3-drupal LoadBalancer 10.233.22.34 <pending> 80:31815/TCP,443:31321/TCP 1s
- ==> v1beta1/Deployment
- NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
- rmlater3-mariadb 1 0 0 0 1s
- rmlater3-drupal 1 0 0 0 1s
- ==> v1/Secret
- NAME TYPE DATA AGE
- rmlater3-mariadb Opaque 2 1s
- rmlater3-drupal Opaque 1 1s
- ==> v1/ConfigMap
- NAME DATA AGE
- rmlater3-mariadb 1 1s
- rmlater3-mariadb-tests 1 1s
- NOTES:
- *******************************************************************
- *** PLEASE BE PATIENT: Drupal may take a few minutes to install ***
- *******************************************************************
- 1. Get the Drupal URL:
- NOTE: It may take a few minutes for the LoadBalancer IP to be available.
- Watch the status with: 'kubectl get svc --namespace integrations-acc -w rmlater3-drupal'
- export SERVICE_IP=$(kubectl get svc --namespace integrations-acc rmlater3-drupal -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
- echo http://$SERVICE_IP/
- 2. Login with the following credentials
- echo Username: user
- echo Password: $(kubectl get secret --namespace integrations-acc rmlater3-drupal -o jsonpath="{.data.drupal-password}" | base64 --decode)
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:40:32]
- $ helm del --purge rmlater3 --tiller-namespace integrations-acc
- helm ls release "rmlater3" deleted
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:41:18]
- $ helm reset --tiller-namespace integrations-acc --force
- Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster.
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:42:09]
- $ kubectl config use-context integrations@kube.a.nl02
- Switched to context "integrations@kube.a.nl02".
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/test-tiller-with-integrations on git:master x [16:42:22]
- $ vim tiller.rolebinding.yaml
- # Changed the rolebinding to use the tiller-integrations-acc service account instead of the tiller service account.
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:46:44]
- $ cat tiller.rolebinding.yaml
- kind: RoleBinding
- apiVersion: rbac.authorization.k8s.io/v1beta1
- metadata:
- name: tiller-binding-integrations-acc
- namespace: integrations-acc
- subjects:
- - kind: ServiceAccount
- # name: tiller
- name: tiller-integrations-acc
- namespace: integrations-acc
- roleRef:
- kind: Role
- name: tiller-manager-role-integrations-acc
- apiGroup: rbac.authorization.k8s.io
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:42:49]
- $ kubectl config use-context admin@kube.a.nl02
- Switched to context "admin@kube.a.nl02".
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:42:53]
- $ kubectl get sa -n integrations-acc
- NAME SECRETS AGE
- default 1 34d
- tiller 1 50m
- tiller-integrations-acc 1 23m
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:43:07]
- $ kubectl replace -f tiller.rolebinding.yaml
- rolebinding "tiller-binding-integrations-acc" replaced
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:43:13]
- $ kubectl config use-context integrations@kube.a.nl02
- Switched to context "integrations@kube.a.nl02".
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:44:04]
- $ helm init --service-account tiller-integrations-acc --tiller-namespace integrations-acc --override 'spec.template.spec.containers[0].resources.limits.cpu'="2" --override 'spec.template.spec.containers[0].resources.limits.memory'="1Gi" --debug
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- creationTimestamp: null
- labels:
- app: helm
- name: tiller
- name: tiller-deploy
- namespace: integrations-acc
- spec:
- strategy: {}
- template:
- metadata:
- creationTimestamp: null
- labels:
- app: helm
- name: tiller
- spec:
- containers:
- - env:
- - name: TILLER_NAMESPACE
- value: integrations-acc
- - name: TILLER_HISTORY_MAX
- value: "0"
- image: gcr.io/kubernetes-helm/tiller:v2.7.2
- imagePullPolicy: IfNotPresent
- livenessProbe:
- httpGet:
- path: /liveness
- port: 44135
- initialDelaySeconds: 1
- timeoutSeconds: 1
- name: tiller
- ports:
- - containerPort: 44134
- name: tiller
- readinessProbe:
- httpGet:
- path: /readiness
- port: 44135
- initialDelaySeconds: 1
- timeoutSeconds: 1
- resources:
- limits:
- cpu: "2"
- memory: 1Gi
- serviceAccountName: tiller-integrations-acc
- status: {}
- ---
- apiVersion: v1
- kind: Service
- metadata:
- creationTimestamp: null
- labels:
- app: helm
- name: tiller
- name: tiller-deploy
- namespace: integrations-acc
- spec:
- ports:
- - name: tiller
- port: 44134
- targetPort: tiller
- selector:
- app: helm
- name: tiller
- type: ClusterIP
- status:
- loadBalancer: {}
- ...
- $HELM_HOME has been configured at /Users/maxx/.helm.
- Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
- Happy Helming!
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:45:29] C:1
- $ kubectl get pods -n integrations-acc
- NAME READY STATUS RESTARTS AGE
- tiller-deploy-57755c7847-hhbdt 1/1 Running 0 1m
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:45:31]
- $ helm install stable/drupal --tiller-namespace integrations-acc --namespace integrations-acc --name rmlater3
- Error: Get http://localhost:8080/version: dial tcp [::1]:8080: getsockopt: connection refused
- # maxx @ MacBook-Pro in ~/TK/kubernetes/git/helm/acc on git:master x [16:46:07] C:1
- $ kubectl logs tiller-deploy-57755c7847-hhbdt -n integrations-acc
- [main] 2017/12/28 15:44:16 Starting Tiller v2.7.2 (tls=false)
- [main] 2017/12/28 15:44:16 GRPC listening on :44134
- [main] 2017/12/28 15:44:16 Probes listening on :44135
- [main] 2017/12/28 15:44:16 Storage driver is ConfigMap
- [main] 2017/12/28 15:44:16 Max history per release is 0
- [tiller] 2017/12/28 15:44:34 preparing install for rmlater3
- [storage] 2017/12/28 15:44:34 getting release history for "rmlater3"
- [storage/driver] 2017/12/28 15:44:34 query: failed to query with labels: Get http://localhost:8080/api/v1/namespaces/integrations-acc/configmaps?labelSelector=NAME%3Drmlater3%2COWNER%3DTILLER: dial tcp [::1]:8080: getsockopt: connection refused
- [tiller] 2017/12/28 15:44:34 failed install prepare step: Get http://localhost:8080/version: dial tcp [::1]:8080: getsockopt: connection refused
- [tiller] 2017/12/28 15:58:07 preparing install for rmlater3
- [storage] 2017/12/28 15:58:07 getting release history for "rmlater3"
- [storage/driver] 2017/12/28 15:58:07 query: failed to query with labels: Get http://localhost:8080/api/v1/namespaces/integrations-acc/configmaps?labelSelector=NAME%3Drmlater3%2COWNER%3DTILLER: dial tcp [::1]:8080: getsockopt: connection refused
- [tiller] 2017/12/28 15:58:07 failed install prepare step: Get http://localhost:8080/version: dial tcp [::1]:8080: getsockopt: connection refused
Add Comment
Please, Sign In to add comment