add service ec-config-server
This commit is contained in:
26
apps/ec-config-server/env/k3s-cluster/templates/service-account.yaml
vendored
Normal file
26
apps/ec-config-server/env/k3s-cluster/templates/service-account.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "mr-config-server.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "mr-config-server.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ .Release.Namespace }}-config-reader-binding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "mr-config-server.serviceAccountName" . }}
|
||||
apiGroup: ""
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
apiGroup: ""
|
||||
kind: ClusterRole
|
||||
name: config-reader
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user