Update cloudflared, expose metrics, replicas to 3
This commit is contained in:
parent
55f0bf49c8
commit
a5e7b2ecae
|
@ -7,7 +7,7 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: cloudflared
|
app: cloudflared
|
||||||
replicas: 1
|
replicas: 3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -15,12 +15,15 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: cloudflared
|
- name: cloudflared
|
||||||
image: cloudflare/cloudflared:2023.10.0-arm64
|
image: cloudflare/cloudflared:2024.2.1
|
||||||
args:
|
args:
|
||||||
- tunnel
|
- tunnel
|
||||||
- --config
|
- --config
|
||||||
- /etc/cloudflared/config/config.yaml
|
- /etc/cloudflared/config/config.yaml
|
||||||
- run
|
- run
|
||||||
|
ports:
|
||||||
|
- containerPort: 2000
|
||||||
|
name: metrics
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
# Cloudflared has a /ready endpoint which returns 200 if and only if
|
# Cloudflared has a /ready endpoint which returns 200 if and only if
|
||||||
|
@ -47,4 +50,29 @@ spec:
|
||||||
items:
|
items:
|
||||||
- key: config.yaml
|
- key: config.yaml
|
||||||
path: 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