BjornMagnussonXA | b998ed6 | 2022-09-21 09:26:21 +0200 | [diff] [blame^] | 1 | ## Status callback server |
| 2 | |
| 3 | apiVersion: v1 |
| 4 | kind: Service |
| 5 | metadata: |
| 6 | name: callback |
| 7 | namespace: nonrtric |
| 8 | labels: |
| 9 | run: callback |
| 10 | prodtest: callback |
| 11 | spec: |
| 12 | selector: |
| 13 | run: callback |
| 14 | ports: |
| 15 | - port: 80 |
| 16 | name: http |
| 17 | |
| 18 | --- |
| 19 | |
| 20 | apiVersion: apps/v1 |
| 21 | kind: Deployment |
| 22 | metadata: |
| 23 | name: callback |
| 24 | namespace: nonrtric |
| 25 | labels: |
| 26 | prodtest: callback |
| 27 | spec: |
| 28 | containers: |
| 29 | - name: callback |
| 30 | image: kennethreitz/httpbin |
| 31 | imagePullPolicy: IfNotPresent |
| 32 | ports: |
| 33 | - port: 80 |
| 34 | name: http |
| 35 | restartPolicy: Always |
| 36 | |
| 37 | |
| 38 | ## Kafka client |
| 39 | |
| 40 | apiVersion: v1 |
| 41 | kind: Service |
| 42 | metadata: |
| 43 | name: client |
| 44 | namespace: nonrtric |
| 45 | labels: |
| 46 | run: client |
| 47 | prodtest: client |
| 48 | spec: |
| 49 | clusterIP: None |
| 50 | selector: |
| 51 | run: client |
| 52 | |
| 53 | --- |
| 54 | |
| 55 | apiVersion: v1 |
| 56 | kind: Pod |
| 57 | metadata: |
| 58 | name: client |
| 59 | namespace: nonrtric |
| 60 | labels: |
| 61 | prodtest: client |
| 62 | spec: |
| 63 | containers: |
| 64 | - name: client |
| 65 | image: confluentinc/cp-kafka:6.2.1 |
| 66 | command: ['sh', '-c', 'while [ true ];do sleep 60;done'] |
| 67 | imagePullPolicy: IfNotPresent |
| 68 | restartPolicy: Always |
| 69 | |
| 70 | --- |
| 71 | |
| 72 | ## https server sts |
| 73 | |
| 74 | apiVersion: v1 |
| 75 | kind: Service |
| 76 | metadata: |
| 77 | name: pm-https-server |
| 78 | namespace: ran |
| 79 | labels: |
| 80 | run: pm-https-server |
| 81 | prodtest: pm-https-server |
| 82 | spec: |
| 83 | clusterIP: None |
| 84 | selector: |
| 85 | run: pm-https-server |
| 86 | |
| 87 | --- |
| 88 | |
| 89 | apiVersion: apps/v1 |
| 90 | kind: StatefulSet |
| 91 | metadata: |
| 92 | name: pm-https-server |
| 93 | namespace: ran |
| 94 | labels: |
| 95 | run: pm-https-server |
| 96 | prodtest: pm-https-server |
| 97 | spec: |
| 98 | replicas: $NUM_HTTP |
| 99 | serviceName: pm-https-server |
| 100 | selector: |
| 101 | matchLabels: |
| 102 | run: pm-https-server |
| 103 | template: |
| 104 | metadata: |
| 105 | labels: |
| 106 | run: pm-https-server |
| 107 | prodtest: pm-https-server |
| 108 | spec: |
| 109 | volumes: |
| 110 | - name: tmp-vol |
| 111 | configMap: |
| 112 | name: pm-https-server-cm |
| 113 | - name: cert-vol |
| 114 | emptyDir: {} |
| 115 | - name: ne-files-vol |
| 116 | configMap: |
| 117 | name: ne-files |
| 118 | initContainers: |
| 119 | - name: init |
| 120 | image: alpine:latest |
| 121 | imagePullPolicy: IfNotPresent |
| 122 | command: ["ash","-c"] |
| 123 | args: ["cp /tmp/certs/copy-certs.sh /tmp && cd /tmp && chmod u+x copy-certs.sh && ./copy-certs.sh"] |
| 124 | volumeMounts: |
| 125 | - name: tmp-vol |
| 126 | mountPath: /tmp/certs |
| 127 | - name: cert-vol |
| 128 | mountPath: /certs |
| 129 | securityContext: |
| 130 | runAsUser: 0 |
| 131 | containers: |
| 132 | - name: pm-https-server |
| 133 | image: $PM_HTTPSSERVER_IMAGE |
| 134 | imagePullPolicy: $LOCAL_IMAGE_PULL_POLICY |
| 135 | ports: |
| 136 | - name: http |
| 137 | containerPort: 80 |
| 138 | - name: https |
| 139 | containerPort: 443 |
| 140 | env: |
| 141 | - name: ALWAYS_RETURN |
| 142 | value: /ne-files/pm.xml.gz |
| 143 | volumeMounts: |
| 144 | - name: cert-vol |
| 145 | mountPath: /certs |
| 146 | - name: tmp-vol |
| 147 | mountPath: /tmp/certs |
| 148 | - name: ne-files-vol |
| 149 | mountPath: /ne-files |
| 150 | |
| 151 | --- |
| 152 | |
| 153 | # VES collector |
| 154 | |
| 155 | apiVersion: v1 |
| 156 | kind: Service |
| 157 | metadata: |
| 158 | name: ves-collector |
| 159 | namespace: onap |
| 160 | labels: |
| 161 | run: ves-collector |
| 162 | prodtest: ves-collector |
| 163 | spec: |
| 164 | type: NodePort |
| 165 | ports: |
| 166 | - port: 8080 |
| 167 | targetPort: 8080 |
| 168 | name: http |
| 169 | nodePort: 31760 |
| 170 | - port: 8443 |
| 171 | name: https |
| 172 | nodePort: 31761 |
| 173 | selector: |
| 174 | run: ves-collector |
| 175 | |
| 176 | --- |
| 177 | |
| 178 | apiVersion: apps/v1 |
| 179 | kind: Deployment |
| 180 | metadata: |
| 181 | name: ves-collector |
| 182 | namespace: onap |
| 183 | labels: |
| 184 | run: ves-collector |
| 185 | prodtest: ves-collector |
| 186 | spec: |
| 187 | selector: |
| 188 | matchLabels: |
| 189 | run: ves-collector |
| 190 | template: |
| 191 | metadata: |
| 192 | labels: |
| 193 | run: ves-collector |
| 194 | prodtest: ves-collector |
| 195 | spec: |
| 196 | volumes: |
| 197 | - name: conf-vol1 |
| 198 | configMap: |
| 199 | name: ves-collector-collector.properties |
| 200 | - name: conf-vol2 |
| 201 | configMap: |
| 202 | name: ves-collector-ves-dmaap-config.json |
| 203 | containers: |
| 204 | - name: ves-collector |
| 205 | image: $VES_COLLECTOR_IMAGE |
| 206 | imagePullPolicy: IfNotPresent |
| 207 | env: |
| 208 | - name: DMAAPHOST |
| 209 | value: message-router.onap |
| 210 | ports: |
| 211 | - name: http |
| 212 | containerPort: 8080 |
| 213 | - name: https |
| 214 | containerPort: 8443 |
| 215 | volumeMounts: |
| 216 | - name: conf-vol1 |
| 217 | mountPath: /opt/app/VESCollector/etc/collector.properties |
| 218 | subPath: collector.properties |
| 219 | - name: conf-vol2 |
| 220 | mountPath: /opt/app/VESCollector/etc/ves-dmaap-config.json |
| 221 | subPath: ves-dmaap-config.json |
| 222 | |
| 223 | |
| 224 | --- |
| 225 | |
| 226 | ## ICS |
| 227 | |
| 228 | apiVersion: v1 |
| 229 | kind: Service |
| 230 | metadata: |
| 231 | name: informationservice |
| 232 | namespace: nonrtric |
| 233 | labels: |
| 234 | run: informationservice |
| 235 | prodtest: informationservice |
| 236 | spec: |
| 237 | type: NodePort |
| 238 | ports: |
| 239 | - port: 8083 |
| 240 | targetPort: 8083 |
| 241 | protocol: TCP |
| 242 | name: http |
| 243 | nodePort: 31764 |
| 244 | - port: 8434 |
| 245 | targetPort: 8434 |
| 246 | protocol: TCP |
| 247 | name: https |
| 248 | nodePort: 31765 |
| 249 | selector: |
| 250 | run: informationservice |
| 251 | |
| 252 | --- |
| 253 | |
| 254 | apiVersion: apps/v1 |
| 255 | kind: Deployment |
| 256 | metadata: |
| 257 | name: informationservice |
| 258 | namespace: nonrtric |
| 259 | labels: |
| 260 | run: informationservice |
| 261 | prodtest: informationservice |
| 262 | spec: |
| 263 | replicas: 1 |
| 264 | selector: |
| 265 | matchLabels: |
| 266 | run: informationservice |
| 267 | template: |
| 268 | metadata: |
| 269 | labels: |
| 270 | run: informationservice |
| 271 | prodtest: informationservice |
| 272 | spec: |
| 273 | containers: |
| 274 | - name: informationservice |
| 275 | image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-plt-informationcoordinatorservice:1.4.0 |
| 276 | imagePullPolicy: $LOCAL_IMAGE_PULL_POLICY |
| 277 | ports: |
| 278 | - name: http |
| 279 | containerPort: 8083 |
| 280 | - name: https |
| 281 | containerPort: 8434 |
| 282 | volumeMounts: |
| 283 | - mountPath: /opt/app/information-coordinator-service/config/application.yaml |
| 284 | subPath: application.yaml |
| 285 | name: ics-conf-name |
| 286 | volumes: |
| 287 | - configMap: |
| 288 | defaultMode: 420 |
| 289 | name: informationservice-cm |
| 290 | name: ics-conf-name |
| 291 | |
| 292 | --- |
| 293 | |
| 294 | ## KAFKA and DMAAP MR |
| 295 | |
| 296 | apiVersion: v1 |
| 297 | kind: Service |
| 298 | metadata: |
| 299 | name: zookeeper |
| 300 | namespace: onap |
| 301 | labels: |
| 302 | run: zookeeper |
| 303 | prodtest: zookeeper |
| 304 | spec: |
| 305 | type: ClusterIP |
| 306 | ports: |
| 307 | - port: 32181 |
| 308 | targetPort: 32181 |
| 309 | protocol: TCP |
| 310 | name: http |
| 311 | selector: |
| 312 | run: zookeeper |
| 313 | --- |
| 314 | apiVersion: v1 |
| 315 | kind: Service |
| 316 | metadata: |
| 317 | name: kafka-1 |
| 318 | namespace: onap |
| 319 | labels: |
| 320 | run: kafka-1 |
| 321 | prodtest: kafka |
| 322 | spec: |
| 323 | type: NodePort |
| 324 | ports: |
| 325 | - port: 9092 |
| 326 | targetPort: 9092 |
| 327 | protocol: TCP |
| 328 | name: http |
| 329 | nodePort: 31795 |
| 330 | - port: 29092 |
| 331 | targetPort: 29092 |
| 332 | protocol: TCP |
| 333 | name: http2 |
| 334 | nodePort: 31796 |
| 335 | # - port: 30099 |
| 336 | # targetPort: 30099 |
| 337 | # protocol: TCP |
| 338 | # name: http-external |
| 339 | # nodePort: |
| 340 | selector: |
| 341 | run: kafka-1 |
| 342 | --- |
| 343 | apiVersion: v1 |
| 344 | kind: Service |
| 345 | metadata: |
| 346 | name: message-router |
| 347 | namespace: onap |
| 348 | labels: |
| 349 | run: message-router |
| 350 | prodtest: message-router |
| 351 | spec: |
| 352 | type: NodePort |
| 353 | ports: |
| 354 | - port: 3904 |
| 355 | targetPort: 3904 |
| 356 | protocol: TCP |
| 357 | name: http |
| 358 | nodePort: 31766 |
| 359 | - port: 3905 |
| 360 | targetPort: 3905 |
| 361 | protocol: TCP |
| 362 | name: https |
| 363 | nodePort: 31785 |
| 364 | selector: |
| 365 | run: message-router |
| 366 | |
| 367 | --- |
| 368 | |
| 369 | |
| 370 | apiVersion: apps/v1 |
| 371 | kind: Deployment |
| 372 | metadata: |
| 373 | name: zookeeper |
| 374 | namespace: onap |
| 375 | labels: |
| 376 | run: zookeeper |
| 377 | prodtest: zookeeper |
| 378 | spec: |
| 379 | selector: |
| 380 | matchLabels: |
| 381 | run: zookeeper |
| 382 | template: |
| 383 | metadata: |
| 384 | labels: |
| 385 | run: zookeeper |
| 386 | prodtest: zookeeper |
| 387 | spec: |
| 388 | containers: |
| 389 | - name: zookeeper |
| 390 | image: confluentinc/cp-zookeeper:6.2.1 |
| 391 | imagePullPolicy: IfNotPresent |
| 392 | ports: |
| 393 | - name: http |
| 394 | containerPort: 32181 |
| 395 | env: |
| 396 | - name: ZOOKEEPER_TICK_TIME |
| 397 | value: '2000' |
| 398 | - name: ZOOKEEPER_CLIENT_PORT |
| 399 | value: '32181' |
| 400 | --- |
| 401 | apiVersion: apps/v1 |
| 402 | kind: Deployment |
| 403 | metadata: |
| 404 | name: kafka-1 |
| 405 | namespace: onap |
| 406 | labels: |
| 407 | run: kafka-1 |
| 408 | prodtest: kafka |
| 409 | spec: |
| 410 | replicas: 1 |
| 411 | selector: |
| 412 | matchLabels: |
| 413 | run: kafka-1 |
| 414 | template: |
| 415 | metadata: |
| 416 | labels: |
| 417 | run: kafka-1 |
| 418 | prodtest: kafka |
| 419 | spec: |
| 420 | containers: |
| 421 | - name: kafka-1 |
| 422 | image: confluentinc/cp-kafka:6.2.1 |
| 423 | imagePullPolicy: IfNotPresent |
| 424 | ports: |
| 425 | - name: http |
| 426 | containerPort: 9092 |
| 427 | ports: |
| 428 | - name: http2 |
| 429 | containerPort: 29092 |
| 430 | env: |
| 431 | - name: KAFKA_BROKER_ID |
| 432 | value: '1' |
| 433 | - name: KAFKA_ZOOKEEPER_CONNECT |
| 434 | value: 'zookeeper:32181' |
| 435 | - name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP |
| 436 | value: 'INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT' |
| 437 | - name: KAFKA_ADVERTISED_LISTENERS |
| 438 | value: 'INTERNAL_PLAINTEXT://kafka-1.onap:9092,PLAINTEXT_HOST://localhost:29092' |
| 439 | - name: KAFKA_LISTENERS |
| 440 | value: 'INTERNAL_PLAINTEXT://0.0.0.0:9092,PLAINTEXT_HOST://0.0.0.0:29092' |
| 441 | - name: KAFKA_INTER_BROKER_LISTENER_NAME |
| 442 | value: INTERNAL_PLAINTEXT |
| 443 | |
| 444 | - name: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR |
| 445 | value: '1' |
| 446 | - name: KAFKA_TRANSACTION_STATE_LOG_MIN_ISR |
| 447 | value: '1' |
| 448 | - name: KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR |
| 449 | value: '1' |
| 450 | - name: KAFKA_NUM_PARTITIONS |
| 451 | value: '${KAFKA_NUM_PARTITIONS}' |
| 452 | |
| 453 | |
| 454 | |
| 455 | # volumeMounts: |
| 456 | # - mountPath: /etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 457 | # subPath: zk_client_jaas.conf |
| 458 | # name: dmaapmr-zk-client-jaas |
| 459 | initContainers: |
| 460 | - name: init |
| 461 | image: alpine |
| 462 | imagePullPolicy: IfNotPresent |
| 463 | command: ['sh', '-c', 'until nslookup zookeeper.onap.svc.cluster.local; do echo waiting for zookeeper; sleep 2; done;'] |
| 464 | # volumes: |
| 465 | # - configMap: |
| 466 | # defaultMode: 420 |
| 467 | # name: dmaapmr-zk-client-jaas.conf |
| 468 | # name: dmaapmr-zk-client-jaas |
| 469 | --- |
| 470 | apiVersion: apps/v1 |
| 471 | kind: Deployment |
| 472 | metadata: |
| 473 | name: message-router |
| 474 | namespace: onap |
| 475 | labels: |
| 476 | run: message-router |
| 477 | prodtest: message-router |
| 478 | spec: |
| 479 | replicas: 1 |
| 480 | selector: |
| 481 | matchLabels: |
| 482 | run: message-router |
| 483 | template: |
| 484 | metadata: |
| 485 | labels: |
| 486 | run: message-router |
| 487 | prodtest: message-router |
| 488 | spec: |
| 489 | containers: |
| 490 | - name: message-router |
| 491 | image: nexus3.onap.org:10002/onap/dmaap/dmaap-mr:1.3.0 |
| 492 | imagePullPolicy: IfNotPresent |
| 493 | ports: |
| 494 | - name: http |
| 495 | containerPort: 3904 |
| 496 | - name: https |
| 497 | containerPort: 3905 |
| 498 | env: |
| 499 | - name: enableCadi |
| 500 | value: 'false' |
| 501 | volumeMounts: |
| 502 | - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties |
| 503 | subPath: MsgRtrApi.properties |
| 504 | name: dmaapmr-msg-rtr-api |
| 505 | - mountPath: /appl/dmaapMR1/etc/cadi.properties |
| 506 | subPath: cadi.properties |
| 507 | name: dmaapmr-cadi |
| 508 | initContainers: |
| 509 | - name: init |
| 510 | image: alpine:latest |
| 511 | imagePullPolicy: IfNotPresent |
| 512 | command: ['sh', '-c', 'until nslookup kafka-1.onap.svc.cluster.local; do echo waiting for kafka-1; sleep 2; done;'] |
| 513 | volumes: |
| 514 | - configMap: |
| 515 | defaultMode: 420 |
| 516 | name: dmaapmr-msgrtrapi.properties |
| 517 | name: dmaapmr-msg-rtr-api |
| 518 | - configMap: |
| 519 | defaultMode: 420 |
| 520 | name: dmaapmr-cadi.properties |
| 521 | name: dmaapmr-cadi |
| 522 | |
| 523 | --- |
| 524 | |
| 525 | ## Kowl - kafka obs |
| 526 | |
| 527 | apiVersion: v1 |
| 528 | kind: Service |
| 529 | metadata: |
| 530 | name: kowl |
| 531 | namespace: onap |
| 532 | labels: |
| 533 | run: kowl |
| 534 | prodtest: kowl |
| 535 | spec: |
| 536 | type: NodePort |
| 537 | selector: |
| 538 | run: kowl |
| 539 | ports: |
| 540 | - port: 8080 |
| 541 | targetPort: 8080 |
| 542 | protocol: TCP |
| 543 | name: http |
| 544 | nodePort: 31767 |
| 545 | |
| 546 | --- |
| 547 | |
| 548 | apiVersion: apps/v1 |
| 549 | kind: Deployment |
| 550 | metadata: |
| 551 | name: kowl |
| 552 | namespace: onap |
| 553 | labels: |
| 554 | prodtest: kowl |
| 555 | spec: |
| 556 | selector: |
| 557 | matchLabels: |
| 558 | run: kowl |
| 559 | template: |
| 560 | metadata: |
| 561 | labels: |
| 562 | run: kowl |
| 563 | prodtest: kowl |
| 564 | spec: |
| 565 | volumes: |
| 566 | - name: config-vol |
| 567 | configMap: |
| 568 | name: kowl-config-cm |
| 569 | containers: |
| 570 | - name: kowl |
| 571 | image: quay.io/cloudhut/kowl |
| 572 | imagePullPolicy: IfNotPresent |
| 573 | command: ["./kowl", "--config.filepath=/etc/kowl/config.yaml"] |
| 574 | volumeMounts: |
| 575 | - name: config-vol |
| 576 | mountPath: /etc/kowl/config.yaml |
| 577 | subPath: config.yaml |
| 578 | ports: |
| 579 | - name: http |
| 580 | containerPort: 8080 |
| 581 | restartPolicy: Always |
| 582 | |
| 583 | --- |
| 584 | |
| 585 | |
| 586 | |
| 587 | |