summaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2/templates/nginx-dep.yaml
blob: 7d8832cbc3855a2681d87cf45664b0c8f105e990 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#{{ if not .Values.disableDcae }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: nginx
  namespace: "{{ .Values.nsPrefix }}-dcaegen2"
spec:
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
      name: nginx
    spec:
      hostname: nginx
      containers:
      - image: "{{ .Values.nginx.repository }}:{{ .Values.nginx.tag }}"
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: "nginx"
        ports:
        - containerPort: 8443
          name: aai-service
        - containerPort: 3904
          name: dmaap
        - containerPort: 8443
          name: sdc-be
        - containerPort: 8081
          name: pdp
        - containerPort: 80
          name: msbapigw
        volumeMounts:
        - mountPath: /etc/localtime
          name: localtime
          readOnly: true
        - mountPath: /etc/nginx/conf.d/
          name: nginx-config
        - mountPath: /etc/certs/
          name: nginx-certs
      volumes:
        - name: localtime
          hostPath:
            path: /etc/localtime
        - name: nginx-config
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcaegen2/nginx/config
        - name: nginx-certs
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcaegen2/nginx/certs
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}