2021-09-02 17:08:08 +00:00
|
|
|
{{- define "addons-values" }}
|
|
|
|
|
2021-12-19 22:18:01 +00:00
|
|
|
{{- with .Values.addons.clusterBackup }}
|
|
|
|
clusterBackup:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2022-05-10 16:43:06 +00:00
|
|
|
{{- with .Values.addons.forseti }}
|
|
|
|
forseti:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2021-12-19 22:18:01 +00:00
|
|
|
{{- with index .Values "addons" "aws-node-termination-handler" }}
|
|
|
|
aws-node-termination-handler:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
2022-09-11 11:54:56 +00:00
|
|
|
{{- with $.Values.metrics }}
|
|
|
|
enablePrometheusServer: {{ .enabled }}
|
|
|
|
{{- end }}
|
2021-12-19 22:18:01 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with .Values.addons.fuseDevicePlugin }}
|
|
|
|
fuseDevicePlugin:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2022-05-10 16:43:06 +00:00
|
|
|
{{- with .Values.addons.awsNeuron }}
|
|
|
|
awsNeuron:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2022-09-14 17:08:14 +00:00
|
|
|
{{- with index .Values "addons" "nvidia-device-plugin" }}
|
|
|
|
nvidia-device-plugin:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2022-05-10 16:43:06 +00:00
|
|
|
{{- with index .Values "addons" "external-dns" }}
|
|
|
|
external-dns:
|
2021-09-02 17:08:08 +00:00
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2022-09-11 11:54:56 +00:00
|
|
|
{{- with index .Values "addons" "cluster-autoscaler" }}
|
|
|
|
cluster-autoscaler:
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
autoDiscovery:
|
|
|
|
clusterName: {{ $.Values.global.clusterName }}
|
|
|
|
|
|
|
|
{{- with $.Values.global.aws }}
|
|
|
|
awsRegion: {{ .region }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with $.Values.metrics }}
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: {{ .enabled }}
|
|
|
|
prometheusRule:
|
|
|
|
enabled: {{ .enabled }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- with .IamArn }}
|
|
|
|
extraEnv:
|
|
|
|
AWS_ROLE_ARN: "{{ . }}"
|
|
|
|
AWS_WEB_IDENTITY_TOKEN_FILE: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token"
|
|
|
|
AWS_STS_REGIONAL_ENDPOINTS: "regional"
|
|
|
|
extraVolumes:
|
|
|
|
- name: aws-token
|
|
|
|
projected:
|
|
|
|
sources:
|
|
|
|
- serviceAccountToken:
|
|
|
|
path: token
|
|
|
|
expirationSeconds: 86400
|
|
|
|
audience: "sts.amazonaws.com"
|
|
|
|
extraVolumeMounts:
|
|
|
|
- name: aws-token
|
|
|
|
mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/"
|
|
|
|
readOnly: true
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- end }}
|
|
|
|
|
2021-09-02 17:08:08 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- define "addons-argo" }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ include "kubezero-app.app" . }}
|