# This Deployment manifest defines:
# - single-replica deployment of the container image, with label "app: go-prom-kafka-writer"
# - Pod exposes port 8686
# - specify PORT environment variable to the container process
# Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prom-kafka-writer
spec:
  replicas: 1
  selector:
    matchLabels:
      app: prom-kafka-writer
  template:
    metadata:
      labels:
        app: prom-kafka-writer
    spec:
      containers:
      - name: server
        image: dcr.cluster.local:32644/prom-kafka-writer
        ports:
        - containerPort: 8686
        env:
        - name: PORT
          value: "8686"
