-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDetectDuplicateIpAddress.yaml
More file actions
31 lines (31 loc) · 1.02 KB
/
DetectDuplicateIpAddress.yaml
File metadata and controls
31 lines (31 loc) · 1.02 KB
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: detect-dup-ip
labels:
app: detect-dup-ip
spec:
selector:
matchLabels:
name: detect-dup-ip
template:
metadata:
labels:
name: detect-dup-ip
spec:
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: "NT AUTHORITY\\SYSTEM"
hostNetwork: true
containers:
- name: detect-dup-ip
image: mcr.microsoft.com/dotnet/framework/samples:aspnetapp
command:
- powershell.exe
- -command
- '$BaseDir = "c:\k\debug"; Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/wcnscripts/refs/heads/user/rishusingh/duplicateIPdetection/scripts/duplicateIpDetection/DetectDuplicateIpAddr.ps1" -OutFile $BaseDir\DetectDuplicateIpAddr.ps1 | Write-Host; cd $BaseDir; .\DetectDuplicateIpAddr.ps1'
securityContext:
privileged: true
nodeSelector:
kubernetes.azure.com/os-sku: Windows2022