Skip to content

Instantly share code, notes, and snippets.

@brandond
Last active August 11, 2021 22:06
Show Gist options
  • Save brandond/e3b6b92fc05d3512f4ed98bef0eeea68 to your computer and use it in GitHub Desktop.
Save brandond/e3b6b92fc05d3512f4ed98bef0eeea68 to your computer and use it in GitHub Desktop.
zbalance_ipc + pfcount in a pod
apiVersion: v1
kind: Pod
metadata:
name: ntop
namespace: default
spec:
hostNetwork: true
terminationGracePeriodSeconds: 15
containers:
- image: ntop/ntopng:stable
name: zbalance-ipc
imagePullPolicy: IfNotPresent
command:
- "zbalance_ipc"
- "-i"
- "eth0"
- "-n"
- "1"
- "-m"
- "1"
- "-c"
- "1"
- "-g"
- "1"
- "-E"
- "-v"
volumeMounts:
- name: hugepage
mountPath: /dev/hugepages
- name: pf-ring
mountPath: /etc/pf_ring
resources:
requests:
cpu: 1.0
memory: 1024Mi
hugepages-2Mi: 100Mi
limits:
memory: 1024Mi
hugepages-2Mi: 100Mi
securityContext:
privileged: true
- image: ntop/ntopng:stable
name: pfcount
imagePullPolicy: IfNotPresent
command:
- "pfcount"
- "-i"
- "zc:1@0"
volumeMounts:
- name: hugepage
mountPath: /dev/hugepages
- name: pf-ring
mountPath: /etc/pf_ring
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
memory: 1024Mi
securityContext:
privileged: true
volumes:
- name: hugepage
emptyDir:
medium: HugePages
- name: pf-ring
hostPath:
path: /etc/pf_ring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment