
We are seeing error [0] during deployment. This is an attempt to fix the issue. [0] Error Messages StatusCode.UNKNOWN, configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system" Change-Id: I9b962d3b173fc59685c95901581c4ad0f31aa4b9
96 lines
2.5 KiB
YAML
96 lines
2.5 KiB
YAML
{{/*
|
|
Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.deployment_tiller }}
|
|
{{- $envAll := . }}
|
|
{{- $dependencies := .Values.dependencies.tiller_deploy }}
|
|
{{- $serviceAccountName := "tiller-deploy" }}
|
|
{{ tuple $envAll $dependencies $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: run-tiller
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cluster-admin
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ $serviceAccountName }}
|
|
namespace: {{ .Release.Namespace }}
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: helm
|
|
name: tiller
|
|
name: tiller-deploy
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: helm
|
|
name: tiller
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 1
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: helm
|
|
name: tiller
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
containers:
|
|
- env:
|
|
- name: TILLER_NAMESPACE
|
|
value: {{ .Values.Name }}
|
|
- name: TILLER_HISTORY_MAX
|
|
value: {{ .Values.deployment.tiller_history | quote }}
|
|
image: {{ .Values.images.tags.tiller }}
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /liveness
|
|
port: 44135
|
|
scheme: HTTP
|
|
initialDelaySeconds: 1
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
name: tiller
|
|
ports:
|
|
- containerPort: 44134
|
|
name: tiller
|
|
protocol: TCP
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /readiness
|
|
port: 44135
|
|
scheme: HTTP
|
|
initialDelaySeconds: 1
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
resources: {}
|
|
status: {}
|
|
{{- end }}
|