2019-11-05 00:17:25 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2022-11-30 23:25:22 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.server.deploymentAnnotations) }}
|
|
|
|
annotations:
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
name: {{ template "argo-cd.server.fullname" . }}
|
2024-05-14 15:17:31 +00:00
|
|
|
namespace: {{ include "argo-cd.namespace" . }}
|
2019-11-05 00:17:25 +00:00
|
|
|
labels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
spec:
|
2023-04-03 09:58:50 +00:00
|
|
|
{{- with include "argo-cd.strategy" (mergeOverwrite (deepCopy .Values.global.deploymentStrategy) .Values.server.deploymentStrategy) }}
|
|
|
|
strategy:
|
|
|
|
{{- trim . | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-11-01 19:26:44 +00:00
|
|
|
{{- if not .Values.server.autoscaling.enabled }}
|
|
|
|
replicas: {{ .Values.server.replicas }}
|
|
|
|
{{- end }}
|
|
|
|
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
|
2019-11-05 00:17:25 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 6 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2022-09-21 11:48:37 +00:00
|
|
|
checksum/cmd-params: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | sha256sum }}
|
2024-02-07 21:40:05 +00:00
|
|
|
{{- if .Values.configs.cm.create }}
|
2024-01-29 13:58:33 +00:00
|
|
|
checksum/cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | sha256sum }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.server.podAnnotations) }}
|
2022-01-31 19:26:04 +00:00
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
labels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 8 }}
|
2021-09-15 10:30:54 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.server.podLabels) }}
|
2021-08-24 12:48:03 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
|
|
|
spec:
|
2024-09-20 07:59:01 +00:00
|
|
|
{{- with .Values.server.runtimeClassName | default .Values.global.runtimeClassName }}
|
|
|
|
runtimeClassName: {{ . }}
|
|
|
|
{{- end }}
|
2022-06-02 12:26:08 +00:00
|
|
|
{{- with .Values.server.imagePullSecrets | default .Values.global.imagePullSecrets }}
|
2020-03-06 10:26:18 +00:00
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-02-23 18:11:54 +00:00
|
|
|
{{- with .Values.global.hostAliases }}
|
|
|
|
hostAliases:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.global.securityContext }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
2019-12-16 02:55:09 +00:00
|
|
|
{{- end }}
|
2023-03-02 14:28:23 +00:00
|
|
|
{{- with .Values.server.priorityClassName | default .Values.global.priorityClassName }}
|
|
|
|
priorityClassName: {{ . }}
|
|
|
|
{{- end }}
|
2023-10-27 09:43:52 +00:00
|
|
|
{{- if .Values.server.terminationGracePeriodSeconds }}
|
|
|
|
terminationGracePeriodSeconds: {{ .Values.server.terminationGracePeriodSeconds }}
|
|
|
|
{{- end }}
|
2024-01-05 12:56:59 +00:00
|
|
|
serviceAccountName: {{ include "argo-cd.server.serviceAccountName" . }}
|
2024-04-10 20:05:47 +00:00
|
|
|
automountServiceAccountToken: {{ .Values.server.automountServiceAccountToken }}
|
2019-11-05 00:17:25 +00:00
|
|
|
containers:
|
|
|
|
- name: {{ .Values.server.name }}
|
2021-10-21 20:55:34 +00:00
|
|
|
image: {{ default .Values.global.image.repository .Values.server.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.server.image.tag }}
|
2019-11-05 00:17:25 +00:00
|
|
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.server.image.imagePullPolicy }}
|
2023-05-02 12:29:30 +00:00
|
|
|
args:
|
|
|
|
- /usr/local/bin/argocd-server
|
2023-01-21 12:07:14 +00:00
|
|
|
- --port={{ .Values.server.containerPorts.server }}
|
|
|
|
- --metrics-port={{ .Values.server.containerPorts.metrics }}
|
feat: extraArgs allows same flag multiple times (#265)
* feat: extraArgs allows same flag multiple times
Superseeds #244 (I messed up the rebase :facepalm:)
Relates to #232
This change allows ArgoCD chart to render multiple times the same flag with different values
Mainly, if not only, used to specify multiple Redis Sentinel addresses
https://github.com/argoproj/argo-cd/blob/5ec5aeb002cfc9167dba0fb77e7a08a2dc0932cf/manifests/ha/base/overlays/argocd-application-controller-deployment.yaml#L16
https://github.com/argoproj/argo-cd/blob/aeb48b0a69be764f381511f7749d1e094fc79225/util/cache/cache.go#L33
```
--sentinel
```
using this syntax
```
controller:
extraArgs:
- --sentinel
- argocd-redis-ha-announce-0
- --sentinel
- argocd-redis-ha-announce-1
- --sentinel
- argocd-redis-ha-announce-2
```
instead of
```
controller:
extraArgs:
sentinel=argocd-redis-ha-announce-0:
sentinel=argocd-redis-ha-announce-1:
sentinel=argocd-redis-ha-announce-2:
```
Basically same syntax as the flags documentation
```
docker run --rm argoproj/argocd:v1.4.2 argocd-server help
...
Flags:
--app-state-cache-expiration duration Cache expiration for app state (default 1h0m0s)
--as string Username to impersonate for the operation
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--basehref string Value for base href in index.html. Used if Argo CD is running behind reverse proxy under subpath different from / (default "/")
--certificate-authority string Path to a cert file for the certificate authority
--client-certificate string Path to a client certificate file for TLS
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--connection-status-cache-expiration duration Cache expiration for cluster/repo connection status (default 1h0m0s)
--context string The name of the kubeconfig context to use
--default-cache-expiration duration Cache expiration default (default 24h0m0s)
--dex-server string Dex server address (default "http://argocd-dex-server:5556")
--disable-auth Disable client authentication
--gloglevel int Set the glog logging level
-h, --help help for argocd-server
--insecure Run server without TLS
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Path to a kube config. Only required if out-of-cluster
--loglevel string Set the logging level. One of: debug|info|warn|error (default "info")
--metrics-port int Start metrics on given port (default 8083)
-n, --namespace string If present, the namespace scope for this CLI request
--oidc-cache-expiration duration Cache expiration for OIDC state (default 3m0s)
--password string Password for basic authentication to the API server
--port int Listen on given port (default 8080)
--redis string Redis server hostname and port (e.g. argocd-redis:6379).
--redisdb int Redis database.
--repo-server string Repo server address (default "argocd-repo-server:8081")
--repo-server-timeout-seconds int Repo server RPC call timeout seconds. (default 60)
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
--sentinel stringArray Redis sentinel hostname and port (e.g. argocd-redis-ha-announce-0:6379).
--sentinelmaster string Redis sentinel master group name. (default "master")
--server string The address and port of the Kubernetes API server
--staticassets string Static assets directory path
--tlsmaxversion string The maximum SSL/TLS version that is acceptable (one of: 1.0|1.1|1.2)
--tlsminversion string The minimum SSL/TLS version that is acceptable (one of: 1.0|1.1|1.2)
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
--username string Username for basic authentication to the API server
--x-frame-options value Set X-Frame-Options header in HTTP responses to value. To disable, set to "". (default "sameorigin")
```
Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com>
* fix: bump up chart version
2020-03-19 18:55:16 +00:00
|
|
|
{{- with .Values.server.extraArgs }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
2019-12-05 23:50:47 +00:00
|
|
|
env:
|
2023-06-07 08:52:02 +00:00
|
|
|
{{- with (concat .Values.global.env .Values.server.env) }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
2022-03-31 12:18:54 +00:00
|
|
|
{{- end }}
|
2024-02-25 12:47:00 +00:00
|
|
|
- name: ARGOCD_SERVER_NAME
|
|
|
|
value: {{ template "argo-cd.server.fullname" . }}
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: ARGOCD_SERVER_INSECURE
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.insecure
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_BASEHREF
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.basehref
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_ROOTPATH
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.rootpath
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_LOGFORMAT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.log.format
|
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: ARGOCD_SERVER_LOG_LEVEL
|
2022-09-21 11:48:37 +00:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.log.level
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_REPO_SERVER
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: repo.server
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_DEX_SERVER
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.dex.server
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_DISABLE_AUTH
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.disable.auth
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_ENABLE_GZIP
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.enable.gzip
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_REPO_SERVER_TIMEOUT_SECONDS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.repo.server.timeout.seconds
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_X_FRAME_OPTIONS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.x.frame.options
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_CONTENT_SECURITY_POLICY
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.content.security.policy
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_REPO_SERVER_PLAINTEXT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.repo.server.plaintext
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_REPO_SERVER_STRICT_TLS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.repo.server.strict.tls
|
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: ARGOCD_SERVER_DEX_SERVER_PLAINTEXT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.dex.server.plaintext
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_DEX_SERVER_STRICT_TLS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.dex.server.strict.tls
|
|
|
|
optional: true
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: ARGOCD_TLS_MIN_VERSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.tls.minversion
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_TLS_MAX_VERSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.tls.maxversion
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_TLS_CIPHERS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.tls.ciphers
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_CONNECTION_STATUS_CACHE_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.connection.status.cache.expiration
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_OIDC_CACHE_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.oidc.cache.expiration
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_LOGIN_ATTEMPTS_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.login.attempts.expiration
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_STATIC_ASSETS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.staticassets
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_APP_STATE_CACHE_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.app.state.cache.expiration
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_SERVER
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: redis.server
|
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: REDIS_COMPRESSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: redis.compression
|
|
|
|
optional: true
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: REDISDB
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: redis.db
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_USERNAME
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2024-05-21 16:36:32 +00:00
|
|
|
name: {{ default "argocd-redis" .Values.externalRedis.existingSecret }}
|
2022-09-21 11:48:37 +00:00
|
|
|
key: redis-username
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2024-05-21 16:36:32 +00:00
|
|
|
name: {{ default "argocd-redis" .Values.externalRedis.existingSecret }}
|
|
|
|
{{- if .Values.externalRedis.host }}
|
2022-09-21 11:48:37 +00:00
|
|
|
key: redis-password
|
2024-05-21 16:36:32 +00:00
|
|
|
{{- else }}
|
|
|
|
key: auth
|
|
|
|
{{- end }}
|
2024-11-28 00:41:56 +00:00
|
|
|
optional: true
|
2024-06-26 11:28:42 +00:00
|
|
|
- name: REDIS_SENTINEL_USERNAME
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: {{ default (include "argo-cd.redis.fullname" .) .Values.externalRedis.existingSecret }}
|
|
|
|
key: redis-sentinel-username
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_SENTINEL_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: {{ default (include "argo-cd.redis.fullname" .) .Values.externalRedis.existingSecret }}
|
|
|
|
key: redis-sentinel-password
|
|
|
|
optional: true
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: ARGOCD_DEFAULT_CACHE_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.default.cache.expiration
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_MAX_COOKIE_NUMBER
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.http.cookie.maxnumber
|
|
|
|
optional: true
|
2023-08-08 14:35:41 +00:00
|
|
|
- name: ARGOCD_SERVER_LISTEN_ADDRESS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.listen.address
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_METRICS_LISTEN_ADDRESS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.metrics.listen.address
|
|
|
|
optional: true
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: ARGOCD_SERVER_OTLP_ADDRESS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: otlp.address
|
|
|
|
optional: true
|
2024-02-07 07:10:12 +00:00
|
|
|
- name: ARGOCD_SERVER_OTLP_INSECURE
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: otlp.insecure
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_SERVER_OTLP_HEADERS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: otlp.headers
|
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: ARGOCD_APPLICATION_NAMESPACES
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: application.namespaces
|
|
|
|
optional: true
|
2023-02-07 15:02:23 +00:00
|
|
|
- name: ARGOCD_SERVER_ENABLE_PROXY_EXTENSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.enable.proxy.extension
|
|
|
|
optional: true
|
2024-02-07 07:10:12 +00:00
|
|
|
- name: ARGOCD_K8SCLIENT_RETRY_MAX
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.k8sclient.retry.max
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_K8SCLIENT_RETRY_BASE_BACKOFF
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.k8sclient.retry.base.backoff
|
|
|
|
optional: true
|
2024-02-05 06:25:42 +00:00
|
|
|
- name: ARGOCD_API_CONTENT_TYPES
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.api.content.types
|
|
|
|
optional: true
|
2024-11-04 23:59:47 +00:00
|
|
|
- name: ARGOCD_SERVER_WEBHOOK_PARALLELISM_LIMIT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: server.webhook.parallelism.limit
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_APPLICATIONSET_CONTROLLER_ENABLE_NEW_GIT_FILE_GLOBBING
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: applicationsetcontroller.enable.new.git.file.globbing
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_APPLICATIONSET_CONTROLLER_SCM_ROOT_CA_PATH
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: applicationsetcontroller.scm.root.ca.path
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_APPLICATIONSET_CONTROLLER_ALLOWED_SCM_PROVIDERS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: applicationsetcontroller.allowed.scm.providers
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_APPLICATIONSET_CONTROLLER_ENABLE_SCM_PROVIDERS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: applicationsetcontroller.enable.scm.providers
|
|
|
|
optional: true
|
2025-02-04 11:25:53 +00:00
|
|
|
- name: ARGOCD_HYDRATOR_ENABLED
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: hydrator.enabled
|
|
|
|
optional: true
|
2021-05-21 16:43:24 +00:00
|
|
|
{{- with .Values.server.envFrom }}
|
2022-09-21 11:48:37 +00:00
|
|
|
envFrom:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
2019-12-05 23:50:47 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
volumeMounts:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.server.volumeMounts }}
|
2022-10-25 21:22:22 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2021-12-10 15:22:37 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
- mountPath: /app/config/ssh
|
|
|
|
name: ssh-known-hosts
|
|
|
|
- mountPath: /app/config/tls
|
|
|
|
name: tls-certs
|
2021-04-24 10:50:25 +00:00
|
|
|
- mountPath: /app/config/server/tls
|
|
|
|
name: argocd-repo-server-tls
|
2022-10-25 21:22:22 +00:00
|
|
|
- mountPath: /app/config/dex/tls
|
|
|
|
name: argocd-dex-server-tls
|
2021-12-15 10:15:02 +00:00
|
|
|
- mountPath: /home/argocd
|
|
|
|
name: plugins-home
|
2022-10-25 21:22:22 +00:00
|
|
|
- mountPath: /shared/app/custom
|
|
|
|
name: styles
|
2021-07-05 09:41:55 +00:00
|
|
|
- mountPath: /tmp
|
2022-10-25 21:22:22 +00:00
|
|
|
name: tmp
|
2024-11-04 23:59:47 +00:00
|
|
|
- name: argocd-cmd-params-cm
|
|
|
|
mountPath: /home/argocd/params
|
2022-10-25 21:22:22 +00:00
|
|
|
{{- if .Values.server.extensions.enabled }}
|
|
|
|
- mountPath: /tmp/extensions
|
|
|
|
name: extensions
|
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
ports:
|
2023-01-21 12:07:14 +00:00
|
|
|
- name: server
|
|
|
|
containerPort: {{ .Values.server.containerPorts.server }}
|
2019-11-05 00:17:25 +00:00
|
|
|
protocol: TCP
|
|
|
|
- name: metrics
|
2023-01-21 12:07:14 +00:00
|
|
|
containerPort: {{ .Values.server.containerPorts.metrics }}
|
2019-11-05 00:17:25 +00:00
|
|
|
protocol: TCP
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
2022-10-25 21:22:22 +00:00
|
|
|
path: /healthz?full=true
|
2023-01-21 12:07:14 +00:00
|
|
|
port: server
|
2019-11-05 00:17:25 +00:00
|
|
|
initialDelaySeconds: {{ .Values.server.livenessProbe.initialDelaySeconds }}
|
|
|
|
periodSeconds: {{ .Values.server.livenessProbe.periodSeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.server.livenessProbe.timeoutSeconds }}
|
|
|
|
successThreshold: {{ .Values.server.livenessProbe.successThreshold }}
|
|
|
|
failureThreshold: {{ .Values.server.livenessProbe.failureThreshold }}
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
2023-01-21 12:07:14 +00:00
|
|
|
port: server
|
2019-11-05 00:17:25 +00:00
|
|
|
initialDelaySeconds: {{ .Values.server.readinessProbe.initialDelaySeconds }}
|
|
|
|
periodSeconds: {{ .Values.server.readinessProbe.periodSeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.server.readinessProbe.timeoutSeconds }}
|
|
|
|
successThreshold: {{ .Values.server.readinessProbe.successThreshold }}
|
|
|
|
failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }}
|
|
|
|
resources:
|
2022-10-30 19:12:46 +00:00
|
|
|
{{- toYaml .Values.server.resources | nindent 10 }}
|
2023-05-23 20:29:26 +00:00
|
|
|
{{- with .Values.server.containerSecurityContext }}
|
2022-10-30 19:12:46 +00:00
|
|
|
securityContext:
|
2023-05-23 20:29:26 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.server.lifecycle }}
|
2021-02-03 13:51:58 +00:00
|
|
|
lifecycle:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
2021-09-16 17:59:20 +00:00
|
|
|
{{- end }}
|
2023-12-30 17:02:10 +00:00
|
|
|
{{- with .Values.server.extraContainers }}
|
|
|
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if or .Values.server.initContainers (and .Values.server.extensions.enabled .Values.server.extensions.extensionList) }}
|
|
|
|
initContainers:
|
|
|
|
{{- with .Values.server.initContainers }}
|
|
|
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
|
|
|
{{- end }}
|
2021-12-10 15:22:37 +00:00
|
|
|
{{- if .Values.server.extensions.enabled }}
|
2023-12-30 17:02:10 +00:00
|
|
|
{{- range .Values.server.extensions.extensionList }}
|
|
|
|
- name: {{ .name }}
|
|
|
|
image: {{ $.Values.server.extensions.image.repository }}:{{ $.Values.server.extensions.image.tag }}
|
|
|
|
imagePullPolicy: {{ default $.Values.global.image.imagePullPolicy $.Values.server.extensions.image.imagePullPolicy }}
|
2022-10-30 19:12:46 +00:00
|
|
|
resources:
|
2023-12-30 17:02:10 +00:00
|
|
|
{{- toYaml $.Values.server.extensions.resources | nindent 10 }}
|
|
|
|
{{- with $.Values.server.extensions.containerSecurityContext }}
|
2022-10-30 19:12:46 +00:00
|
|
|
securityContext:
|
2023-05-23 20:29:26 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
2021-12-10 15:22:37 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: extensions
|
|
|
|
mountPath: /tmp/extensions/
|
2022-11-06 04:19:22 +00:00
|
|
|
- name: tmp
|
|
|
|
mountPath: /tmp
|
2023-12-30 17:02:10 +00:00
|
|
|
env:
|
|
|
|
{{- toYaml .env | nindent 10 }}
|
2021-12-10 15:22:37 +00:00
|
|
|
{{- end }}
|
2023-01-10 12:31:57 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2023-03-02 14:28:23 +00:00
|
|
|
{{- with include "argo-cd.affinity" (dict "context" . "component" .Values.server) }}
|
2023-02-17 16:38:17 +00:00
|
|
|
affinity:
|
2023-03-02 14:28:23 +00:00
|
|
|
{{- trim . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.server.nodeSelector | default .Values.global.nodeSelector }}
|
2019-11-05 00:17:25 +00:00
|
|
|
nodeSelector:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-03-02 14:28:23 +00:00
|
|
|
{{- with .Values.server.tolerations | default .Values.global.tolerations }}
|
2019-11-05 00:17:25 +00:00
|
|
|
tolerations:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-03-02 14:28:23 +00:00
|
|
|
{{- with .Values.server.topologySpreadConstraints | default .Values.global.topologySpreadConstraints }}
|
2021-09-17 13:57:26 +00:00
|
|
|
topologySpreadConstraints:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- range $constraint := . }}
|
2021-09-17 13:57:26 +00:00
|
|
|
- {{ toYaml $constraint | nindent 8 | trim }}
|
|
|
|
{{- if not $constraint.labelSelector }}
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "argo-cd.selectorLabels" (dict "context" $ "name" $.Values.server.name) | nindent 12 }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- end }}
|
2021-09-17 13:57:26 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
volumes:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.server.volumes }}
|
|
|
|
{{- toYaml . | nindent 6}}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
2021-12-10 15:22:37 +00:00
|
|
|
{{- if .Values.server.extensions.enabled }}
|
|
|
|
- name: extensions
|
2024-04-02 13:36:34 +00:00
|
|
|
{{- if .Values.server.emptyDir.sizeLimit }}
|
|
|
|
emptyDir:
|
|
|
|
sizeLimit: {{ .Values.server.emptyDir.sizeLimit }}
|
|
|
|
{{- else }}
|
2021-12-10 15:22:37 +00:00
|
|
|
emptyDir: {}
|
2024-04-02 13:36:34 +00:00
|
|
|
{{- end }}
|
2021-12-10 15:22:37 +00:00
|
|
|
{{- end }}
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: plugins-home
|
2024-04-02 13:36:34 +00:00
|
|
|
{{- if .Values.server.emptyDir.sizeLimit }}
|
|
|
|
emptyDir:
|
|
|
|
sizeLimit: {{ .Values.server.emptyDir.sizeLimit }}
|
|
|
|
{{- else }}
|
2022-10-25 21:22:22 +00:00
|
|
|
emptyDir: {}
|
2024-04-02 13:36:34 +00:00
|
|
|
{{- end }}
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: tmp
|
2024-04-02 13:36:34 +00:00
|
|
|
{{- if .Values.server.emptyDir.sizeLimit }}
|
|
|
|
emptyDir:
|
|
|
|
sizeLimit: {{ .Values.server.emptyDir.sizeLimit }}
|
|
|
|
{{- else }}
|
2022-10-25 21:22:22 +00:00
|
|
|
emptyDir: {}
|
2024-04-02 13:36:34 +00:00
|
|
|
{{- end }}
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: ssh-known-hosts
|
|
|
|
configMap:
|
2019-11-05 00:17:25 +00:00
|
|
|
name: argocd-ssh-known-hosts-cm
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: tls-certs
|
|
|
|
configMap:
|
2019-11-05 00:17:25 +00:00
|
|
|
name: argocd-tls-certs-cm
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: styles
|
|
|
|
configMap:
|
|
|
|
name: argocd-styles-cm
|
|
|
|
optional: true
|
2021-04-24 10:50:25 +00:00
|
|
|
- name: argocd-repo-server-tls
|
|
|
|
secret:
|
2022-10-25 21:22:22 +00:00
|
|
|
secretName: argocd-repo-server-tls
|
|
|
|
optional: true
|
2021-04-24 10:50:25 +00:00
|
|
|
items:
|
|
|
|
- key: tls.crt
|
|
|
|
path: tls.crt
|
|
|
|
- key: tls.key
|
|
|
|
path: tls.key
|
|
|
|
- key: ca.crt
|
|
|
|
path: ca.crt
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: argocd-dex-server-tls
|
|
|
|
secret:
|
|
|
|
secretName: argocd-dex-server-tls
|
2021-04-24 10:50:25 +00:00
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
items:
|
|
|
|
- key: tls.crt
|
|
|
|
path: tls.crt
|
|
|
|
- key: ca.crt
|
|
|
|
path: ca.crt
|
2024-11-04 23:59:47 +00:00
|
|
|
- name: argocd-cmd-params-cm
|
|
|
|
configMap:
|
|
|
|
optional: true
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
items:
|
|
|
|
- key: server.profile.enabled
|
|
|
|
path: profiler.enabled
|
2023-03-28 13:48:09 +00:00
|
|
|
{{- if .Values.server.hostNetwork }}
|
2023-02-06 04:40:13 +00:00
|
|
|
hostNetwork: {{ .Values.server.hostNetwork }}
|
2023-03-28 13:48:09 +00:00
|
|
|
{{- end }}
|
2023-02-15 00:11:16 +00:00
|
|
|
{{- with .Values.server.dnsConfig }}
|
|
|
|
dnsConfig:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2023-02-06 04:40:13 +00:00
|
|
|
dnsPolicy: {{ .Values.server.dnsPolicy }}
|