hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/manifests/hm-api-python/api-python-deployment.yaml

Summary

Maintainability
Test Coverage
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: api-python-deployment
  namespace: hm-api-python
  labels:
    app.kubernetes.io/name: api-python
spec:
  replicas: 1
  selector:
    matchLabels:
      app: api-python
  template:
    metadata:
      labels:
        app: api-python
    spec:
      containers:
        - name: api-python
          image: ghcr.io/hongbo-miao/hm-api-python:latest
          env:
            - name: KAFKA_BOOTSTRAP_SERVERS
              valueFrom:
                configMapKeyRef:
                  name: api-python-configmap
                  key: kafka_bootstrap_servers
          ports:
            - name: api-python
              protocol: TCP
              containerPort: 35903