I am following this tutorial to Install Kubernetes on Ubuntu: MicroK8s - Zero-ops Kubernetes for developers, edge and IoT
When I run this command I get an error:
microk8s status --wait-ready
I get this error:
Error: open servers store: open /var/snap/microk8s/3021/var/kubernetes/backend/cluster.yaml: permission denied
This is the entire output of the command:
microk8s is running
Error: open servers store: open /var/snap/microk8s/3021/var/kubernetes/backend/cluster.yaml: permission denied
Usage:
dqlite -s <servers> <database> [command] [flags]
Flags:
-c, --cert string public TLS cert
-f, --format string output format (tabular, json) (default "tabular")
-h, --help help for dqlite
-k, --key string private TLS key
-s, --servers strings comma-separated list of db servers, or file://<store>
Error: open servers store: open /var/snap/microk8s/3021/var/kubernetes/backend/cluster.yaml: permission denied
Usage:
dqlite -s <servers> <database> [command] [flags]
Flags:
-c, --cert string public TLS cert
-f, --format string output format (tabular, json) (default "tabular")
-h, --help help for dqlite
-k, --key string private TLS key
-s, --servers strings comma-separated list of db servers, or file://<store>
high-availability: no
datastore master nodes: 127.0.0.1:19001
datastore standby nodes: none
addons:
enabled:
ha-cluster # Configure high availability on the current node
disabled:
ambassador # Ambassador API Gateway and Ingress
cilium # SDN, fast with full network policy
dashboard # The Kubernetes dashboard
dashboard-ingress # Ingress definition for Kubernetes dashboard
dns # CoreDNS
fluentd # Elasticsearch-Fluentd-Kibana logging and monitoring
gpu # Automatic enablement of Nvidia CUDA
helm # Helm 2 - the package manager for Kubernetes
helm3 # Helm 3 - Kubernetes package manager
host-access # Allow Pods connecting to Host services smoothly
inaccel # Simplifying FPGA management in Kubernetes
ingress # Ingress controller for external access
istio # Core Istio service mesh services
jaeger # Kubernetes Jaeger operator with its simple config
kata # Kata Containers is a secure runtime with lightweight VMS
keda # Kubernetes-based Event Driven Autoscaling
knative # The Knative framework on Kubernetes.
kubeflow # Kubeflow for easy ML deployments
linkerd # Linkerd is a service mesh for Kubernetes and other frameworks
metallb # Loadbalancer for your Kubernetes cluster
metrics-server # K8s Metrics Server for API access to service metrics
multus # Multus CNI enables attaching multiple network interfaces to pods
openebs # OpenEBS is the open-source storage solution for Kubernetes
openfaas # OpenFaaS serverless framework
portainer # Portainer UI for your Kubernetes cluster
prometheus # Prometheus operator for monitoring and logging
rbac # Role-Based Access Control for authorisation
registry # Private image registry exposed on localhost:32000
storage # Storage class; allocates storage from host directory
traefik # traefik Ingress controller for external access
user@ubuntu:~$