|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + name: kafka-ui |
| 5 | + namespace: {{ .Release.Namespace }} |
| 6 | + labels: |
| 7 | + app.kubernetes.io/name: kafka-ui |
| 8 | + app.kubernetes.io/part-of: capstone |
| 9 | + app.kubernetes.io/component: kafka-console |
| 10 | +spec: |
| 11 | + replicas: {{ .Values.replicas }} |
| 12 | + selector: |
| 13 | + matchLabels: |
| 14 | + app.kubernetes.io/name: kafka-ui |
| 15 | + template: |
| 16 | + metadata: |
| 17 | + labels: |
| 18 | + app.kubernetes.io/name: kafka-ui |
| 19 | + app.kubernetes.io/part-of: capstone |
| 20 | + annotations: |
| 21 | + # Opt out of the mesh: kafka-ui talks to the (non-meshed) Kafka bootstrap |
| 22 | + # and Apicurio; a sidecar would only complicate that. Matches the other |
| 23 | + # operator-managed infra (CAP-024 scope note in setup-istio.sh). |
| 24 | + sidecar.istio.io/inject: "false" |
| 25 | + spec: |
| 26 | + containers: |
| 27 | + - name: kafka-ui |
| 28 | + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
| 29 | + imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 30 | + ports: |
| 31 | + - name: http |
| 32 | + containerPort: {{ .Values.service.targetPort }} |
| 33 | + env: |
| 34 | + - name: KAFKA_CLUSTERS_0_NAME |
| 35 | + value: {{ .Values.kafka.clusterName | quote }} |
| 36 | + - name: KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS |
| 37 | + value: {{ .Values.kafka.bootstrapServers | quote }} |
| 38 | + - name: KAFKA_CLUSTERS_0_SCHEMAREGISTRY |
| 39 | + value: {{ .Values.kafka.schemaRegistry | quote }} |
| 40 | + - name: DYNAMIC_CONFIG_ENABLED |
| 41 | + value: "true" |
| 42 | + - name: SERVER_PORT |
| 43 | + value: {{ .Values.service.targetPort | quote }} |
| 44 | + resources: |
| 45 | + requests: |
| 46 | + cpu: {{ .Values.resources.requests.cpu }} |
| 47 | + memory: {{ .Values.resources.requests.memory }} |
| 48 | + limits: |
| 49 | + memory: {{ .Values.resources.limits.memory }} |
| 50 | + # TCP probes avoid guessing the actuator health path across kafka-ui |
| 51 | + # versions; startup budget is generous for the Spring Boot cold start. |
| 52 | + startupProbe: |
| 53 | + tcpSocket: |
| 54 | + port: http |
| 55 | + periodSeconds: 5 |
| 56 | + failureThreshold: 40 |
| 57 | + livenessProbe: |
| 58 | + tcpSocket: |
| 59 | + port: http |
| 60 | + periodSeconds: 10 |
| 61 | + readinessProbe: |
| 62 | + tcpSocket: |
| 63 | + port: http |
| 64 | + periodSeconds: 5 |
0 commit comments