aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/mso/templates/mso-deployment.yaml
blob: b4146401c40e2328b60322a7701ad42c38a7e503 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#{{ if not .Values.disableMsoMso }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: mso
  namespace: "{{ .Values.nsPrefix }}-mso"
spec:
  replicas: {{ .Values.msoReplicas }}
  selector:
    matchLabels:
      app: mso
  template:
    metadata:
      labels:
        app: mso
      name: mso
    spec:
      initContainers:
      - command:
        - /root/ready.py
        args:
        - --container-name
        - mariadb
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: {{ .Values.image.readiness }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: mso-readiness
      containers:
      - command:
        - /tmp/start-jboss-server.sh
        image: {{ .Values.image.mso }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: mso
        volumeMounts:
        - mountPath: /etc/localtime
          name: localtime
          readOnly: true
        - mountPath: /shared/
          name: mso
        - mountPath: /tmp/start-jboss-server.sh
          name: mso-docker-files
          subPath: start-jboss-server.sh
        - mountPath: /var/log/onap
          name: mso-logs
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.network.xml
          name: mso-logback
          subPath: logback.network.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.tenant.xml
          name: mso-logback
          subPath: logback.tenant.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vnf.xml
          name: mso-logback
          subPath: logback.vnf.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-po-adapter-config/logback.vfc.xml
          name: mso-logback
          subPath: logback.vfc.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-api-handler-infra-config/logback.apihandler-infra.xml
          name: mso-logback
          subPath: logback.apihandler-infra.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-appc-adapter-config/logback.appc.xml
          name: mso-logback
          subPath: logback.appc.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-requests-db-adapter-config/logback.msorequestsdbadapter.xml
          name: mso-logback
          subPath: logback.msorequestsdbadapter.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-asdc-controller-config/logback.asdc.xml
          name: mso-logback
          subPath: logback.asdc.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-sdnc-adapter-config/logback.sdnc.xml
          name: mso-logback
          subPath: logback.sdnc.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-bpmn-config/logback.bpmn.xml
          name: mso-logback
          subPath: logback.bpmn.xml
        - mountPath: /var/berks-cookbooks/mso-config/files/default/mso-workflow-message-adapter-config/logback.workflow-message-adapter.xml
          name: mso-logback
          subPath: logback.workflow-message-adapter.xml
        env:
        - name: JBOSS_DEBUG
          value: "false"
        ports:
        - containerPort: 3904
        - containerPort: 3905
        - containerPort: 8080
        - containerPort: 9990
        - containerPort: 8787
        readinessProbe:
          tcpSocket:
            port: 8080
          initialDelaySeconds: 5
          periodSeconds: 10
      - image: {{ .Values.image.filebeat }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: filebeat-onap
        volumeMounts:
        - mountPath: /usr/share/filebeat/filebeat.yml
          name: filebeat-conf
          subPath: filebeat.yml
        - mountPath: /var/log/onap
          name: mso-logs
        - mountPath: /usr/share/filebeat/data
          name: mso-data-filebeat
      volumes:
        - name: localtime
          hostPath:
            path: /etc/localtime
        - name: mso-logback
          configMap:
            name: mso-log-configmap
        - name: filebeat-conf
          configMap:
            name: mso-filebeat-configmap
        - name: mso
          configMap:
            name: mso-config-mso-configmap
            items:
            - key: mso-docker.json
              path: mso-docker.json
              mode: 0755
            - key: aai.crt
              path: aai.crt
              mode: 0755
            - key: encryption.key
              path: encryption.key
              mode: 0644
        - name: mso-logs
          emptyDir: {}
        - name: mso-data-filebeat
          emptyDir: {}
        - name: mso-docker-files
          configMap:
            name: mso-docker-file-configmap
            items:
            - key: start-jboss-server.sh
              path: start-jboss-server.sh
              mode: 0755
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}