55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "thermo.fullname" . }}-writer
|
|
labels:
|
|
{{- include "thermo.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
{{- include "thermo.writerSelectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "thermo.writerSelectorLabels" . | nindent 8 }}
|
|
spec:
|
|
containers:
|
|
- name: redpanda-connect
|
|
image: "{{ .Values.writer.image.repository }}:{{ .Values.writer.image.tag }}"
|
|
imagePullPolicy: {{ .Values.writer.image.pullPolicy }}
|
|
args:
|
|
- -c
|
|
- /config/redpanda.yaml
|
|
- --disable-telemetry
|
|
envFrom:
|
|
- secretRef:
|
|
name: {{ include "thermo.fullname" . }}-postgres-redpanda
|
|
ports:
|
|
- name: http
|
|
containerPort: 4195
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: http
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
resources:
|
|
{{- toYaml .Values.writer.resources | nindent 12 }}
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
readOnly: true
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: {{ include "thermo.fullname" . }}-writer
|