apiVersion: v1 kind: Namespace metadata: name: data-sync-messaging labels: workload.edge.ncr.com: platform platform.edge.ncr.com/component: data-sync-messaging annotations: pallet.edge.ncr.com/created: "2023-02-16T21:26:39Z" pallet.edge.ncr.com/name: chirp pallet.edge.ncr.com/revision: 696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/source: https://github.com/ncrvoyix-swt-retail/edge-infra/tree/696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/team: '@ncrvoyix-swt-retail/edge-data-sync' pallet.edge.ncr.com/version: 7.7.7-rc.1676582799+commit.696897a --- apiVersion: v1 kind: Service metadata: name: data-sync-messaging namespace: data-sync-messaging labels: platform.edge.ncr.com/component: data-sync-messaging annotations: pallet.edge.ncr.com/created: "2023-02-16T21:26:39Z" pallet.edge.ncr.com/name: chirp pallet.edge.ncr.com/revision: 696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/source: https://github.com/ncrvoyix-swt-retail/edge-infra/tree/696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/team: '@ncrvoyix-swt-retail/edge-data-sync' pallet.edge.ncr.com/version: 7.7.7-rc.1676582799+commit.696897a spec: type: ClusterIP ports: - name: grpc protocol: TCP port: 9092 targetPort: 9092 - name: http protocol: TCP port: 80 targetPort: 80 - name: prometheus protocol: TCP port: 8082 targetPort: 8082 selector: platform.edge.ncr.com/component: data-sync-messaging --- apiVersion: apps/v1 kind: StatefulSet metadata: name: data-sync-messaging namespace: data-sync-messaging labels: platform.edge.ncr.com/component: data-sync-messaging annotations: pallet.edge.ncr.com/created: "2023-02-16T21:26:39Z" pallet.edge.ncr.com/name: chirp pallet.edge.ncr.com/revision: 696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/source: https://github.com/ncrvoyix-swt-retail/edge-infra/tree/696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/team: '@ncrvoyix-swt-retail/edge-data-sync' pallet.edge.ncr.com/version: 7.7.7-rc.1676582799+commit.696897a spec: replicas: 1 template: spec: containers: - name: data-sync-messaging image: us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads/data-sync-messaging@sha256:855d26ac7317bded9f5e95d4a6799798d87de92c575e0b44a537439b0690b8ce ports: - name: grpc protocol: TCP containerPort: 9092 - name: http protocol: TCP containerPort: 80 - name: healthz protocol: TCP containerPort: 8080 - name: readiness protocol: TCP containerPort: 8081 - name: metrics protocol: TCP containerPort: 8082 env: - name: ENTERPRISE_UNIT value: "1" - name: TENANT value: "ghq_lab" - name: MESSAGE_ROUTING value: '{"routes":[{"id":"tlog", "topic":"tlog", "bulk_size": 10}, {"id":"public", "topic":"public", "bulk_size": 20}], "messages":[{"type": "tlog", "compression": false, "signing": false, "route": "tlog"}, {"type": "audit", "compression": false, "signing": false, "route": "public"}, {"type": "*", "compression": false, "signing": false, "route": "public"}]}' - name: TARGET_SETTINGS value: '{"kafka_endpoint":"redpanda.redpanda.svc.cluster.local:9092","security_protocol":"none"}' - name: GRPC_PORT value: "9092" - name: MSG_SERVICE_PORT value: "80" - name: LIVENESS_PORT value: "8080" - name: READINESS_PORT value: "8081" - name: PROMETHEUS_PORT value: "8082" - name: OUTBOX_PATH value: "/app/cmd/data-sync-messaging/outbox" - name: PARTITIONS value: "5" resources: limits: cpu: "500m" memory: 400Mi requests: cpu: 250m memory: 200Mi volumeMounts: - name: outbox mountPath: /app/cmd/data-sync-messaging/outbox livenessProbe: httpGet: port: 8080 path: /healthz initialDelaySeconds: 5 periodSeconds: 5 readinessProbe: httpGet: port: 8081 path: /readiness periodSeconds: 5 imagePullPolicy: "IfNotPresent" imagePullSecrets: - name: edge-docker-pull-secret affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 preference: matchExpressions: - key: node.ncr.com/class operator: In values: - server metadata: labels: platform.edge.ncr.com/component: data-sync-messaging annotations: pallet.edge.ncr.com/created: "2023-02-16T21:26:39Z" pallet.edge.ncr.com/name: chirp pallet.edge.ncr.com/revision: 696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/source: https://github.com/ncrvoyix-swt-retail/edge-infra/tree/696897a3df910b6e84a88c9336907a17b18159c1 pallet.edge.ncr.com/team: '@ncrvoyix-swt-retail/edge-data-sync' pallet.edge.ncr.com/version: 7.7.7-rc.1676582799+commit.696897a volumeClaimTemplates: - metadata: name: outbox labels: platform.edge.ncr.com/component: data-sync-messaging spec: resources: requests: storage: "10Gi" accessModes: - "ReadWriteOnce" serviceName: data-sync-messaging updateStrategy: {} selector: matchLabels: platform.edge.ncr.com/component: data-sync-messaging