Panic: failed to get resource type: failed to get the resource REST mapping for GroupVersionKind

kubectl get pods --all-namespaces -l name=stork

NAMESPACE NAME READY STATUS RESTARTS AGE

default stork-68cc4c8d5f-gmbch 1/1 Running 1 14h

default stork-68cc4c8d5f-mbxks 1/1 Running 1 14h

default stork-68cc4c8d5f-rhd4b 1/1 Running 0 14h

kubectl logs -l name=stork -n kube-system