mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: Patroklos Papapetrou <[email protected]> Signed-off-by: Papapetrou Patroklos <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Co-authored-by: Regina Voloshin <[email protected]>
137 lines
4.8 KiB
YAML
137 lines
4.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: notifications-controller
|
|
app.kubernetes.io/name: argocd-notifications-controller
|
|
app.kubernetes.io/part-of: argocd
|
|
name: argocd-notifications-controller
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-notifications-controller
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: argocd-notifications-controller
|
|
spec:
|
|
volumes:
|
|
- name: tls-certs
|
|
configMap:
|
|
name: argocd-tls-certs-cm
|
|
- name: argocd-repo-server-tls
|
|
secret:
|
|
secretName: argocd-repo-server-tls
|
|
optional: true
|
|
items:
|
|
- key: tls.crt
|
|
path: tls.crt
|
|
- key: tls.key
|
|
path: tls.key
|
|
- key: ca.crt
|
|
path: ca.crt
|
|
- name: argocd-repo-server-mtls
|
|
secret:
|
|
secretName: argocd-repo-server-mtls
|
|
optional: true
|
|
items:
|
|
- key: client.crt
|
|
path: client.crt
|
|
- key: client.key
|
|
path: client.key
|
|
- key: server-ca.crt
|
|
path: server-ca.crt
|
|
containers:
|
|
- args:
|
|
- /usr/local/bin/argocd-notifications
|
|
env:
|
|
- name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGFORMAT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.log.format
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGLEVEL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.log.level
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATION_CONTROLLER_PROCESSORS_COUNT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.processors.count
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_LOG_FORMAT_TIMESTAMP
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: argocd-cmd-params-cm
|
|
key: log.format.timestamp
|
|
optional: true
|
|
- name: ARGOCD_APPLICATION_NAMESPACES
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: application.namespaces
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATION_CONTROLLER_SELF_SERVICE_NOTIFICATION_ENABLED
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.selfservice.enabled
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATION_CONTROLLER_REPO_SERVER_PLAINTEXT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.repo.server.plaintext
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATION_CONTROLLER_REPO_SERVER_CA_CERT_PATH
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.repo.server.ca.cert.path
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATION_CONTROLLER_REPO_SERVER_CLIENT_CERT_PATH
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.repo.server.client.cert.path
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
- name: ARGOCD_NOTIFICATION_CONTROLLER_REPO_SERVER_CLIENT_CERT_KEY_PATH
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: notificationscontroller.repo.server.client.cert.key.path
|
|
name: argocd-cmd-params-cm
|
|
optional: true
|
|
workingDir: /app
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 9001
|
|
image: quay.io/argoproj/argocd:latest
|
|
imagePullPolicy: Always
|
|
name: argocd-notifications-controller
|
|
volumeMounts:
|
|
- name: tls-certs
|
|
mountPath: /app/config/tls
|
|
- name: argocd-repo-server-tls
|
|
mountPath: /app/config/reposerver/tls
|
|
- name: argocd-repo-server-mtls
|
|
mountPath: /app/config/reposerver/mtls
|
|
securityContext:
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
serviceAccountName: argocd-notifications-controller
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|