Skip to content

Commit

Permalink
Add http probes to sample deployment removing configurable port
Browse files Browse the repository at this point in the history
  • Loading branch information
angelbarrera92 committed Feb 8, 2021
1 parent 670f181 commit 1d5524a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions deployments/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: prometheus-multi-tenant-proxy
namespace: default
data:
PROMETHEUS_MULTI_TENANT_PROXY_PORT: "9092"
PROMETHEUS_MULTI_TENANT_PROXY_PROMETHEUS_ENDPOINT: http://prometheus-operated.default.svc.cluster.local:9090
---
apiVersion: v1
Expand Down Expand Up @@ -44,11 +43,19 @@ spec:
image: ghcr.io/k8spin/prometheus-multi-tenant-proxy:latest
imagePullPolicy: Always
command: ["/bin/bash"]
args: ["-c", "/prometheus-multi-tenant-proxy run --port=${PROMETHEUS_MULTI_TENANT_PROXY_PORT} --prometheus-endpoint=${PROMETHEUS_MULTI_TENANT_PROXY_PROMETHEUS_ENDPOINT} --auth-config=/etc/prometheus-auth-config/authn.yaml"]
args: ["-c", "/prometheus-multi-tenant-proxy run --port=9092 --prometheus-endpoint=${PROMETHEUS_MULTI_TENANT_PROXY_PROMETHEUS_ENDPOINT} --auth-config=/etc/prometheus-auth-config/authn.yaml"]
ports:
- name: http
containerPort: 9092
protocol: TCP
livenessProbe:
httpGet:
path: /-/healthy
port: 9092
readinessProbe:
httpGet:
path: /-/ready
port: 9092
envFrom:
- configMapRef:
name: prometheus-multi-tenant-proxy
Expand Down

0 comments on commit 1d5524a

Please sign in to comment.