Skip to content

Instantly share code, notes, and snippets.

@sridhargaddam
Created June 13, 2023 18:23
Show Gist options
  • Save sridhargaddam/3316ff9c625178851541c919e7596171 to your computer and use it in GitHub Desktop.
Save sridhargaddam/3316ff9c625178851541c919e7596171 to your computer and use it in GitHub Desktop.
Disable offload on vxlan interfaces for BM nodes
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: disable-offload
namespace: submariner-operator
spec:
selector:
matchLabels:
app: disable-offload
template:
metadata:
labels:
app: disable-offload
spec:
tolerations:
- operator: Exists
containers:
- name: disable-offload
image: nicolaka/netshoot
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- net_admin
drop:
- all
privileged: true
readOnlyRootFilesystem: false
runAsNonRoot: false
command: ["/bin/sh", "-c"]
args:
- ethtool --offload vx-submariner rx off tx off;
ethtool --offload vxlan-tunnel rx off tx off;
sleep infinity
restartPolicy: Always
securityContext: {}
serviceAccount: submariner-routeagent
serviceAccountName: submariner-routeagent
hostNetwork: true
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment