aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.deployment.yaml
blob: 203c8195a93e53fbe5cd447070f8fa6744fa6a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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"