44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Values.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- if .Values.annotations }}
|
|
annotations: {{ toYaml .Values.annotations | nindent 4}}
|
|
{{- end}}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Values.name }}
|
|
release: {{ .Values.release }}
|
|
template:
|
|
metadata:
|
|
{{- if .Values.podAnnotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.podAnnotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
app: {{ .Values.name }}
|
|
release: {{ .Values.release }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
- name: {{ .Values.containerName }}
|
|
image: {{ .Values.image.image }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- name: p2papi
|
|
protocol: TCP
|
|
containerPort: 6666
|
|
- name: p2papi
|
|
protocol: UDP
|
|
containerPort: 6666
|
|
# env:
|
|
# - name: MONGO_CREDS
|
|
# value: {{ .Values.mongoCreds }} |