controller-serviceaccount.yaml 623 B

123456789101112131415161718
  1. {{- if or .Values.serviceAccount.create -}}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. labels:
  6. {{- include "ingress-nginx.labels" . | nindent 4 }}
  7. app.kubernetes.io/component: controller
  8. {{- with .Values.controller.labels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. name: {{ template "ingress-nginx.serviceAccountName" . }}
  12. namespace: {{ .Release.Namespace }}
  13. {{- if .Values.serviceAccount.annotations }}
  14. annotations:
  15. {{- toYaml .Values.serviceAccount.annotations | indent 4 }}
  16. {{- end }}
  17. automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
  18. {{- end }}