38 lines
965 B
YAML
38 lines
965 B
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
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
imagePullSecrets:
|
|
- name: {{ .Values.image.pullSecret }}
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
terminationGracePeriodSeconds: 30
|