34 lines
804 B
YAML
34 lines
804 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: {{ .Release.Name }}-oc-catalog
|
||
|
labels:
|
||
|
app: oc-catalog
|
||
|
spec:
|
||
|
serviceName: "{{ .Release.Name }}-oc-catalog"
|
||
|
replicas: {{ .Values.replicaCount }}
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: oc-catalog
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: oc-catalog
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: oc-catalog
|
||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
env:
|
||
|
- name: MONGO_DATABASE
|
||
|
value: "DC_myDC"
|
||
|
- name: MONGO_URI
|
||
|
value: "mongodb://mongo:27017"
|
||
|
imagePullSecrets:
|
||
|
{{- if .Values.imagePullSecrets }}
|
||
|
{{- range .Values.imagePullSecrets }}
|
||
|
- name: {{ .name }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|