I got this error messages in my pod, using this command:
kubectl create deploy fastapi-helloworld --image=juanb3r/fastapi-multi:latest
I donĀ“t know why the container can't be created.
I just needed to install this:
zypper install apparmor-parser
on my vagrant
Related
I have installed OracleVM, and created an Ubuntu machine. I have not tried any major cluster or tried deploying anything, I have started reading about Kubernetes and as an example just tried creating a simple pod. But I am getting host error, can anyone tell me where am I going wrong?
I have tried the simple kubectl run command
The snip of my issue
You need to disable swap on the system for kubelet to work. You can disable swap with sudo swapoff -a and restart kubelet service sudo systemctl restart kubelet
Comand $ kubectl kots install gitpod failed
Error screenshot link
I installed K8S, kubectl and another necessary utilities for Gitpod.
But the last step, $ kubectl kots install gitpod filed with the error (attached image)
Please help me out if anybody has experiences of installing Gitpod self-hosted.
I attempted it on my AWS EC2 (Ubuntu 20.04).
Thanks
I am new in K8s world and I am using helm to install the stable/mysql template then I would like to test it.
I run below to spawn a new ubuntu container as mysql client. However the apt-get update stuck at "Waiting for headers" always.
kubectl run -i --tty ubuntu --image=ubuntu:16.04 --restart=Never -- bash -il
root#ubuntu:/# apt-get update
0% [Waiting for headers] [Waiting for headers]
I think it is network issue, but I am not able to install any tool to debug as the apt-get not work.
I tried couple of ways like modifying the /etc/resolv.conf, but it seems it doesn't help.
Anyone can share me some lights about how to proceed?
Thanks!
Follow this to setup the proxy will make it work. https://askubuntu.com/questions/109673/how-to-use-apt-get-via-http-proxy-like-this
Add below content to file /etc/apt/apt.conf.
Acquire::http::Proxy "http://proxy.server.port:8080";
I have installed Apache Superset from its Helm Chart in a Google Cloud Kubernetes cluster. I need to pip install a package that is not installed when installing the Helm Chart. If I connect to the Kubernetes bash shell like this:
kubectl exec -it superset-4934njn23-nsnjd /bin/bash
Inside there's no python available, no pip and apt-get doesn't find most of the packages.
I understand that during the container installation process the packages are listed in the Dockerfile, I suppose that I need to fork the docker container, modify the Dockerfile, register the container to a container registry and make a new Helm Chart that will run this container.
But all this seems too complicated for a simple pip install, is there a simpler way to do this?
Links:
Docker- https://hub.docker.com/r/amancevice/superset/
Helm Chart - https://github.com/helm/charts/tree/master/stable/superset
As #Murli mentioned, you should use pip3. However, one thing you should remember is, helm is for managing k8s, i.e. what goes into the cluster should be traceable. So I recommend you the following:
$ helm get stable/superset
modify the values.yaml. In my case, I added jenkins-job-builder to pip3:
initFile: |-
pip3 install jenkins-job-builder
/usr/local/bin/superset-init --username admin --firstname admin --lastname user --email admin#fab.org --password admin
superset runserver
and just pass the values.yaml to helm install.
$ helm install --values=values.yaml stable/superset
Thats it.
$ kubectl exec -it doltish-gopher-superset-696448b777-8b9c6 which jenkins-jobs
/usr/local/bin/jenkins-jobs
$
Docker file seems to be installing python3 package.
Try 'python3' or "pip3" instead of 'python'/'pip'
Make the container, a little more dev work and many fewer alerts from pager duty
I'm following steps mentioned here to configure kubernete cluster.But when I'm executing kubectl get nodes to check the status of my newly created cluster, that time I'm getting error message The connection to the server localhost:8080 was refused - did you specify the right host or port?
In this link it is mentioned for Ubuntu 14.04 LTS 64bit server, but I'm using Ubuntu 16,04 64 Bit.
Can you expert please help me to solve this issue?
You need to run the following commands (as a regular user) after you have initialized your cluster:
sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf
Follow this issue on GitHub if you still encounter it.
The document your following is more then year old, its not update to date steps.
I would recommend creating cluster using the kubeadm with version v.1.7.0
https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/
use this configure master
kubeadm init --pod-network-cidr=10.244.0.0/16 --kubernetes-version v1.7.0
It looks like your client configuration thinks the server runs on localhost:8080 which is probably not the case.
Can you look at the ~/.kube/config file to see what is configured there?
Also try running kubectl --server=<SERVER_IP>:<SERVER_PORT> get nodes and see if this helps.