Questions tagged [kubernetes]

For questions about Kubernetes, an open-source system for automating deployment, scaling, and management of containerized applications.

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

TCP communication blocked during Pod termination in Kubernetes

I have a cluster running on AWS EKS, v1.20.7-eks-d88609 I have a Pod and a NodePort Service to expose it to the outside. Some clients will connect to it through a TCP connection which will be kept ...
0
votes
1answer
19 views

Ingress and liveness probes unable to connect to pod, but works via port-forward

I'm having a really strange issue with a particular application that's using the same Helm chart as many other apps in our cluster, and all the others are working fine. The pods are running the ...
0
votes
2answers
1k views

How to allow a non-root user to write to a mounted EFS in EKS

I am having trouble configuring a statically provisioned EFS such that multiple pods, which run as a non-root user, can read and write the file system. I am using the AWS EFS CSI Driver. My version ...
1
vote
1answer
35 views

Helm: Long Running Jobs vs Long Running Hooks

I was wondering which would be more appropriate / idiomatic when writing a Helm-Chart: Perform long running operations (such as db-migration) as part of the helm install process via helm hooks and ...
0
votes
0answers
21 views

Can a Kubernetes Operator enforce Pod settings

I am developing a Kubernetes Operator and I would like to enforce some particular Pod settings whenever a Pod is referencing some custom ressource (according to a CRD - Custom Resource Definition - ...
0
votes
0answers
10 views

Making Istio Gateway accessible from another machine

I have a minikube cluster with Istio and I have configured an Istio Gateway as described here. If I curl from the machine, where the cluster is, to the gateway everything works fine. However I want to ...
0
votes
1answer
30 views

Access to k3s DNS from host

I have a single node k3s "cluster" with few Services on it. Whenever I want to access to one of them, I'm forced to either do a port-forward or a describe (and get the endpoint, but it ...
1
vote
2answers
24 views

K8S Init Container CRD/Operator

I want to inject an init container into some pods. I know how to specify init containers in a pod's spec, but I don't want to do that directly because these sidecars are invisible to my engineers. I ...
0
votes
1answer
28 views

Internal proxy for external system

I have a web server in a Kubernetes Deployment which uses an ElasticSearch instance on ElasticCloud. I have parameterised (thanks to environment variables) my container, from a Secret, with this kind ...
0
votes
0answers
13 views

kustomize apply nameprefix and commonlabels to a list in path

i have this: kustomization.yaml: apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization configurations: - configuration.yaml namePrefix: app-prefix- resources: - logging-output.yaml - ...
1
vote
1answer
53 views

How to setup ExternalDNS on Microk8s cluster?

I have a Highly Available, 3 nods, Microk8s cluster with MetalLB and Ingress. The cluster is supposed to serve a website with high availability. I want to enable ExternalDNS for the website with the ...
1
vote
1answer
25 views

What is the difference between Fluent Bit and Prometheus?

From what I've seen, Prometheus scrapes data and metrics and displays them and Fluent Bit collects logs and metrics and can output them. So, are they doing the same thing, i.e. should I choose one ...
1
vote
2answers
59 views

Gather resource usage by process in a kubernetes cluster

I am searching for a tool similar to Prometheus + Grafana that gather and record resource usage especially memory usage by process-ID or process-name. We have two components that are running ...
0
votes
0answers
7 views

Restoring backed up data to influxdb pod via post-hook helm job

I have a influxdb pod created via helm chart from bitnami running in my kubernetes cluster with bind address enabled at 8088. I would like to import data into it after deployment of the pod. For this ...
1
vote
3answers
846 views

How to resolve a problem "certificate signed by unknown authority" in GKE on pulling image (a private registry) when a pod is created?

I generated a CA certificate, then issued a certificate based on it for a private registry, that located in the same GKE cluster. Put the server certificates to the private registry and the CA ...
0
votes
0answers
16 views

Mongodb Kubernetes Operator ReplicaSet change port

I have tried every configuration examples from https://docs.mongodb.com/kubernetes-operator/master/reference/k8s-operator-specification/ but no matter what i do, the port of the running ReplicaSet ...
1
vote
2answers
190 views

Monitoring Kubernetes CronJob & Job in Grafana for today day only

I'm trying to create a Dashboard in Grafana that will show the status of Cronjob & Job success & fail. Currently i'm using kube_job_status_succeeded to get a status job, but the issue here ...
0
votes
2answers
41 views

Automate starting and stopping of multiple containers on single production server

I am doing a project for my university where I have the following requirements: I want to start and stop (docker) containers with different apps I have a singe (university) server to my disposal I ...
0
votes
0answers
13 views

Unable to fully remove old certmanager version

A long while back, I had been using the old version of cert-manager, when it was just named certmanager. Since then, I've deleted that old deployment and all of its CRDs, and installed the new version,...
2
votes
2answers
1k views

Can a kubernetes pod be forced to stay alive after its main command fails?

After starting a long running kubernetes job we've found that the final result will fail to upload to its final location. We would like to force the pod to stay open after the main process fails so we ...
0
votes
2answers
58 views

Prodding Helm to refresh a deployment?

I am using Flux to automatically deploy a Helm Release from a git repository to a Kubernetes cluster. If I directly edit a resulting deployment object's spec (using k9s or kubectl edit, e.g. to ...
0
votes
1answer
40 views

It seems like the kubelet isn't running or healthy [closed]

What did I want to do here? I want to make 3 node Kubernetes cluster First I install Ubuntu server 20.04.3 LTS in my VMware and this way too I make 3 servers. After I install docker and Kubernetes and ...
0
votes
0answers
15 views

Expose each individual member of a headless service to external traffic

I'm using a statefulset + headless service to stand up horizontally-scaled dedicated servers. I'm looking for a solution that will allow external traffic to be directed to a specific server and hit it ...
0
votes
1answer
25 views

how to schedule container in GCP

I have 5 tasks in my project that need to be run periodically. Some of these tasks are run on a daily basis, some on a weekly basis. I try to containerize each task in a Docker image. Here is one ...
1
vote
0answers
68 views

From dev to production workflow

We are creating micro services environment which needs to be delivered to prod, now we want to start the CICD design, is there any reference which talks about getting from a Commit ->PR-> tests-&...
42
votes
5answers
97k views

What does "Does not have minimum availability" in k8s mean?

What does "Does not have minimum availability" mean? A GitHub discussion was found, but it is not clear to me what the error message means.
0
votes
1answer
17 views

Azure Kubernetes pod is inaccessible from another pod

Internally we have a Spark Executor and Spark Driver running in Kubernetes. When you run a Spark Job in Kubernetes, Spark will create 2 types of pods Spark Drivers and Spark Executors. The Spark ...
1
vote
0answers
18 views

Kubernetes API watch from multiple replicas

I have a service that uses the Kubernetes API to watch the execution of some pods in my cluster. I want multiple replicas of this service running at the same time, to increase resilience. However, if ...
3
votes
2answers
120 views

Ingress vs Load Balancer

I am new to kubernetes and I am trying to expose an application publicly. I am using Scaleway as the cloud provider (if it matters). From what I understand, there are multiple ways of doing this. ...
0
votes
1answer
39 views

Deploying microservices in a consistent way using different gitlab repositories

I'm looking for a good organization to deploy our solution consisting in multiple apps using Gitlab and K8S. Our SaaS app that is made of : A backend app, mostly our API (django) A user app (React) ...
0
votes
1answer
56 views

How to fix wrong /etc/resolv.conf in kubernetes pods after creating a cluster with EKS eksctl with vpc-cni plugin?

So, i've created a kubernetes cluster in EKS with eksctl, ClusterConfig: apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig metadata: name: exchange-develop region: us-east-1 version: '1.19' ...
0
votes
1answer
36 views

evenly distribute pods over nodes

I've got an on-premise cluster with 1 master and 3 workers. Now there's a deployment with 3 replica's and they MUST be evenly distributed over all the nodes. Now we can use "...
0
votes
0answers
5 views

Is there a way to store backups locally with Velero?

I am using k3d for a local development workflow in Kubernetes, and I am wondering if there is a way to store backups locally instead of having to use a cloud storage bucket.
1
vote
2answers
185 views

Unable to configure cert-manager. Wrong status code '403', expected '200'

I', trying to configure a cert-manager in a Baremetal server. I followed this link & this one the k describe challenge my-domain.com-xqwh4-4005106243-2059835058 get Status: Presented: true ...
1
vote
1answer
45 views

Gitlab pipeline + Jump host + execute HELM

What is worked: Steps: directly go to server via SSH (behind the JH) via SSH to another server pull from Artifactory for testing only executing HELM chart to pull from artifactory and deploy on k8s ...
1
vote
0answers
8 views

Fetching a URL from a kubernetes worker pod process with lvh.me for development

This is not an issue we face in production but in development using www.lvh.me which resolves to 127.0.0.1 I am using Docker Desktop for Mac. To simplify the issue, we have 2 pods. Web application ...
0
votes
1answer
15 views

Apache Camel-k metrics in rancher embedded prometheus

I have a Kubernetes running Rancher 2.4.3. I have the cluster monitoring enabled in rancher, so that exists a Prometheus instance running, so as a Prometheus Operator. Recently I deployed a Apache ...
0
votes
0answers
14 views

Data Aggregation Strategies: How to avoid duplicate values when using multiple app instances?

I am building a data aggregation environment on Kubernetes. In my use case I am aggregating blockchain history one block at a time incrementally. To speed things up, I am deploying multiple instances ...
0
votes
1answer
10 views

Proper technologies to create a horizontably scalable index search

I am sorry for the newbye question. Im trying to figure out the best architecture / set of technologies to implement some very specific system: I have several databases indexes (used for searching ...
17
votes
8answers
32k views

How to get kubernetes pod network CIDR

I have a running k8s cluster initialized with kubeadm. On initialization, I did not pass the option --pod-network-cidr How do I get the CIDR of the pod network I tried Looking at the /etc/...
1
vote
2answers
870 views

kubectl asking for username (k8s cluster created via kops)

I created a kubernetes cluster using kops and deployed it in AWS (not EKS manual cluster using kops). Then I export in my local machine the configuration like kops export kubecfg --state ${...
0
votes
0answers
26 views

Problem with kong's keep alive (api gateway)

I have 5 k8s worker nodes that each of them run a kong instance. I also have 24 upstream servers. One month ago the number of my threads on the upstream servers increased dramatically, therefore, I ...
2
votes
2answers
8k views

helm install causes nil pointer

I'm really a beginner with kubernetes and really struggle with this simple tutorial from baeldung.com The only thing I did different (intentionally) was using a google cloud cluster instead of ...
0
votes
0answers
29 views

Kubernetes & etcd Stability

I'm running into some stability problems with Kubernetes and etcd and I was hoping someone could give me some guidance. This isn't a new problem, but an ongoing one that was observed with current and ...
1
vote
1answer
23 views

Kubernetes: when does a deployment kill its pods?

I know that a pod may die for various reasons. For example in case of a node failure the pod is lost. However I can't find an answer to this question: are there any cases where the pod is alive and it ...
1
vote
1answer
18 views

Kubernetes readinessProbe: do health-checks run forever?

I have some doubts about the HTTP readinessProbe: Suppose that the probe fails several times (failureThreshold) and a pod is marked as NOT READY. Will k8s keep trying the readinessProbe forever and ...
1
vote
0answers
17 views

Can kubernetes `--force` delete of pods be disabled by administrators?

Using kubectl delete pods PODNAME --force removes the pod from the Kubernetes API without checking the underlying pod deleted successfully. In most cases this means resources are locked indefinitely, ...
1
vote
0answers
21 views

Why is hpa scaling in the wrong direction?

I have two Horizontal Pod Autoscalers, for different deployments with identical metric value and target, and they are scaling in opposite directions. The condition of one ("dev") is ...
0
votes
1answer
44 views

micrometer exposing actuator metrics vs kube-state-metrics vs metrics-server to set pod request/limits

micrometer exposing actuator metrics to set request/limit to pods in K8svs metrics-server vs kube-state-metrics -> K8s Mixin from kube-promethteus-stack Grafana dashboad It's really blurry and ...
0
votes
0answers
8 views

K8s using Calico or VPC-cni to isolate namespaces on EKS

I need to isolate k8s namespaces on EKS (not Fargate), The only container that need to send requests to my server is ingress and communication between the same namespace.

1
2 3 4 5
12