default-backend-serviceaccount.yaml 573 B

1234567891011121314
  1. {{- if and .Values.defaultBackend.enabled .Values.defaultBackend.serviceAccount.create -}}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. labels:
  6. {{- include "ingress-nginx.labels" . | nindent 4 }}
  7. app.kubernetes.io/component: default-backend
  8. {{- with .Values.defaultBackend.labels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. name: {{ template "ingress-nginx.defaultBackend.serviceAccountName" . }}
  12. namespace: {{ .Release.Namespace }}
  13. automountServiceAccountToken: {{ .Values.defaultBackend.serviceAccount.automountServiceAccountToken }}
  14. {{- end }}