Skip to main content

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
536 views

CoreDNS pods in AWS EKS Fargate unable to pull image

I created a PRIVATE EKS Cluster using AWS Console. Then, followed the documentation to configure Fargate. After I finished, I can see my Fargate nodes under Compute tab in my cluster in AWS Console, ...
0 votes
1 answer
286 views

AWS VPC CNI PLUGIN - Error: container runtime network not ready due to NetworkPluginNotReady - How to Resolve

I am facing difficulty in this, maybe the answer is simple so if someone knows the answer, please comment here. I have created an EKS cluster using the following manifest. apiVersion: eksctl.io/...
0 votes
1 answer
44 views

Unable to start metrics server on eks fargate

I am trying to implement eks on fargate. I want to deploy metrics server on eks fargate. I am following official documentation from aws on eks. https://docs.aws.amazon.com/eks/latest/userguide/metrics-...
0 votes
0 answers
15 views

How to scale websocket listeners?

I'm asking about the case when your service is listening for some streams with non-stationary message intensity. Such situations are arising naturally if you for example listening for stock exchange ...
0 votes
1 answer
33 views

K8s - Does LoadBalancer Service need NodePort?

I was going through this tutorial and it says that we need to define NodePort when using service type LoadBalancer. But I've seen implementation of LoadBalancer service types without providing ...
0 votes
1 answer
61 views

Karpenter consolidation happening on non-scheduled time

Recently I have upgraded Karpenter version to v0.34.0 and along with that disruption feature comes where we can schedule the node consolidation to specific hours. I have added the disruption policy ...
0 votes
0 answers
13 views

Cannot Push Log Data to Azure EventHub From Azure AKS using OpenTelemetry

I have an Azure AKS cluster and I am trying to send my container level logs to an Azure EventHub using OpenTelemetry Collector. I am deploying the OpenTelemetry Collector as a DaemonSet and below is ...
1 vote
3 answers
62 views

Rook Ceph storage and MySQL space very big difference

Can someone please advise me what could be the cause of this condition? I have a Rook Ceph cluster on which MySQL database with 3x replication is stored. This database is used by me for development ...
0 votes
0 answers
20 views

Apisix kubernetes Discovery not work

I am using official helm chart to install the APISIX in my Kubernetes. I only override the following values from the official helm chart: useDaemonSet-> true serviceAccount -> set create to ...
0 votes
0 answers
28 views

How to monitor multiple kubernetes clusters using grafana and prometheus from a separate cluster?

I have three kubernetes clusters. (monitoring, one, two). monitoring cluster is dedicated for monitoring tools. So on monitoring cluster, I will install prometheus and grafana. On other cluster should ...
0 votes
0 answers
16 views

Websocket with socket.io on K8S, how to make it work?

I hope you are well I'm having a problem when trying to open communication between my applications within Kubernetes. Currently client-server communicate through socket.io, but when adding it to ...
0 votes
0 answers
34 views

GitLab web service not connecting to the registry

On an on-prem GitLab server hosted on Kubernetes, after an upgrade of GitLab to the latest version 17.1.0, I notice that the webservice fails to connect to the registry service: {"component":...
0 votes
1 answer
38 views

k8s pods on different EKS nodes not getting traffic

I have eks cluster with two nodes, I have four k8s services deployed in the cluster, two of them are in node-1 and the other two in node-2. I have have a Kong api gateway in front of these k8s ...
0 votes
0 answers
10 views

Public IP should not be changed when aws eks cluster and managed nodegroup is upgraded

We have used the eks cluster(current version 1.20) and managed nodegroup and used the public IPs of the nodes for our purpose so now when we upgrade the eks cluster and nodegroup with version 1.21 all ...
2 votes
2 answers
70 views

How to obtain authorization to access EKS cluster

Followed this document Cert Signing to get the certificate issued. I created cluster role and role binding to test it. $ kubectl auth can-i create pods --as=myserver yes $ kubectl auth can-i list pods ...
1 vote
3 answers
5k views

Metric client health check failed: the server is currently unable to handle the request (get services heapster)

I am new to Kubernetes and is trying to deploy one master and 2 nodes. I completed the installation in master and the pods are running. kubectl get pods --all-namespaces NAMESPACE NAME ...
0 votes
1 answer
64 views

Memory & CPU Utilization drastically different for AKS

I am planning to use Descheduler in my AKS deployment to balance memory consumption of AKS nodes. My current output of kubectl top nodes is: NAME CPU(cores) CPU% ...
0 votes
1 answer
197 views

Oracle MySQL operator for kubernetes backup to S3 using service account

I've installed the operator, and trying to create the innodb cluster with backup profile which uses S3. There is no mention of S3 in the documentation, but they mentioned in a conference about S3 ...
0 votes
0 answers
51 views

Receiving Kiss of Deaths with chrony

basically I think the issue is that my company NTP server has a Stratum of 5 and it might be laggy at times - but it's maintained by other team so I don't have much info about it. Now I have tested ...
0 votes
0 answers
28 views

Error configuring node-exporter DaemonSet scraping for Prometheus on kubernetes - service account token missing

I have set up a node-exporter DaemonSet on kubernetes as well as a service that points to these node-exporter pods IPs (I followed this tutorial). When I run kubectl get endpoints -n monitoring, I ...
0 votes
0 answers
35 views

Kubelet/Cadvisor on GKE not exporting container_fs_* metrics for attached volumes

In our GKE 1.27.12 cluster, we run a couple of stateful workloads using GCP Volumes, e.g. using this storage class: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: pd-ssd ...
0 votes
0 answers
38 views

Longhorn distributed block storage not working with Flannel CNI (Kubernetes)

I've been reading through The Book of Kubernetes by Alan Hohn and decided I would try to get the application described in the final chapter working with the Flannel CNI rather than Calico, which is ...
0 votes
0 answers
15 views

All Kubernetes pods at my worker node getting CrashLoopBackOff status

I'm new to kubernetes and I'm having trouble to setup a functioning k8s cluster using EC2 AWS instances as nodes. My master node seems fine and also my worker node (I currently only have this to for ...
2 votes
0 answers
31 views

Switch ingress controller to new static IP with zero downtime?

My AKS app uses a standard ingress-nginx ingress controller with a static IP, installed via Helm chart: myStaticIp=1.2.3.4 myNodeRg=MC_foobar_eastus helm upgrade --install ingress-nginx ingress-nginx ...
0 votes
1 answer
57 views

Custom changes in Core DNS (Kube-DNS) in OKE (Oracle Cloud Kubernetes) are reverted automatically after one day

I have created an Enhanced Cluster of Kubernetes (OKE) in Oracle Cloud (OCI). Some cluster pods connect to VM instances outside OKE but in the same VCN subnet as the pods. I want these connections to ...
-1 votes
0 answers
25 views

DEPLOY ERROR: cpu memory error in kubernetes when i try deploy pods

Problem: I cannot start my nginx server cluster, promtail demoset and loki pod to aggregate information. Deploy code: code share Error + statics: dashboard error stats Testing: I already tried adding ...
0 votes
0 answers
10 views

Efficiently Managing Dynamic Jupyter Kernels in GKE with Python Backend

I'm working on setting up an environment where I can dynamically create Jupyter notebook kernels as separate pods within a Google Kubernetes Engine (GKE) cluster. Each pod needs to have customizable ...
0 votes
1 answer
39 views

SOLVED - Error configuring node-exporter DaemonSet scraping for Prometheus on kubernetes

I am posting the following question already solved, because I've mistakenly posted in on StackOverflow and therefore wanted to share it here so it can be properly found by the community and hopefully ...
0 votes
1 answer
61 views

Internet speed from AWS Singapore region to EU is very slow

We are running k8s cluster in AWS Singapure region. We also have self-managed EC2 NAT instance of type t3.xlarge. According to spec, it has 1 Gbps baseline speed, and burst up to 5 Gbps. When running ...
-1 votes
0 answers
26 views

ETCD backup and restore issue

I have below question on killercoda for CKA certification Question: For this question, please set this context (In exam, diff cluster name) kubectl config use-context kubernetes-admin@kubernetes etcd-...
0 votes
1 answer
8k views

503 Service Temporarily Unavailable on kubectl apply -f k8s

express-cluster-ip-service.yaml apiVersion: v1 kind: Service metadata: name: express-cluster-ip-service spec: type: ClusterIP selector: component: server ports: - port: 5000 ...
0 votes
0 answers
39 views

Expose local kubernetes function to my pc

So I have a function running in my kubernetes cluster. NAME BUILDSTATE SERVINGSTATE BUILDER SERVING ADDRESS AGE minio-event ...
0 votes
0 answers
19 views

Is it possible to configure `kubectl exec` to behavior the same way as `ssh` when there is a client disconnect?

Empirically, it looks like kubectl exec and ssh behave differently on disconnects of the client. I performed the following experiments. SSH # Terminal 1 ssh <random_host_in_aws> bash -c 'sleep ...
1 vote
3 answers
6k views

Pods from kube-system CrashLoopBackOff

EDIT. I have done the exact same step on ubuntu server 20.05 and it's working fine... I Create new cluster kube on ubuntu server 22.04 but I have several issue. Pods from kube-system going up and down....
0 votes
1 answer
47 views

DNS as host of http input Logstash

Can I specify the service name in Logstash input plugin? I'm deploying Opensearch with logstash in local Kubernetes cluster. And i have a java application in local kubernetes with service: kind: ...
37 votes
16 answers
172k views

kubectl get nodes error: You must be logged in to the server (Unauthorized) - how to fix

Without changes in infrastructure If I execute any kubectl command, ie: kubectl get nodes I get the error You must be logged in to the server (Unauthorized) The kubernetes cluster was opperating ok ...
0 votes
1 answer
30 views

Kubernetes frontend service latency much higher than Docker Compose-based setup

I am experiencing a latency issue with my Kubernetes setup compared to a Docker Compose setup. When making a request to the frontend service on Kubernetes, it takes close to 10 seconds to respond, ...
0 votes
0 answers
31 views

Kubernetes podAntiAffinity not working in deployments

I have two different deployments that I need to have their pods be scheduled in different nodes in the cluster. For this I am adding this podAntiAffinity configuration: template: metadata: ...
1 vote
0 answers
19 views

k8s nginx ingress proxy_redirect

I'm trying to achieve this simple configuration on a kubernetes nginx ingress controler: location /path1/ { proxy_pass http://server-1:8000/; proxy_redirect http://...
0 votes
0 answers
26 views

Error in the master pod while installing Dremio in Kubernentes

I am trying to install Dremio in Kubernetes using Helm (I have followed this guide). As the distirbuted storage, I am using a S3 compatible object store hosted in a Dell EMC PowerScale. I have some ...
0 votes
0 answers
26 views

Busybox containers require keep alive loop/parameter

By starting deployment with busybox as an image: kubectl create deployment test-deployment --image=busybox --dry-run=client --output=yaml > test-deployment.yaml kubectl apply -f test-deployment....
1 vote
0 answers
20 views

AKS, how to have kubectl label nodes be persistent

I need some node affinity in some deployments (specifically to have DinD, docker in docker, run one per node in my cluster). I need to have multiple DinD but only one of the per nodes. I add for ...
0 votes
0 answers
18 views

Metrics-server on a 1.25+ k8s cluster

I’m struggling with a metrics-server on a freshly installed 1.28 cluster. I’ve downloaded the recent 0.7.1 components yaml, but as far as I can see from logs (I relaunched the metrics-server with --v=...
0 votes
0 answers
45 views

kubernetes etcd failed to publish local member to cluster through raft

Environment Background: kubernetes configured 3 master and 3 worker node Kubernetes is configured component by component following https://github.com/kelseyhightower/kubernetes-the-hard-way. ...
0 votes
1 answer
53 views

Rook-ceph. Blok Storage. FailedAttachVolume. Pod of sample is not started

I installed ceph cluster in kuber according to the instructions https://rook.io/docs/rook/v1.12/Getting-Started/intro/ on 3 nodes wn-1 - /dev/sdb 200 GB HDD wn-2 - /dev/sdb 200 GB SSD wn-3 - /dev/...
0 votes
0 answers
50 views

Packet flow of kubernetes cilium CNI

I have a kubernete cluster with cilium replacing kube-proxy. The nat iptables looks like the following: Chain PREROUTING (policy ACCEPT) target prot opt source destination ...
0 votes
1 answer
201 views

GKE Autopilot - consume reservation

I had some issues creating GKE deployment with nvidia t4 GPU (Node scale up in zones europe-west1-b associated with this pod failed: GCE out of resources. Pod is at risk of not being scheduled.) so I ...
1 vote
0 answers
24 views

Bad gateway return with k8s traefik ingress when firewalld is enable

Here is the definition of my problem. I have a single node kubeadm cluster running on fedora cloud 40 VMs with vagrant. I activated firewalld with this configuration: kubernetes sources: 10.0.0.0/8 ...
0 votes
1 answer
57 views

When trying to connect to the cluster via lens: Failed to get /version for clusterId=id Internal Server Error

I am trying to connect to my kubernetes cluster which was spunup using kubeadm on aws instances. I am using lens desktop app on windows. My kubeconfig file apiVersion: v1 clusters: - cluster: ...
0 votes
0 answers
60 views

very strange error HA k8s cluster with haproxy as load balancer

I am trying to create k8s cluster with haproxy as external load balancer ( 2 haproxy nodes, 3 control planes , 3 workers) currently am still trying with 2 haproxy and 2 control planes ERROR : ...

1
2 3 4 5
55