Last active 10 months ago

At first the MetalLB is working well, but in a meanwhile strange issue coming and fixed by this script

supanadit revised this gist 10 months ago. Go to revision

No changes

supanadit revised this gist 10 months ago. Go to revision

1 file changed, 1 insertion

metallb.sh

@@ -1,2 +1,3 @@
1 + # This is how we fix loadbalancer IP that couldn't be accessed in MetalLB
1 2 kubectl patch ds speaker -n metallb-system --context default --type='json' -p='[{"op":"add","path":"/spec/template/spec/containers/0/securityContext","value":{"privileged":true,"capabilities":{"add":["NET_ADMIN","NET_RAW"]},"seccompProfile":{"type":"Unconfined"}}}]'
2 3 kubectl rollout restart ds/speaker -n metallb-system --context default

supanadit revised this gist 10 months ago. Go to revision

1 file changed, 2 insertions

metallb.sh(file created)

@@ -0,0 +1,2 @@
1 + kubectl patch ds speaker -n metallb-system --context default --type='json' -p='[{"op":"add","path":"/spec/template/spec/containers/0/securityContext","value":{"privileged":true,"capabilities":{"add":["NET_ADMIN","NET_RAW"]},"seccompProfile":{"type":"Unconfined"}}}]'
2 + kubectl rollout restart ds/speaker -n metallb-system --context default
Newer Older