Created
June 13, 2023 18:23
-
-
Save sridhargaddam/3316ff9c625178851541c919e7596171 to your computer and use it in GitHub Desktop.
Disable offload on vxlan interfaces for BM nodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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