89 lines
2.4 KiB
YAML
89 lines
2.4 KiB
YAML
{{- define "argo-values" }}
|
|
|
|
argo-cd:
|
|
enabled: {{ default "false" (index .Values "argo" "argo-cd" "enabled") }}
|
|
|
|
configs:
|
|
{{- with index .Values "argo" "argo-cd" "configs" }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
params:
|
|
{{- if not $.Values.global.highAvailable }}
|
|
# Reduce load on API server on single node control plane
|
|
controller.status.processors: 2
|
|
controller.operation.processors: 1
|
|
controller.kubectl.parallelism.limit: 1
|
|
{{- else }}
|
|
controller.status.processors: 8
|
|
controller.operation.processors: 4
|
|
controller.kubectl.parallelism.limit: 4
|
|
{{- end }}
|
|
|
|
controller:
|
|
metrics:
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
repoServer:
|
|
metrics:
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
{{- with index .Values "argo" "argo-cd" "repoServer" }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
server:
|
|
metrics:
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
|
|
{{- if and ( index .Values "argo" "argo-cd" "istio" "enabled" ) .Values.istio.enabled }}
|
|
istio:
|
|
{{- with index .Values "argo" "argo-cd" "istio" }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- with index .Values "argo" "argo-cd" "kubezero" }}
|
|
kubezero:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
|
|
argocd-image-updater:
|
|
enabled: {{ default "false" (index .Values "argo" "argocd-image-updater" "enabled") }}
|
|
|
|
{{- with omit (index .Values "argo" "argocd-image-updater") "enabled" }}
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.global.aws }}
|
|
extraEnv:
|
|
- name: AWS_ROLE_ARN
|
|
value: "arn:aws:iam::{{ .Values.global.aws.accountId }}:role/{{ .Values.global.aws.region }}.{{ .Values.global.clusterName }}.argocd-image-updater"
|
|
- name: AWS_WEB_IDENTITY_TOKEN_FILE
|
|
value: "/var/run/secrets/sts.amazonaws.com/serviceaccount/token"
|
|
- name: AWS_STS_REGIONAL_ENDPOINTS
|
|
value: "regional"
|
|
- name: METADATA_TRIES
|
|
value: "0"
|
|
- name: AWS_REGION
|
|
value: {{ .Values.global.aws.region }}
|
|
volumes:
|
|
- name: aws-token
|
|
projected:
|
|
sources:
|
|
- serviceAccountToken:
|
|
path: token
|
|
expirationSeconds: 86400
|
|
audience: "sts.amazonaws.com"
|
|
volumeMounts:
|
|
- name: aws-token
|
|
mountPath: "/var/run/secrets/sts.amazonaws.com/serviceaccount/"
|
|
readOnly: true
|
|
{{- end }}
|
|
|
|
metrics:
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
|
|
{{- end }}
|
|
|
|
{{- define "argo-argo" }}
|
|
{{- end }}
|
|
|
|
{{ include "kubezero-app.app" . }}
|