blob: 39756bb044287c49baa550f854ea57d113e06194 [file] [log] [blame]
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +01001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: $MR_DMAAP_KUBE_APP_NAME
5 namespace: $KUBE_ONAP_NAMESPACE
6 labels:
7 run: $MR_DMAAP_KUBE_APP_NAME
8 autotest: DMAAPMR
9spec:
10 replicas: 1
11 selector:
12 matchLabels:
13 run: $MR_DMAAP_KUBE_APP_NAME
14 template:
15 metadata:
16 labels:
17 run: $MR_DMAAP_KUBE_APP_NAME
18 autotest: DMAAPMR
19 spec:
20 containers:
21 - name: $MR_DMAAP_KUBE_APP_NAME
22 image: $ONAP_DMAAPMR_IMAGE
BjornMagnussonXA483ee332021-04-08 01:35:24 +020023 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010024 ports:
25 - name: http
26 containerPort: $MR_INTERNAL_PORT
27 - name: https
28 containerPort: $MR_INTERNAL_SECURE_PORT
29 env:
30 - name: enableCadi
31 value: 'false'
32 volumeMounts:
33 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
34 subPath: MsgRtrApi.properties
35 name: dmaapmr-msg-rtr-api
36 volumeMounts:
37 - mountPath: /appl/dmaapMR1/bundleconfig/etc/logback.xml
38 subPath: logback.xml
39 name: dmaapmr-log-back
40 volumeMounts:
41 - mountPath: /appl/dmaapMR1/etc/cadi.properties
42 subPath: cadi.properties
43 name: dmaapmr-cadi
44 volumes:
45 - configMap:
46 defaultMode: 420
47 name: dmaapmr-msgrtrapi.properties
48 name: dmaapmr-msg-rtr-api
49 - configMap:
50 defaultMode: 420
51 name: dmaapmr-logback.xml
52 name: dmaapmr-log-back
53 - configMap:
54 defaultMode: 420
55 name: dmaapmr-cadi.properties
56 name: dmaapmr-cadi
57---
58apiVersion: apps/v1
59kind: Deployment
60metadata:
61 name: $MR_KAFKA_BWDS_NAME
62 namespace: $KUBE_ONAP_NAMESPACE
63 labels:
64 run: $MR_KAFKA_BWDS_NAME
65 autotest: DMAAPMR
66spec:
67 replicas: 1
68 selector:
69 matchLabels:
70 run: $MR_KAFKA_BWDS_NAME
71 template:
72 metadata:
73 labels:
74 run: $MR_KAFKA_BWDS_NAME
75 autotest: DMAAPMR
76 spec:
77 containers:
78 - name: $MR_KAFKA_BWDS_NAME
79 image: $ONAP_KAFKA_IMAGE
BjornMagnussonXA483ee332021-04-08 01:35:24 +020080 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010081 ports:
82 - name: http
83 containerPort: 9092
84 env:
85 - name: enableCadi
86 value: 'false'
87 - name: KAFKA_ZOOKEEPER_CONNECT
88 value: 'zookeeper.onap:2181'
89 - name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
90 value: '40000'
91 - name: KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS
92 value: '40000'
93 - name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP
94 value: 'INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT'
95# - name: KAFKA_ADVERTISED_LISTENERS
96# value: 'INTERNAL_PLAINTEXT://akfak-bwds.onap:9092'
97 - name: KAFKA_ADVERTISED_LISTENERS
98 value: 'INTERNAL_PLAINTEXT://localhost:9092'
99 - name: KAFKA_LISTENERS
100 value: 'INTERNAL_PLAINTEXT://0.0.0.0:9092'
101 - name: KAFKA_INTER_BROKER_LISTENER_NAME
102 value: INTERNAL_PLAINTEXT
103 - name: KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE
104 value: 'false'
105 - name: KAFKA_OPTS
106 value: '-Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf'
107 - name: KAFKA_ZOOKEEPER_SET_ACL
108 value: 'true'
109 - name: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR
110 value: '1'
111 - name: KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS
112 value: '1'
113 volumeMounts:
114 - mountPath: /etc/kafka/secrets/jaas/zk_client_jaas.conf
115 subPath: zk_client_jaas.conf
116 name: dmaapmr-zk-client-jaas
117 volumes:
118 - configMap:
119 defaultMode: 420
120 name: dmaapmr-zk-client-jaas.conf
121 name: dmaapmr-zk-client-jaas
122---
123apiVersion: apps/v1
124kind: Deployment
125metadata:
126 name: $MR_ZOOKEEPER_APP_NAME
127 namespace: $KUBE_ONAP_NAMESPACE
128 labels:
129 run: $MR_ZOOKEEPER_APP_NAME
130 autotest: DMAAPMR
131spec:
132 replicas: 1
133 selector:
134 matchLabels:
135 run: $MR_ZOOKEEPER_APP_NAME
136 template:
137 metadata:
138 labels:
139 run: $MR_ZOOKEEPER_APP_NAME
140 autotest: DMAAPMR
141 spec:
142 containers:
143 - name: $MR_ZOOKEEPER_APP_NAME
144 image: $ONAP_ZOOKEEPER_IMAGE
BjornMagnussonXA483ee332021-04-08 01:35:24 +0200145 imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100146 ports:
147 - name: http
148 containerPort: 2181
149 env:
150 - name: ZOOKEEPER_REPLICAS
151 value: '1'
152 - name: ZOOKEEPER_TICK_TIME
153 value: '2000'
154 - name: ZOOKEEPER_SYNC_LIMIT
155 value: '5'
156 - name: ZOOKEEPER_INIT_LIMIT
157 value: '10'
158 - name: ZOOKEEPER_MAX_CLIENT_CNXNS
159 value: '200'
160 - name: ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT
161 value: '3'
162 - name: ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL
163 value: '24'
164 - name: ZOOKEEPER_CLIENT_PORT
165 value: '2181'
166 - name: KAFKA_OPTS
167 value: '-Djava.security.auth.login.config=/etc/zookeeper/secrets/jaas/zk_server_jaas.conf -Dzookeeper.kerberos.removeHostFromPrincipal=true -Dzookeeper.kerberos.removeRealmFromPrincipal=true -Dzookeeper.authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider -Dzookeeper.requireClientAuthScheme=sasl'
168 - name: ZOOKEEPER_SERVER_ID
169 value: '1'
170 volumeMounts:
171 - mountPath: /etc/zookeeper/secrets/jaas/zk_server_jaas.conf
172 subPath: zk_server_jaas.conf
173 name: dmaapmr-zk-server-jaas
174 volumes:
175 - configMap:
176 defaultMode: 420
177 name: dmaapmr-zk-server-jaas.conf
178 name: dmaapmr-zk-server-jaas