All gists

supanadit
Last active 8 hours ago
0 0 4
1 <VirtualHost *:8080>
2 # The ServerName directive sets the request scheme, hostname and port that
3 # the server uses to identify itself. This is used when creating
4 # redirection URLs. In the context of virtual hosts, the ServerName
5 # specifies what hostname must appear in the request's Host: header to
6 # match this virtual host. For the default virtual host (this file) this
7 # value is not decisive as it is used as a last resort host regardless.
8 # However, you must set it for any further virtual host explicitly.
9 #ServerName www.example.com
supanadit
Last active 8 hours ago

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

0 0 1
1 # This is how we fix loadbalancer IP that couldn't be accessed in MetalLB
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"}}}]'
3 kubectl rollout restart ds/speaker -n metallb-system --context default