aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml')
-rw-r--r--vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml b/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml
new file mode 100644
index 00000000..f63ef53e
--- /dev/null
+++ b/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml
@@ -0,0 +1,20 @@
+# This Service manifest defines:
+# - a load balancer for pods matching label "app: go-prom-kafka-writer"
+# - exposing the application to the public Internet (type:LoadBalancer)
+# - routes port 80 of the load balancer to the port 8686 of the Pods.
+# Syntax reference https://kubernetes.io/docs/concepts/configuration/overview/
+apiVersion: v1
+kind: Service
+metadata:
+ name: prom-kafka-writer
+ labels:
+ app: prom-kafka-writer
+spec:
+ type: NodePort
+ selector:
+ app: prom-kafka-writer
+ ports:
+ - name: http
+ port: 80
+ targetPort: 8686
+ nodePort: 30086