Skip to content

Commit

Permalink
Created Service and Deployment configuration for Prometheus sink
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Shukla <[email protected]>
  • Loading branch information
kushalShukla-web committed Nov 14, 2024
1 parent f492ff2 commit 1d1d97f
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-sink
namespace: prombench-{{ .PR_NUMBER }}
spec:
replicas: 1
selector:
matchLabels:
app: sink
template:
metadata:
namespace: prombench-{{ .PR_NUMBER }}
labels:
app: sink
spec:
containers:
- name: prom-sink
image: quay.io/bwplotka/sink:latest
imagePullPolicy: Always
ports:
- name: sink-port
containerPort: 9011
nodeSelector:
node-name: nodes-{{ .PR_NUMBER }}
isolation: none
---
apiVersion: v1
kind: Service
metadata:
name: prometheus-remote-write
namespace: prombench-{{ .PR_NUMBER }}
labels:
app: remote-write
spec:
type: ClusterIP
clusterIP: None
ports:
- name: prometheus
port: 80
targetPort: sink-port
selector:
app: sink

0 comments on commit 1d1d97f

Please sign in to comment.