Questions tagged [microk8s]

19 questions
22
votes
5 answers

Is microk8s suitable for production environments, or is it just for development?

microk8s appears to be an easy way to install Kubernetes on Ubuntu. Several places refer to it as an alternative to minikube, which is not aimed at production environments, and this post seems to indicate that it's mostly aimed at development…
Travis
  • 355
  • 1
  • 2
  • 8
2
votes
1 answer

Access Kubernetes Dashboard Via HTTP Instead of HTTPS

Question How can I enable HTTP requests? I have a primary web server that is a proxy and sends HTTP requests to the MicroK8S server but cannot due to the HTTP error. Install command used: sudo snap install microk8s --classic…
Pie
  • 292
  • 1
  • 5
  • 17
2
votes
0 answers

What decides node's hostname when adding new node with microk8s?

I am building a cluster of machines all running the same setup: Ubuntu Server 20.04.2 during installation I select a unique short hostname when OS is installed, I add microk8s 1.20/stable via snap and add permissions following this tutorial I…
porkbrain
  • 121
  • 4
1
vote
2 answers

"failed to created runc console socket" when calling kubectl exec

I have an Ubuntu Server in my basement running MicroK8S, installed via Snap. I'm trying to create a simple pod using kubectl run that I can exec into for debugging purposes. But I keep failing. At first, I tried this command: kubectl run -it --rm…
soapergem
  • 719
  • 4
  • 13
  • 29
1
vote
1 answer

kubernetes ingress replace path

I have two backend api-services: api-service-v1 api-service-v2 Both respond on "/api/" path I have this configuration running fine as a docker-compose setup where nginx service serves as a proxy with the following config…
1
vote
1 answer

Trouble with DNS resolution on and Microk8s cluster

My microk8s cluster is running on a centos8 vm and I have some issues with DNS resolution of my pods. Nameserver are at x.x.x.101 and x.x.x.100 both are ping able from within the pods and I can also ping 8.8.8.8 nslookup from within a pod looks like…
Thagor
  • 111
  • 1
  • 3
1
vote
1 answer

How to check if a node in k8s cluster got rebooted

k8s master checks for kubelet status at frequent intervals. Maybe we can change that time and that makes the node not-ready. But that doesn't always mean that the node got rebooted. How to change kubelet status check frequency? If I don't want to…
user762025
  • 11
  • 1
1
vote
1 answer

How to setup custom authentication and authorization in Istio/K8?

Let's say, I have a project that has 8 pods(services). I understand that authentication and authorization are covered in Istio Gateway using jwt. So that every request is verified. But users with different roles ex: [teacher, student, staff] need to…
coolisuz
  • 13
  • 2
0
votes
0 answers

Checking missing nodes in microk8s cluster with ansible

I'm trying to automate servers configuration to deploy a microk8s cluster with Ansible My main playbook : - name: Getting connected nodes ansible.builtin.shell: "microk8s.kubectl get nodes -o wide | awk '{ print $6, $2 }'" register:…
Ben
  • 1
0
votes
1 answer

Error when create a MicroK8s cluster : Connection failed. The hostname (xx) of the joining node does not resolve to the IP "xx". Refusing join (400)

I have installed microk8s(1.24/stable) on two machines. The ip of the two machines are:172.29.99.187, 172.29.99.188. I operate the command at 172.29.99.187:microk8s add-node Output: From the node you wish to join to this cluster, run the…
ya chen
  • 11
  • 3
0
votes
0 answers

Contiv-vswitch pod restarts when new node joins the cluster

I am facing one issue in contiv vpp cni Create k8s cluster with one master and one worker node using contiv vpp as k8s cni plugin. Launch any pod like ngnix. Join new worker node in the cluster. Contiv-vswitch pod getting restarted in master and…
0
votes
0 answers

Seeking advice regarding ingress versus load balancing for app in microk8s cluster

I have a seven node microk8s cluster set up on an Ubuntu server in my cellar. multipass shows me I have three IP address per VM since I created these hosts using the bridged network option. I thought having a routable IP might make it easier to…
mr.zog
  • 902
  • 3
  • 16
  • 36
0
votes
0 answers

GCP: When creating GKE cluster using service account,what roles ( permissions) needs to assinged?

I plan to create GKE cluster using terraform using service account.However I am not 100% sure before I run terraform script what API I needs to enable and what exact roles ( permissions ),I needs to assign to service account.I can simply asisng…
0
votes
0 answers

I want to change the service cluster ip range with microk8s

Environment : Ubuntu 18.04 microk8s v1.23.3 3 HA master node The default setting of kube-apisever is as follow. --service-cluster-ip-range=10.152.183.0/24 I want to change from now to 10.152.184.0/24 I couldn't find the way to resolve. Is there…
0
votes
0 answers

microk8s: pod resource usage metrics not available from all nodes

I am running microk8s v1.22/stable on a Linux cluster with 11 nodes. I have enabled the metrics-server plugin and installed Prometheus via the Helm chart with nodeExporter and kubeStateMetrics enabled. I get all sort of other metrics, but I have…
mhusaini
  • 101
  • 1
1
2