Update cloudflared, expose metrics, replicas to 3
This commit is contained in:
parent
55f0bf49c8
commit
a5e7b2ecae
|
@ -7,7 +7,7 @@ spec:
|
|||
selector:
|
||||
matchLabels:
|
||||
app: cloudflared
|
||||
replicas: 1
|
||||
replicas: 3
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
@ -15,12 +15,15 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: cloudflared
|
||||
image: cloudflare/cloudflared:2023.10.0-arm64
|
||||
image: cloudflare/cloudflared:2024.2.1
|
||||
args:
|
||||
- tunnel
|
||||
- --config
|
||||
- /etc/cloudflared/config/config.yaml
|
||||
- run
|
||||
ports:
|
||||
- containerPort: 2000
|
||||
name: metrics
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
# Cloudflared has a /ready endpoint which returns 200 if and only if
|
||||
|
@ -47,4 +50,29 @@ spec:
|
|||
items:
|
||||
- key: config.yaml
|
||||
path: config.yaml
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cloudflared-metrics
|
||||
spec:
|
||||
selector:
|
||||
app: cloudflared
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 2000
|
||||
targetPort: 2000
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: cloudflared
|
||||
labels:
|
||||
release: prometheus
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cloudflared
|
||||
podMetricsEndpoints:
|
||||
- port: metrics
|
||||
interval: 30s
|
||||
|
|
Loading…
Reference in a new issue