canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
https://microk8s.io
Apache License 2.0
8.56k stars 772 forks source link

Dont start the pod #3173

Closed tell-me-with-data closed 1 year ago

tell-me-with-data commented 2 years ago

I have the follow error when I try out to start a pod

Warning FailedCreatePodSandBox 2s (x7 over 74s) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "a1d056733f302be3e5da0e67d3b7eb494fde829806a7b422dc0ffa646a6eddaa": [default/nginx-deployment-77cb8f6769-m7nlc:k8s-pod-network]: error adding container to network "k8s-pod-network": error getting ClusterInformation: resource does not exist: ClusterInformation(default) with error: clusterinformations.crd.projectcalico.org "default" not found

I have the next addons:

microk8s is running high-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none addons: enabled: multus # (community) Multus CNI enables attaching multiple network interfaces to pods community # (core) The community addons repository dns # (core) CoreDNS ha-cluster # (core) Configure high availability on the current node hostpath-storage # (core) Storage class; allocates storage from host directory storage # (core) Alias to hostpath-storage add-on, deprecated disabled: argocd # (community) Argo CD is a declarative continuous deployment for Kubernetes. cilium # (community) SDN, fast with full network policy dashboard-ingress # (community) Ingress definition for Kubernetes dashboard fluentd # (community) Elasticsearch-Fluentd-Kibana logging and monitoring inaccel # (community) Simplifying FPGA management in Kubernetes istio # (community) Core Istio service mesh services jaeger # (community) Kubernetes Jaeger operator with its simple config kata # (community) Kata Containers is a secure runtime with lightweight VMS keda # (community) Kubernetes-based Event Driven Autoscaling knative # (community) The Knative framework on Kubernetes. linkerd # (community) Linkerd is a service mesh for Kubernetes and other frameworks openebs # (community) OpenEBS is the open-source storage solution for Kubernetes openfaas # (community) OpenFaaS serverless framework portainer # (community) Portainer UI for your Kubernetes cluster starboard # (community) Kubernetes-native security toolkit traefik # (community) traefik Ingress controller for external access dashboard # (core) The Kubernetes dashboard gpu # (core) Automatic enablement of Nvidia CUDA helm # (core) Helm 2 - the package manager for Kubernetes helm3 # (core) Helm 3 - Kubernetes package manager host-access # (core) Allow Pods connecting to Host services smoothly ingress # (core) Ingress controller for external access mayastor # (core) OpenEBS MayaStor metallb # (core) Loadbalancer for your Kubernetes cluster metrics-server # (core) K8s Metrics Server for API access to service metrics prometheus # (core) Prometheus operator for monitoring and logging rbac # (core) Role-Based Access Control for authorisation registry # (core) Private image registry exposed on localhost:32000 and execute the inspect:
Inspecting system Inspecting Certificates Inspecting services Service snap.microk8s.daemon-cluster-agent is running Service snap.microk8s.daemon-containerd is running Service snap.microk8s.daemon-kubelite is running Service snap.microk8s.daemon-k8s-dqlite is running Service snap.microk8s.daemon-apiserver-kicker is running Copy service arguments to the final report tarball Inspecting AppArmor configuration Gathering system information Copy processes list to the final report tarball Copy snap list to the final report tarball Copy VM name (or none) to the final report tarball Copy disk usage information to the final report tarball Copy memory usage information to the final report tarball Copy server uptime to the final report tarball Copy current linux distribution to the final report tarball Copy openSSL information to the final report tarball Copy network configuration to the final report tarball Inspecting kubernetes cluster Inspect kubernetes cluster Inspecting dqlite Inspect dqlite

WARNING: IPtables FORWARD policy is DROP. Consider enabling traffic forwarding with: sudo iptables -P FORWARD ACCEPT The change can be made persistent with: sudo apt-get install iptables-persistent Building the report tarball Report tarball is at /var/snap/microk8s/3272/inspection-report-20220530_040112.tar.gz please i need support

neoaggelos commented 2 years ago

Hi @tell-me-with-data

I see you have enabled the multus addon. Can you share the pod manifest that you are unable to deploy?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.