Questions tagged [kubernetes]

111 questions
11
votes
4 answers

Unable to run any systemd services in WSL

None of the systemd commands are working inside WSL( Ubuntu Bash 18.04). When I ran sudo systemctl is-active kubelet, error is output: System has not been booted with systemd as init system (PID 1). Can't operate. : running command: sudo systemctl…
Santosh Hegde
  • 293
  • 2
  • 4
  • 8
11
votes
3 answers

How to access micro8ks's dashboard web UI?

There's information how to enable the dashboard extension microk8s.enable dashboard (which I ran) and how to display URLs of other extensions enabled like this: kubectl cluster-info How to get the URL of the dashboard of a microk8s installation…
Kalle Richter
  • 5,935
  • 20
  • 69
  • 101
11
votes
4 answers

How do I pass flags when starting a systemd service?

Note a similar question has been asked: How to pass flags when starting 'service'? But I read a while back that Linux switched from init.d to systemd, and since that Q&A are 6 years old I thought it might refer to init.d My question is: How do…
neoakris
  • 233
  • 1
  • 2
  • 8
6
votes
1 answer

How to fix signature key?

I have tried with sudo apt-get update and sudo apt-get upgrade. And i get this error with kubernetes error: I have tried with these following commands below: sudo rm /var/lib/apt/lists/* -vf sudo apt-get clean sudo apt-get update sudo apt-get…
Jonte YH
  • 1,853
  • 5
  • 18
  • 33
6
votes
2 answers

Enabling memory cgroup in Ubuntu 20.04

Instructions for enabling the memory cgroup on Ubuntu 18 and 19 involve adding cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 to /boot/firmware/nobtcmd.txt and restarting. After rebooting, grep mem /proc/cgroups should show it as…
Com
  • 141
  • 1
  • 1
  • 5
6
votes
1 answer

xargs: invalid option -- 'o'

I was trying to execute this command to fix yet another error (Unable to use a TTY - input is not a terminal or the right kind of file): kubectl get pods -n foobar | grep baz | awk '{print $1}' | xargs -J % kubectl exec -it -n foobar %…
Moobie
  • 183
  • 8
6
votes
2 answers

Where to get kubectl man pages?

Any suggestion where I can get and install kubectl man pages? Asking Google all the time is getting annoying. I want to be able to see the man page from the command line like: $ man kubectl pods I obviously know about the documentation online on…
smrt28
  • 294
  • 3
  • 11
5
votes
1 answer

What is the purpose of cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1

I am trying to setup a kubernetes cluster on a raspberry pi cluster using Ubuntu 20.04.3. In many online guides available, one of the steps is mentioned as follows: Edit the /boot/firmware/cmdline.txt and add cgroup_enable=cpuset…
5
votes
1 answer

How to install Kubernetes Locally via Minikube

Trying to learn more about Kubernetes I tried to install a standalone instance. If you try to run minikube terminal? suggest installing it through snap. sudo snap install minikube kubectl snap info minikube Minikube is a tool that makes it easy…
Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
4
votes
0 answers

kubernete-master stuck in waiting

Why kubernete-master workload stuck on waiting? message is: Waiting for kube-system pods to start And when I run sudo juju scp kubernetes-master/1:kubectl ~/bin/kubectl I get this error: ERROR exit status 1 (scp: kubectl: No such file or…
Rastin
  • 784
  • 2
  • 11
  • 25
4
votes
2 answers

Kubernetes installation failing - Ubuntu 16.04

I am trying to install Kubernetes (kubectl) on Ubuntu 16.04 (x64) by following the instructions here. I am behind some proxy at work and I am sure that is the reason for the failure. I know there are a bunch of related questions out there but I have…
3
votes
0 answers

Kubernetes : for application deployment, how do Juju Charms compare to Helm charts?

What are pros/cons in using a Juju Charm rather than a Helm chart to deploy an application over a Kubernetes cluster ? It seems to do quite the same job, for instance for a Wordpress deployment ?
Worthatry
  • 31
  • 4
3
votes
2 answers

conjure-up cannot create user data directory

I have a new installation of Ubuntu 16.04 Server 64-bit. I am trying to setup a basic kubernetes environment using conjure-up. First of all, I have installed conjure-up via snap as instructed on the Ubuntu documentation:…
Ahmed Tawfik
  • 163
  • 1
  • 9
3
votes
0 answers

Why does microk8s keep complaining that the memory cgroup is not enabled?

I have several raspberry pie's with ubuntu 22.04 installed on them. On them I have installed microk8s (1.25). I have also enabled the memory cgroup as per the instructions here:…
3
votes
0 answers

Ubuntu Terminal on Windows 10: how to fix "kubectl: command not found"?

I installed "Ubuntu Terminal on Windows 10" and tried to execute kubectl commands. The problem is that I must add the .exe file extension to the command in order to operate it. If I don't I get: kubectl: command not found For…
dushkin
  • 141
  • 1
  • 6
1
2 3 4 5 6 7 8