-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemonset.yaml
74 lines (74 loc) · 1.93 KB
/
daemonset.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: cloudflared
namespace: cloudflared
spec:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
revisionHistoryLimit: 3
selector:
matchLabels:
app: cloudflared
template:
metadata:
labels:
app: cloudflared
spec:
serviceAccountName: cloudflared
containers:
- name: cloudflared
image: cloudflare/cloudflared:2022.1.2
imagePullPolicy: Always
args:
- tunnel
- --loglevel=debug
- --metrics=0.0.0.0:3333
- --no-autoupdate
- --config=/etc/cloudflared/config/config.yaml
- --credentials-file=/etc/cloudflared/credentials/credentials.json
- run
volumeMounts:
- name: config
mountPath: /etc/cloudflared/config
readOnly: true
- name: credentials
mountPath: /etc/cloudflared/credentials
readOnly: true
securityContext:
runAsUser: 11111
runAsGroup: 11111
readOnlyRootFilesystem: true
ports:
- name: metrics
containerPort: 3333
livenessProbe:
httpGet:
port: metrics
path: /ready
initialDelaySeconds: 3
periodSeconds: 3
failureThreshold: 1
resources:
requests:
cpu: 50m
memory: 50M
limits:
cpu: 100m
memory: 100M
volumes:
- name: config
configMap:
name: cloudflared
items:
- key: config.yaml
path: config.yaml
- name: credentials
secret:
secretName: cloudflared
items:
- key: credentials.json
path: credentials.json