Files
helm/notification/templates/deployment.yaml

49 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: notification
name: notification
spec:
replicas: 1
selector:
matchLabels:
app: notification
template:
metadata:
labels:
app: notification
spec:
containers:
- env:
- name: amqp
valueFrom:
secretKeyRef:
key: url
name: amqp
envFrom:
- secretRef:
name: goghvideo-notification
image: "{{ .Values.image.repository }}:{{ trim .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: "{{ .Values.image.PullPolicy }}"
name: notification
volumeMounts:
- name: trusted-ca
mountPath: /etc/pki/ca-trust/extracted/pem
readOnly: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullSecrets:
- name: {{ .Values.image.pullSecret }}
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
volumes:
- name: trusted-ca
configMap:
name: config-trusted-cabundle
items:
- key: ca-bundle.crt
path: tls-ca-bundle.pem