Update Deployment and statefulSet

This commit is contained in:
na
2024-09-07 01:37:07 +02:00
parent fcb45ec331
commit d2f602bf79
11 changed files with 80 additions and 21 deletions

View File

@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: oc-catalog
labels:
app: oc-catalog
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: oc-catalog
release: {{ .Release.Name }}
template:
metadata:
labels:
app: oc-catalog
release: {{ .Release.Name }}
spec:
containers:
- name: oc-catalog
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.targetPort }}
env:
- name: MONGO_DATABASE
value: {{ .Values.mongo.database }}
- name: MONGO_URI
value: {{ .Values.mongo.uri }}
imagePullSecrets:
{{- if .Values.imagePullSecrets }}
{{- range .Values.imagePullSecrets }}
- name: {{ .name }}
{{- end }}
{{- end }}