-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwcnspectserv-daemon.yml
43 lines (42 loc) · 1.05 KB
/
wcnspectserv-daemon.yml
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: wcnspect-server
name: wcnspect-server
namespace: kube-system
spec:
selector:
matchLabels:
app: wcnspect-server
template:
metadata:
labels:
app: wcnspect-server
name: wcnspect-server
namespace: kube-system
spec:
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: "NT AUTHORITY\\SYSTEM"
runAsNonRoot: false
hostNetwork: true
containers:
- name: windowswcnspectserver
image: ghcr.io/microsoft/wcnspect:latest
command:
- powershell.exe
- -command
- ./wcnspectserv.exe # can add `-p {num}` here to change server's port
securityContext:
privileged: true
nodeSelector:
kubernetes.io/os: windows