Questions tagged [kubernetes]

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

Filter by
Sorted by
Tagged with
0 votes
1 answer
296 views

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): repodata/...
Madhuri Muralidhar's user avatar
1 vote
1 answer
770 views

cannot run kubeadm init on centos

I am trying to run kubeadm init on my centos 8 server and I am getting this error I0609 09:51:54.527931 2575529 version.go:255] remote version is much newer: v1.27.2; falling back to: stable-1.23 [...
noob_coder's user avatar
0 votes
0 answers
72 views

Rancher 2 RKE cluster component kube-api-auth is throwing an error with v1Authenticate request

I’m facing a strange error in my RKE1 k8s cluster. Running 1.24.13 on vsphere. kube-api-auth is constantly throwing these errors in the logs: time="2023-06-08T09:21:09Z" level=info msg="...
aprilduck's user avatar
0 votes
1 answer
426 views

Trying to get Nginx redirect working in a pod

So, I'm trying to do a very basic Nginx redirect from https://strnordicfin.eu/magnesium-fakta to https://strnordicse.eu/ntr/some/magnesium/ (just training domains, no worries). My nginx-config looks ...
Antti Karvinen's user avatar
0 votes
1 answer
1k views

How kubernetes can expose port when docker not allows exposing port after creation

As far as i know, in docker you have to describe the ports that will be used on container while creating it, and you cannot add any other ports afterwards. But as i see, in kubernetes you can "...
signalz's user avatar
1 vote
2 answers
3k views

How to fix "failed to unpack image on snapshotter overlayfs: unexpected media type text/html" when MicroK8S is starting a deployment?

I continue down the frustratingly stop-start road of learning Kubernetes (specifically MicroK8S). I build an image locally on a development laptop thus: docker build -t k8s-workload . This is a ...
halfer's user avatar
  • 181
0 votes
1 answer
259 views

How to handle kubernetes workload crash-loop under load

Here is what I consider a quite generic situation for which I'm not sure what the best solution is. Consider you have a k8s workload where pods need 10-30seconds to be Ready. If at some point you get ...
mveroone's user avatar
  • 474
0 votes
1 answer
476 views

K8S cluster pod can't solve service name if pod on different node from coredns pod

I created a k8s Cluster v1.26.0 with kubeadm and I am using Calico as CNI. I deploy calico with the helm chart and I followed the steps by the Calico official page and chart. The container engine is ...
Peeradis Sa-nguantrakul's user avatar
0 votes
0 answers
155 views

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 ...
Ceereals's user avatar
0 votes
0 answers
544 views

DNS resolution is not working in k8 pods after k8 version upgraded to v1.25

We have upgraded our Kubernetes version from v1.24 to v1.25. We have used kubespray (version v1.2.21) for cluster creation. The cluster is upgraded successfully to v1.25. But once we deploy pods, not ...
Tapan Hegde's user avatar
0 votes
0 answers
171 views

How to enable overlay inside of crio containers?

For Gitlab ci/cd I have the following infrastructure: There is a Gitlab instance, which is connected to a kubernetes cluster(crio engine), via a gitlab kubernetes runner. When there is a commit, the ...
iaquobe's user avatar
  • 121
0 votes
0 answers
35 views

Why is k3d Node 'k3d-gitops-playground-server-0'restarting for more than a minute now?

I a trying to reproduce gitops playground After bash <(curl -s \ https://raw.githubusercontent.com/cloudogu/gitops-playground/main/scripts/init-cluster.sh) \ && sleep 2 && ...
MikiBelavista's user avatar
0 votes
1 answer
142 views

Customizing capability in migrating pod security admission

From my understanding, in the pod security admission(PSA), there is no customization feature. We can only select one of the security levels (privileged, baseline or restricted) Now, there is a pod ...
JayJay-K's user avatar
0 votes
1 answer
478 views

Kubeadm - Kubernetes: Failed to fetch https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-arm64

I am trying to deploy kubernetes (kubeadm cluster) on ARM64 based Ubuntu 20.04 virtual machine. I am getting the follwoing error when deploying kubeadm: xxx@controller01:~$ sudo mkdir -p /etc/apt/...
Khaled's user avatar
  • 101
0 votes
0 answers
247 views

How can I make Kubernetes use a private repository by default with Nexus and Containerd?

K8S need to use private repo by default I'm currently trying to use Nexus Repo by default for Kubernetes. But I have 2 problems. The first one is that if I don't specify the repository, it will ...
Gui55aume's user avatar
0 votes
0 answers
57 views

Why is Keycloak not functioning properly in my one Master and one worker Kubernetes cluster using Rook?

Rook Problem | PVC Currently, Rook doesn't seem to be working properly, but it's important to note that I only have one Master and one worker, which is intended for testing purposes. Here are the ...
Gui55aume's user avatar
2 votes
0 answers
650 views

Failed pvc attachment using kubernetes longhorn

I'm running a self hosted RKE2 (rancher) kubernetes cluster (1.27) and longhorn (1.4.2) and I need some help for the correct configuration. I'm deploying some database stuff via helm, like mongoDB, ...
user3142695's user avatar
0 votes
0 answers
109 views

Kubernetes tomcat cluster: skipping state transfer. No members active in cluster group

k8s StatefulSet: apiVersion: v1 kind: Service metadata: name: my-web labels: app: my-web spec: ports: - name: http port: 8080 targetPort: 8080 selector: app: my-web ...
eastwater's user avatar
  • 109
0 votes
0 answers
180 views

Multi-master for high availability on CapRover?

I am setting up an application using CapRover (moving from just a single ec2 instance after a hardware failure knocked the whole thing offline). I have everything containerized in Docker, it's all ...
Josh Liptzin's user avatar
1 vote
2 answers
455 views

Kubernetes network policy prevents NFS PVC from mounting

I have Ganesha NFS server provisioner installed in my cluster as STS according to the documentation. I run it with just a mounted block storage PVC. I deploy a separate NFS server per namespace and I ...
chingis's user avatar
  • 243
0 votes
0 answers
15 views

kubernetes: URLs for Mysql operator YAML stable versions

Install mysql operator: Following https://dev.mysql.com/doc/mysql-operator/en/mysql-operator-installation-kubectl.html kubectl apply -f https://raw.githubusercontent.com/mysql/mysql-operator/trunk/...
eastwater's user avatar
  • 109
1 vote
1 answer
164 views

Microk8s - Non-HA single node, leaving node removes all pods

Iam running the microk8s in ubuntu in no high availability i.e. there is a single node onto the same machine where it is installed. I updated the certificates and then i issue following command: sudo ...
Umair Khan's user avatar
0 votes
1 answer
747 views

Kubernetes RabbitMQ Operator: Cluster is having startup issues (readinessProbes are failing), how to troubleshoot further?

My RabbitMQ Cluster is not switching into ready state (readiness probes are failing), as it is having troubles on startup. The cluster was deployed using the official RabbitMQ operator. Unfortunately ...
Philbo's user avatar
  • 1
0 votes
1 answer
306 views

kubernetes: Could not delete innodb cluster PODs forcefully

PODs could not be deleted: kubectl get all NAME READY STATUS RESTARTS AGE pod/mycluster-0 0/2 Terminating 0 15h pod/mycluster-1 0/2 Terminating 0 ...
eastwater's user avatar
  • 109
0 votes
0 answers
72 views

Migrate a hand-made kubernetes cluster to kubeadm

I have an existing production kubernetes cluster that was installed by hand, and for easier administration, I would like to upgrade it to a kubeadm installation. I know this will be hard and painful, ...
Dede's user avatar
  • 101
0 votes
0 answers
184 views

kube-prometheus-stack redundancy across multiple clusters

I currently use kube-prometheus-stack to monitor several kubernetes clusters. Each cluster has its own deployment of the kube-prometheus-stack, however, there is currently only one cluster (a) that ...
I. Shm's user avatar
  • 31
0 votes
1 answer
137 views

Kubernetes InnoDBCluster: all pods should share one PersistentVolumeClaim?

Kubernetes InnoDBCluster: all pods should share one PersistentVolumeClaim? Following: https://dev.mysql.com/doc/mysql-operator/en/mysql-operator-innodbcluster-simple-kubectl.html kubectl create ...
eastwater's user avatar
  • 109
2 votes
0 answers
77 views

Installation of dual stack k8s cluster on node with only IPv6 network

I am trying to understand if it is possible to install a dual stack k8s cluster on nodes with only IPv6 network. Nodes don't have any IPv4 addressing. I am using kubespray to install k8s cluster but ...
Neeraj Jain's user avatar
0 votes
0 answers
159 views

Tomcat cluster in Kubernetes: fetchMembers Failed to open stream

Tomcat cluster in K8s: Following https://cwiki.apache.org/confluence/display/tomcat/ClusteringCloud added the following in tomcat server.xml: <Cluster className="org.apache.catalina.ha.tcp....
eastwater's user avatar
  • 109
0 votes
0 answers
57 views

kubernetes: could not find PersistentVolume hostpath on windows

kubernetes: could not find PersistentVolume hostpath on windows 11. kubectl describe pv/pvc-4a7bc0ff-9195-4f2f-bd70-9dfd1f8cd065 Name: pvc-4a7bc0ff-9195-4f2f-bd70-9dfd1f8cd065 Labels: ...
eastwater's user avatar
  • 109
0 votes
1 answer
132 views

ssh not looking for private key at $HOME

I have a Kubernetes pod with a persistent volume mounted at /data. I am trying to use the pod for remote development and as such, need to ensure that my private ssh key persists upon pod restart so I ...
Harry Stuart's user avatar
0 votes
1 answer
560 views

kubernetes: how to link secret tls crt/key with files or configMap?

Is there a way to link secret tls crt/key with files? apiVersion: v1 kind: Secret metadata: name: hello-app-tls namespace: dev type: kubernetes.io/tls data: tls.crt: <crt_filePath> tls....
eastwater's user avatar
  • 109
0 votes
0 answers
61 views

Replacing arbitrary fields in Kubernetes YAML

I want to use configMap variables inside my Kubernetes YAML outside of my container specification. Basically, I am looking for a way to replace text in my configuration with the value of a configMap ...
dan1st might be happy again's user avatar
0 votes
0 answers
189 views

Using a variable in the namespace of a generated resource

I've created a policy that generates Services for every Deployment in a namespace. The one thing I can't figure out is that it's a Policy rather than a ClusterPolicy and I want to make the namespace ...
Brad Mace's user avatar
  • 1,024
0 votes
0 answers
469 views

How can I configure pg_hba.conf in kubernetes deployment when the ip address of client pods is not known?

Suppose I have two backends be1, be2 deployed in pods that use a postgres server in a pod, and I want to use pg_hba.conf to constrain access for better security, like: hostssl db1 db1user be1-...
Marvin's user avatar
  • 101
0 votes
1 answer
372 views

Access errors passing traffic from nginx to daphne server

I've got a GKE private k8s cluster with nginx and a django application running with wsgi and asgi. Logs from nginx show that websocket requests get a 403, and the logs on the daphne pod are showing &...
markwalker_'s user avatar
0 votes
1 answer
347 views

How do I reduce number of control plane nodes from 3 to 1?

I have a kubernetes cluster installed with kubeadm. Currently it uses a single control plane node. I'm satisfied with this setup in terms of reliability and don't want to turn it into high-available ...
vbezhenar's user avatar
  • 273
0 votes
0 answers
136 views

CoreDNS not recognizing queries with unempty "text" keys in etcd records

I've spent my last 2 days trying to figure out what's wrong with my setup and couldn't find a resonable answer or solution, so I want to share it with you. What happened: I've deployed a new etcd ...
Amin Aleahmad AKA Halix's user avatar
0 votes
0 answers
457 views

Metrics server pods are not created on kOps

I'm using kOps 1.26.3 and Kubernetes 1.26.5, running on AWS. After upgrading with kops upgrade cluster, metrics server stopped working. It is installed using this on cluster manifest: metricsServer: ...
rodorgas's user avatar
0 votes
0 answers
146 views

How to validate ssh keys in AWX running in Kubernetes?

Background We use Ansible/AWX running in Kubernetes (awx-operator) to manage workstations with dynamic hostnames. Authentication is handled by Red Hat IDM (FreeIPA) and the same credentials are used ...
ebarrere's user avatar
  • 340
0 votes
1 answer
143 views

Kubernetes - Unable to cordon the node

We have on-prem cluster. I am trying to cordon a node using kubectl cordon <node> the command is successful, but when I am running command kubectl get nodes I see nodes is still ready. Where ...
tollboy's user avatar
  • 76
0 votes
0 answers
665 views

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 ...
sreelakshmi's user avatar
0 votes
0 answers
78 views

K3S master does not start due to v1.Event to any object conversion error

I'm running k3s 1.26.4 on a small 4 nodes home lab cluster (1 master/worker + 3 workers). Today, the master node crashed, and a forced reboot was the only solution. Since then, the master node refuses ...
Guillaume Villena's user avatar
0 votes
0 answers
133 views

How to add username and password based uthentication to kubernetes dashboard using helm and terraform?

I have this terraform config for deploying a kubernetes dashboard to my cluster on VKE. resource "helm_release" "my-kubernetes-dashboard" { name = "my-kubernetes-dashboard&...
Dan's user avatar
  • 1
0 votes
0 answers
109 views

kubelet service not running on windows worker node

I need a k8s cluster consisting of linux master node and windows worker node. Although I'm able to set up the master node just fine with v1.26.1 (OS: CentOS 8.x), when I try to run the kubelet service ...
Viraj Rajhansa's user avatar
1 vote
1 answer
643 views

Provisionning a GKE cluster stuck at Deploying step

I am provisionning a simple GKE cluster thank to terraform with the more basic config and it is stuck at "Deploying" "64% - Cluster is being deployed..." And in my terminal ...
Hugo Maitre's user avatar
0 votes
1 answer
195 views

Kubernetes cloudnativepg operator local/nfs backups

I wanted to test the cloudnativepg operator for a local cluster and would like to save the backups on a local dir. The problem is that the documentation only has information regarding cloud solutions ...
Vincent Adams's user avatar
0 votes
0 answers
22 views

Kubernetes federation

I have two eks cluster added in kubernetes federation , I am able to deploy pod on each cluster by adding labels in deployment for each cluster , but I am not able to do the same randomly , if I run ...
Ashutosh's user avatar
0 votes
2 answers
137 views

RKE OpenStack cloud provider without scheduled pods

I'm trying to use openstack-cloud-controller-manager with Rancher RKE. I'm using application credentials to access openstack and for this reason it appears to me that I cannot use the openstack-...
sctx's user avatar
  • 33
2 votes
1 answer
798 views

How to debug why a Ingress Controller in MicroK8S is pointing to the wrong service?

I have built a little three-node Kubernetes cluster at home, for learning purposes. Each 16GB node runs Ubuntu Server and MicroK8S. I have set up a leader (arran) and two followers (nikka and yamazaki)...
halfer's user avatar
  • 181

1
8 9
10
11 12
53