69c5363f76
Change-Id: Iadbb0b8a3edf6e1203c11af7e0e90d5492b5ab14
72 lines
2.7 KiB
YAML
72 lines
2.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "nebulous-cloud-fog-service-broker.fullname" . }}
|
|
labels:
|
|
{{- include "nebulous-cloud-fog-service-broker.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- if not .Values.autoscaling.enabled }}
|
|
replicas: {{ .Values.replicaCount }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "nebulous-cloud-fog-service-broker.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
{{- with .Values.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "nebulous-cloud-fog-service-broker.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "nebulous-cloud-fog-service-broker.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
securityContext:
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 8001
|
|
protocol: TCP
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
env:
|
|
- name: NEBULOUS_BROKER_URL
|
|
value: "{{ .Values.customEnv.NEBULOUS_BROKER_URL }}"
|
|
- name: NEBULOUS_BROKER_PORT
|
|
value: "{{ .Values.customEnv.NEBULOUS_BROKER_PORT }}"
|
|
- name: NEBULOUS_BROKER_USERNAME
|
|
value: "{{ .Values.customEnv.NEBULOUS_BROKER_USERNAME }}"
|
|
- name: NEBULOUS_BROKER_PASSWORD
|
|
value: "{{ .Values.customEnv.NEBULOUS_BROKER_PASSWORD }}"
|
|
- name: POSTGRES_DB_HOST
|
|
value: "{{ .Values.customEnv.POSTGRES_DB_HOST }}"
|
|
- name: POSTGRES_DB_NAME
|
|
value: "{{ .Values.customEnv.POSTGRES_DB_NAME }}"
|
|
- name: POSTGRES_DB_PORT
|
|
value: "{{ .Values.customEnv.POSTGRES_DB_PORT }}"
|
|
- name: POSTGRES_DB_USER
|
|
value: "{{ .Values.customEnv.POSTGRES_DB_USER }}"
|
|
- name: POSTGRES_DB_PASS
|
|
value: "{{ .Values.customEnv.POSTGRES_DB_PASS }}"
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }} |