2024-08-30 16:13:10 +02:00
|
|
|
apiVersion: apps/v1
|
2024-09-07 01:37:07 +02:00
|
|
|
kind: Deployment
|
2024-08-30 16:13:10 +02:00
|
|
|
metadata:
|
2024-09-07 01:37:07 +02:00
|
|
|
name: oc-catalog
|
2024-08-30 16:13:10 +02:00
|
|
|
labels:
|
|
|
|
app: oc-catalog
|
2024-09-07 01:37:07 +02:00
|
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
2024-08-30 16:13:10 +02:00
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: oc-catalog
|
2024-09-07 01:37:07 +02:00
|
|
|
release: {{ .Release.Name }}
|
2024-08-30 16:13:10 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: oc-catalog
|
2024-09-07 01:37:07 +02:00
|
|
|
release: {{ .Release.Name }}
|
2024-08-30 16:13:10 +02:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: oc-catalog
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
2024-09-07 01:37:07 +02:00
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
2024-08-30 16:13:10 +02:00
|
|
|
ports:
|
2024-09-07 01:37:07 +02:00
|
|
|
- containerPort: {{ .Values.service.targetPort }}
|
2024-08-30 16:13:10 +02:00
|
|
|
env:
|
|
|
|
- name: MONGO_DATABASE
|
2024-09-07 01:37:07 +02:00
|
|
|
value: {{ .Values.mongo.database }}
|
2024-08-30 16:13:10 +02:00
|
|
|
- name: MONGO_URI
|
2024-09-07 01:37:07 +02:00
|
|
|
value: {{ .Values.mongo.uri }}
|
2024-08-30 16:13:10 +02:00
|
|
|
imagePullSecrets:
|
|
|
|
{{- if .Values.imagePullSecrets }}
|
2024-09-07 01:37:07 +02:00
|
|
|
{{- range .Values.imagePullSecrets }}
|
2024-08-30 16:13:10 +02:00
|
|
|
- name: {{ .name }}
|
2024-09-07 01:37:07 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|