forked from twright-msft/sockFactory3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-node-pod.sh
More file actions
25 lines (24 loc) · 945 Bytes
/
debug-node-pod.sh
File metadata and controls
25 lines (24 loc) · 945 Bytes
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
# pod name: debug-node-pingpong
# node name: aks-pingpong-22031471-vmss000000
# image name: mcr.microsoft.com/oss/nginx/nginx:1.21.6
kubectl run debug-node-pingpong --restart=Never -it -n kube-system --rm --image overriden \
--overrides '{
"spec":
{
"hostPID": true,
"hostNetwork": true,
"nodeSelector":
{"kubernetes.io/hostname": "aks-pingpong-22031471-vmss000000"},
"tolerations": [{"operator": "Exists"}],
"containers":
[{
"name": "nsenter",
"image": "mcr.microsoft.com/oss/nginx/nginx:1.21.6",
"command":
[ "nsenter", "--all", "--target=1", "--", "su", "-" ],
"stdin": true,
"tty": true,
"securityContext": { "privileged": true }
}]
}
}'