Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 749 Bytes

File metadata and controls

28 lines (25 loc) · 749 Bytes

MetalLB

If you need an loadbalancer service, you can setup metalLB.

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/metallb.yaml

# On first install only
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"

If you using vagrant in this repository, you can apply this configmap

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
data:
  config: |
    address-pools:
    - name: default
      protocol: layer2
      addresses:
      - 10.200.100.110-10.200.100.250
EOF