summaryrefslogtreecommitdiffstats
path: root/kubernetes/vnfsdk/templates/postgres-deployment.yaml
blob: d0002662c61776ebc1eb37f72880d64fd0286340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#{{ if not .Values.disableVnfsdkPostgres }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: vnfsdk-postgres
  namespace: {{ .Values.nsPrefix }}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: postgres
  template:
    metadata:
      labels:
        app: postgres
      name: vnfsdk-postgres
    spec:
      hostname: postgres
      containers:
      - args:
        image: {{ .Values.image.postgresImage }}:{{ .Values.image.postgresVersion }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: "postgres"
      imagePullSecrets:
      - name: {{ .Values.nsPrefix }}-docker-registry-key
#{{ end }}