You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the following script, interact with the microk8s control plane. (pip install lightkube)
from lightkube import Client, KubeConfig
import lightkube
import lightkube.resources
import lightkube.resources.authentication_v1
config = KubeConfig.from_file("~/.kube/config")
c = Client(config=config)
list(c.list(lightkube.resources.core_v1.Namespace))
This results in the following API error
lightkube.core.exceptions.ApiError: namespaces is forbidden: User "system:anonymous" cannot list resource "namespaces" in API group "" at the cluster scope
Introspection Report
Can you suggest a fix?
Are you interested in contributing with a fix?
The text was updated successfully, but these errors were encountered:
Summary
What Should Happen Instead?
system:masters system:authenticated
should be returned.Reproduction Steps
microk8s config > ~/.kube/config
)pip install lightkube
)This results in the following API error
Introspection Report
Can you suggest a fix?
Are you interested in contributing with a fix?
The text was updated successfully, but these errors were encountered: