-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudflared.yaml
86 lines (86 loc) · 2.57 KB
/
cloudflared.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# https://github.com/cloudflare/argo-tunnel-examples/blob/master/named-tunnel-k8s/cloudflared.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflared
namespace: kube-system
spec:
selector:
matchLabels:
app: cloudflared
replicas: 3
template:
metadata:
labels:
app: cloudflared
spec:
containers:
- name: cloudflared
image: cloudflare/cloudflared:2024.4.1
args:
- tunnel
- --config
- /etc/cloudflared/config/config.yaml
- run
ports:
- containerPort: 2000
name: metrics
livenessProbe:
httpGet:
path: /ready
port: 2000
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
volumeMounts:
- name: config
mountPath: /etc/cloudflared/config
readOnly: true
- name: creds
mountPath: /etc/cloudflared/creds
readOnly: true
volumes:
- name: creds
secret:
secretName: tunnel-credentials
- name: config
configMap:
name: cloudflared
items:
- key: config.yaml
path: config.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cloudflared
namespace: kube-system
data:
config.yaml: |
tunnel: example-tunnel
credentials-file: /etc/cloudflared/creds/credentials.json
metrics: 0.0.0.0:2000
ingress:
- hostname: gogs.jibby.org
service: http://gogs-service.gogs.svc.cluster.local:3000
- hostname: miniflux.jibby.org
service: http://miniflux-service.miniflux.svc.cluster.local:8080
- hostname: ntfy-alertmanager.jibby.org
service: http://ntfy-alertmanager.monitoring.svc.cluster.local:80
- hostname: homeassistant.jibby.org
service: http://homeassistant-service.homeassistant.svc.cluster.local:8123
- hostname: ntfy.jibby.org
service: http://ntfy-service.ntfy.svc.cluster.local:80
# - hostname: mastodon.jibby.org
# service: http://mastodon-service.mastodon.svc.cluster.local:3000
# - hostname: streaming-mastodon.jibby.org
# service: http://mastodon-service.mastodon.svc.cluster.local:4000
#- hostname: vaultwarden.jibby.org
# service: http://vaultwarden-service.vaultwarden.svc.cluster.local:80
#- hostname: vaultwarden.jibby.org
# path: /notifications/hub.*
# service: http://vaultwarden-service.vaultwarden.svc.cluster.local:3012
#- hostname: matrix.jibby.org
# service: http://matrix-service.matrix.svc.cluster.local:8008
- service: http_status:404