diff options
author | 2019-10-31 15:46:37 -0700 | |
---|---|---|
committer | 2019-11-11 14:39:44 -0800 | |
commit | d11cb99fb101a6798fd57fa44d332737d6637e75 (patch) | |
tree | 0d7ae93ac67186a9bd4dd81db85eab9ccd64334f /vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests | |
parent | 68d118176bb53c36b31a7060cfa16ad5acac1765 (diff) |
Prometheus Kafka Writer Microservice
This patch implents Prometheus to remote Kafka Writer Microservice
Added sample day-2 config to configure prometheus
PS4: Fixed Review comments
Issue-ID: ONAPARC-393
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Change-Id: I0bc77175593a165effd7bb1cb4802c988a5ef4ec
Diffstat (limited to 'vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests')
-rw-r--r-- | vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.deployment.yaml | 27 | ||||
-rw-r--r-- | vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.service.yaml | 20 |
2 files changed, 47 insertions, 0 deletions
diff --git a/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.deployment.yaml b/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.deployment.yaml new file mode 100644 index 00000000..203c8195 --- /dev/null +++ b/vnfs/DAaaS/microservices/prom-kafka-writer/kubernetes-manifests/pkw.deployment.yaml @@ -0,0 +1,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" 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 |