forked from vrapolinario/MinikubeWindowsContainers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kube-proxy.yaml
57 lines (57 loc) · 1.55 KB
/
kube-proxy.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
k8s-app: kube-proxy
name: kube-proxy-windows
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: kube-proxy-windows
template:
metadata:
labels:
k8s-app: kube-proxy-windows
spec:
serviceAccountName: kube-proxy
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: "NT AUTHORITY\\system"
hostNetwork: true
containers:
- image: sigwindowstools/kube-proxy:v1.27.3-flannel-hostprocess
name: kube-proxy
imagePullPolicy: Always
env:
# kube-proxy will use this value to select the correct network
# https://github.com/kubernetes/kubernetes/blob/b0bc8adbc2178e15872f9ef040355c51c45d04bb/pkg/proxy/winkernel/proxier.go#L155-L158
- name: KUBE_NETWORK
value: "flannel.4096"
- name: CNI_BIN_PATH
value: C:\\opt\\cni\\bin
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
volumeMounts:
- mountPath: /mounts/var/lib/kube-proxy
name: kube-proxy
nodeSelector:
kubernetes.io/os: windows
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- operator: Exists
volumes:
- configMap:
name: kube-proxy
name: kube-proxy
updateStrategy:
type: RollingUpdate