Prometheus Kafka Writer Microservice
[demo.git] / vnfs / DAaaS / microservices / prom-kafka-writer / kubernetes-manifests / pkw.service.yaml
1 # This Service manifest defines:
2 # - a load balancer for pods matching label "app: go-prom-kafka-writer"
3 # - exposing the application to the public Internet (type:LoadBalancer)
4 # - routes port 80 of the load balancer to the port 8686 of the Pods.
5 # Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/
6 apiVersion: v1
7 kind: Service
8 metadata:
9   name: prom-kafka-writer
10   labels:
11     app: prom-kafka-writer
12 spec:
13   type: NodePort
14   selector:
15     app: prom-kafka-writer
16   ports:
17   - name: http
18     port: 80
19     targetPort: 8686
20     nodePort: 30086