WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 625cb8e

Browse files
committed
Move prod to its own values
Too not common, causes problems
1 parent ecc09a8 commit 625cb8e

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

cluster/traefik/values-prod.yaml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
traefik:
2+
3+
deployment:
4+
enabled: true
5+
kind: DaemonSet
6+
dnsPolicy: ClusterFirstWithHostNet
7+
additionalVolumes:
8+
- name: dockersocket
9+
hostPath:
10+
path: /var/run/docker.sock
11+
type: Socket
12+
13+
additionalVolumeMounts:
14+
- name: dockersocket
15+
mountPath: /var/run/docker.sock
16+
17+
additionalArguments:
18+
- "--providers.docker=true"
19+
- "--providers.docker.exposedByDefault=false"
20+
- "--entrypoints.websecure.http.encodequerysemicolons=true"
21+
22+
updateStrategy:
23+
type: RollingUpdate
24+
rollingUpdate:
25+
maxUnavailable: 1
26+
maxSurge: 0
27+
28+
hostNetwork: true
29+
affinity:
30+
podAntiAffinity:
31+
requiredDuringSchedulingIgnoredDuringExecution:
32+
- labelSelector:
33+
matchExpressions:
34+
- key: app.kubernetes.io/name
35+
operator: In
36+
values:
37+
- traefik
38+
topologyKey: kubernetes.io/hostname
39+
40+
ports:
41+
metrics:
42+
# When using hostNetwork, use another port to avoid conflict with node exporter:
43+
# https://github.com/prometheus/prometheus/wiki/Default-port-allocations
44+
port: 9101
45+
web:
46+
port: 80
47+
redirectTo.port: websecure
48+
websecure:
49+
port: 443
50+
transport:
51+
respondingTimeouts:
52+
readTimeout: 0
53+
54+
# Trust the Cloudflare IPs found at https://www.cloudflare.com/en-in/ips/
55+
forwardedHeaders:
56+
trustedIPs:
57+
- "173.245.48.0/20"
58+
- "103.21.244.0/22"
59+
- "103.22.200.0/22"
60+
- "103.31.4.0/22"
61+
- "141.101.64.0/18"
62+
- "108.162.192.0/18"
63+
- "190.93.240.0/20"
64+
- "188.114.96.0/20"
65+
- "197.234.240.0/22"
66+
- "198.41.128.0/17"
67+
- "162.158.0.0/15"
68+
- "104.16.0.0/13"
69+
- "104.24.0.0/14"
70+
- "172.64.0.0/13"
71+
- "131.0.72.0/22"
72+
replay-stream:
73+
port: 15000
74+
irc-plain:
75+
port: 6667
76+
irc-tls:
77+
port: 6697
78+
79+
# HostNetwork
80+
service:
81+
enabled: false
82+
83+
logs:
84+
general:
85+
# -- By default, the logs use a text format (common), but you can
86+
# also ask for the json format in the format option
87+
# format: json
88+
# By default, the level is set to ERROR.
89+
# -- Alternative logging levels are DEBUG, PANIC, FATAL, ERROR, WARN, and INFO.
90+
level: ERROR
91+
92+
# This is bugged on 3.0 helmchart, use the CRD in another file
93+
# tlsStore:
94+
# default:
95+
# defaultCertificate:
96+
# secretName: cloudflare-faf-xyz
97+
98+
securityContext:
99+
capabilities:
100+
drop: [ALL]
101+
add: [NET_BIND_SERVICE]
102+
readOnlyRootFilesystem: true
103+
runAsGroup: 0
104+
runAsNonRoot: false
105+
runAsUser: 0

0 commit comments

Comments
 (0)