Reputation: 310
I want to expose a pod app to port 80, for that i have installed Metallb and configured a load balancer like this:
metallb-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.1.100-192.168.1.150
loadbalancer.yaml
apiVersion: v1
kind: Service
metadata:
name: loadbalancer-watchdog
spec:
selector:
part: watchdog
ports:
- port: 80
targetPort: 10069
type: LoadBalancer
externalTrafficPolicy: Local
But when i do kubectl get svc
the loadBalancer keep appearing as and if i check metallb with `kubectl -n metallb-system get all i can see this:
If i check the logs:
Has something to do with my config or do i miss some step in the configuration of Metallb?
EDIT:
Output of kubectl -n kube-system get pods
Apparently the coredns are down and also the storage.
Upvotes: 1
Views: 1633
Reputation: 11
the same thing happened to me but it did not start because it collided with a docker swarm port, just run
docker swarm leave -f
and try again
Upvotes: 1