kind: Error: secret "memberlist" not found
I’m trying to deploy the new metallb release, and after following the steps:
kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.9.3/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.9.3/manifests/metallb.yaml
# On first install only
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
$ kubectl get pods --all-namespaces
Returning the following error:
NAMESPACE NAME READY STATUS RESTARTS AGE
default traefik-6588bbf6-dvd6z 1/1 Running 0 4m13s
kube-system coredns-6955765f44-krc8w 1/1 Running 0 5m56s
kube-system coredns-6955765f44-n48jn 1/1 Running 0 5m56s
kube-system etcd-local-control-plane 1/1 Running 0 6m10s
kube-system kindnet-cs8w9 1/1 Running 0 5m56s
kube-system kube-apiserver-local-control-plane 1/1 Running 0 6m10s
kube-system kube-controller-manager-local-control-plane 1/1 Running 0 6m10s
kube-system kube-proxy-xxfzm 1/1 Running 0 5m56s
kube-system kube-scheduler-local-control-plane 1/1 Running 0 6m10s
local-path-storage local-path-provisioner-7745554f7f-jdf72 1/1 Running 0 5m56s
metallb-system controller-5c9894b5cd-mzx8q 1/1 Running 0 5m48s
metallb-system speaker-dhbtb 0/1 CreateContainerConfigError 0 5m10s
The pod logs:
$ kubectl describe pods -n metallb-system
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
speaker-token-zpcrv:
Type: Secret (a volume populated by a Secret)
SecretName: speaker-token-zpcrv
Optional: false
QoS Class: Guaranteed
Node-Selectors: beta.kubernetes.io/os=linux
Tolerations: node-role.kubernetes.io/master:NoSchedule
node.kubernetes.io/disk-pressure:NoSchedule
node.kubernetes.io/memory-pressure:NoSchedule
node.kubernetes.io/network-unavailable:NoSchedule
node.kubernetes.io/not-ready:NoExecute
node.kubernetes.io/pid-pressure:NoSchedule
node.kubernetes.io/unreachable:NoExecute
node.kubernetes.io/unschedulable:NoSchedule
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 8m4s default-scheduler Successfully assigned metallb-system/speaker-dhbtb to local-control-plane
Normal Pulled 6m8s (x8 over 7m54s) kubelet, local-control-plane Successfully pulled image "metallb/speaker:v0.9.3"
Warning Failed 6m8s (x8 over 7m54s) kubelet, local-control-plane Error: secret "memberlist" not found
Normal Pulling 3m1s (x20 over 8m3s) kubelet, local-control-plane Pulling image "metallb/speaker:v0.9.3"
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (13 by maintainers)
this should fix it:
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey=“$(openssl rand -base64 128)”
I can’t reproduce this either.