Skip to content

Instantly share code, notes, and snippets.

@pmint93
Created December 31, 2022 03:39
Show Gist options
  • Select an option

  • Save pmint93/c2ba72f6d711298f9ee75e69f8cdbe62 to your computer and use it in GitHub Desktop.

Select an option

Save pmint93/c2ba72f6d711298f9ee75e69f8cdbe62 to your computer and use it in GitHub Desktop.
Monitor ip stack on K8s nodes from DaemonSet, for debugging purpose
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
labels:
app: ip-monitor
name: ip-monitor
namespace: kube-system
spec:
selector:
matchLabels:
app: ip-monitor
template:
metadata:
labels:
app: ip-monitor
spec:
containers:
- name: default
image: cmd.cat/ip
command:
- ip
args:
- -ts
- monitor
securityContext:
privileged: true
hostNetwork: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment