Add thermo history Helm chart
This commit is contained in:
54
templates/writer-deployment.yaml
Normal file
54
templates/writer-deployment.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
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
|
||||
Reference in New Issue
Block a user