Questions tagged [kubectl]
73 questions
0
votes
0 answers
Error running PostgreSQL Deployment in Kubernetes: "No such file or directory" for data directory
I am trying to deploy a PostgreSQL database using Kubernetes and encountered an error related to the data directory. Below is my YAML configuration for the Deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: db
spec:
replicas: 1
…

Ed Black
- 11
- 1
0
votes
1 answer
AKS Kubectl command doesn't return completed pods
I am using AKS with Kubernetes v1.25.6 and I have started to see a number of pods with a Completed status. From what I understand these are generated when an exit 0 code is returned on the process the pod is running, which for the pods in question…

David Hirst
- 193
- 1
- 1
- 8
0
votes
1 answer
Create Rancher API Key with kubectl
Given access to the kubernetes cluster, but no API key, how can I programatically create a API key for rancher server?
The method described in documentation here requires a password login an a web browser. I would like to get the same outcome…

d_inevitable
- 209
- 1
- 7
- 19
0
votes
1 answer
Kubernetes component status reports etcd as unhealthy
I have a 3 node kube control network setup with etcd, kube-apiserver, kube-control-manager and kube-scheduler running. When I check the status of the components it says etcd is unhealthy, but etcd reports that is healthy
> kubectl get…

George
- 113
- 1
- 2
- 7
0
votes
2 answers
Unable to initialize Kubernetes cluster upon sudo kubeadm init line command
Trying to deploy Kubernetes on AWS EC2 instance. I'm seeing the following errors/warning when running sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=all
Errors:
[WARNING CRI]: container runtime is not running: output:…

Rajesh Mappu
- 101
0
votes
1 answer
Local Kubernetes Dns failure on one of three worker nodes
I have a problem with my Kubernetes on-premise cluster created with kubespray.
I don't know why, but the dns resolutions is not working on one of my three nodes.
I try to mount a debug container to launch a simple nslookup inside, and only from the…
0
votes
1 answer
Trying to install Kubernetes in RHEL 8.5 (CRI-O) - getting error
Trying to install Kubernetes in RHEL 8.5 (CRI-O) - getting error Error: Failed to download metadata for repo 'devel_kubic_libcontainers_stable: Downloading error(s):…
0
votes
0 answers
Frequent DiskPressure in Kubernetes Nodes
I'm currently facing an issue where one of my Kubernetes nodes keeps experiencing DiskPressure, leading to pod evictions and disruption of services. Despite our best efforts, we are struggling to identify the root cause of this problem. I'm seeking…

Ceereals
- 1
- 1
0
votes
1 answer
Cannot install kubectl on Ubuntu - GPG Error
Hi I'm trying to install kubectl following the native package install instructions on the official site, but I get the following error when I try to update apt package list before installing kubectl:
$ sudo apt update
...
Reading package lists...…

sctx
- 13
- 3
0
votes
0 answers
Kubernetes connection refuses often
I have configured Kubernetes using kubeadm in cent os stream 9. When I issue kubectl commands i am getting this error often
The connection to the server xx.xxx.xx.xx:6443 was refused - did you specify the right host or port?
I have used Flannel as…

sreelakshmi
- 1
- 2
0
votes
1 answer
Forwarding apache logs from k8s Pod to Syslog server
I am new to Kubernetes, I know there are multiple ways to log collection. but I am specifically asking about my scenario. we have a Syslog xyz.com port 8090. now we want our pods to send logs to our server xyz.com. what is the best way to achieve…

Yousuf
- 35
- 2
- 6
0
votes
0 answers
Kubelete fails with code=exited, status=1/FAILURE
I have setup K8S on fedora 37, following a
Kubeadmi init
seems images are pulled and things seemed correct. However, when I try
Kubectl cluster-info
0406 11:58:52.440579 704658 memcache.go:265] couldn't get current server API group list: Get…

eliassal
- 101
- 1
0
votes
0 answers
Multi cloud provider kubernetes cluster pod logs got timeout
Hi all i have master node in digital ocean and worker node in google cloud, nodes are connected using public ip of master node and pods are in running status but when i run kubectl logs i'm getting timeout error , also i noticed log is calling with…

Thom
- 101
- 1
0
votes
0 answers
k3s kubectl logs times out after 50 seconds
TLDR: Depending on my k3s version, kubectl logs -f drops back to the console (timeouts?) exactly after 50 seconds without new log entries, instead of remaining attached until a Ctrl-C is issued. I can't seem to find where this is configured or why…

Jorge Yanes Diez
- 191
- 6
0
votes
1 answer
EKS cluster access - aws-auth : add groups in mapRoles
i try to access an EKS cluster on AWS with AWS Account (same i use for the console)
steps i followed :
aws configure with info provided in the "Command line or programmatic access" (AWS Access Key Id/AWS Secret access key) + add the AWS session…

awot83
- 71
- 2
- 6