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
0answers
8 views

Using ConfigMap in CRDs

I'm not very experimented with k8s. I have a ConfigMap defined like this: kind: ConfigMap metadata: name: cluster-parameters namespace: argocd data: load_balancer.name: nlb-kubeflow-test ...
0
votes
0answers
5 views

Enabling service discovery on multiple EKS clusters with Amazon Managed Prometheus (AMP)

Background I currently have a Prometheus Helm chart installation (configured with AMP) on an EKS cluster where I also have GitLab installed. When I go to the frontend of Prometheus, I see my GitLab ...
1
vote
0answers
7 views

SSL issue while reaching kubernetes dashboard

I'm configuring a kubernetes cluster (using microk8s) and cert-manager. Certificates work fine to traefik dashboard and to other sites but I have an issue with kubernates dashboard as it's already ...
0
votes
1answer
26 views

Create and delete ingress for temporary containers

(I have just stared learning kubernetes, so apologies if my question sounds silly) In my cluster I am running some pods that execute some batch operations and expose a webUI to keep track of the ...
0
votes
0answers
9 views

unable to connect to socketio server due to connect() failed (111: Connection refused)

I have a Socket.IO server that is running in a KOPS Kubernetes cluster. I have the ingress as nginx-ingress which seems to be broken where I am getting an error message of connect() failed (111: ...
0
votes
0answers
15 views

Kustomize apply patches without a base resource

I have certain resources where I only want to manage specific fields inside my code repository, and let the others remain unchanged. I have the following kustomization.yaml: apiVersion: kustomize....
2
votes
4answers
42 views

How to run a daemon AND another command in a kubernetes pod

I am trying to setup an automated influxdb instance using kubernetes, nothing too exotic I thought, but : I need to run the "influx setup ...." command for the initial setup, and this needs ...
0
votes
0answers
24 views

Kubernetes deploy workflow

I have an application (Django web app alongside couple of microservices) and have done deployment previously via Ansible tasks. Playbook was invoked from Ansible Tower and essentially breaks down into ...
1
vote
0answers
17 views

set loadbalancing to true round-robin

What is the default behaviour when a kubernetes service is called over and over from the same clientip? I ran some tests and it seems that always the same pod is called and after a while it switches ...
0
votes
0answers
6 views

KEDA HPA metrics value for Queue Triggered Azure Function

I have a KEDA enabled Queue Triggered Azure Function running in a Kubernetes cluster. When I describe the HPA created by KEDA, I am unable to understand the value metrics. In the following image, what ...
0
votes
2answers
13 views

Kubernetes etcd bootstrapping - couldn't find local name <name> in the initial cluster configuration

I followed kelsey Hightower's setting up kubernetes the hard way tutorial kubernetes the hard way on AWS Stuck on bootstrapping etcd on the first control plane node. There are 2 lines in the error ...
0
votes
0answers
16 views

Liveness Probe failing when InitialDelaySeconds not provided

I have implemented Liveness Probe in C# based Kubernetes Application. When I am removing InitialDelaySeconds in my livenessconfig (at code level using Kubernetes Client's V1Probe): IList<string> ...
0
votes
1answer
18 views

helm upgrade not working

I was running the older 2.16.0 version of ChartMuseum Helm Chart. I am trying to update it to use newer 3.1.0. When I try to upgrade using helm upgrade <release> <name> -n <namespace>...
0
votes
1answer
22 views

helm upgrade fail with error: UPGRADE FAILED: “chart-repository” has no deployed releases

I am trying to upgrade a chart but when I run upgrade command, upgrade fails with the following error. nit:~/copy> helm upgrade chart-repository chart-repository/ Error: UPGRADE FAILED: "chart-...
-2
votes
1answer
16 views

How to read Kubernets secrets values

What could be the kubectl command to see k8s secret values I tried kubectl get secrets/<secrets-name> -n <namespace> It returns NAME TYPE DATA AGE secrets1 Opaque ...
0
votes
0answers
23 views

APP DB doesnt appear when deploying ops manager

I'm trying to deploy the ops-manager in my kubernetes cluster. The cluster has been setup using kubeadm and has a master and a worker node. I have been following the steps mentioned in this link. ...
0
votes
2answers
13 views

kops validate cluster fails with even after providing appropriate state and clustername

I am trying to run validate cluster command as per the documentation kops validate Strangely it fails with following error $ AWS_ACCESS_KEY_ID=<my_legit_key> AWS_SECRET_ACCESS_KEY=<...
5
votes
0answers
30 views
+50

How would you build docker images in Kubernetes while distributing its layer caching among all pod builders at scale?

We are using Azure DevOps as our CICD platform. We have our own self hosted Linux agents which we integrated into our CICD Azure Kubernetes Cluster . We use these agents to build our Docker images ...
0
votes
0answers
26 views

curl: (7) Failed to connect to port 80: Network is unreachable when trying to access ingress on kubernetes

I am trying to setup a local wordpress application together with an NGINX Ingress Controller and a NodePort Service following this tutorial . However, when I try to check if my host is reachable: curl ...
0
votes
1answer
65 views

How to configure single nginx ingress with letsencrypt and multiple bitnami wordpress containers?

I'm using bitnami/wordpress helm chart to create many websites which should run on different domains. I'd like to auto secure them and use a single ingress to route traffic. I'm using this tutorial ...
0
votes
2answers
73 views

Enable ingress-nginx Prometheus monitoring without Helm

A few weeks ago, I installed ingress-nginx in my Kubernetes cluster. Now, I realize that was a mistake because that did not come with Prometheus monitoring enabled automatically, and even worse, it ...
0
votes
0answers
18 views

Helm tpl to pass relative context

I am trying to build a template that loops over multiple partial contexts (instead of the root context) so that I could use relative data where I need it and reference the "root" context ...
0
votes
0answers
9 views

Deny all Cronjobs in Kubernetes-Cluster that dont have concurrencyPolicy:Replace

My goal is to only allow cronjobs in our Kubernetes clusters if they have a concurrencyPolicy of Replace. My research showed that ValidatingWebhookConfiguration is probably the solution. However, this ...
2
votes
1answer
45 views

Use a Kustomize image transformation on an Argo CronWorkflow

I am developing an ETL pipeline using Argo Workflows, and in order to handle environment related configurations, I am using Kustomize. Here is the base/cronworkflow.yaml file apiVersion: argoproj.io/...
0
votes
0answers
6 views

Safe Delete for K8S Custom Resource

instance.yaml kind: SomeCustomKind name: instance In order to implement idempotent resources deletion: As kubectl supports safe delete for non existing resources kubectl delete -f instance.yaml --...
0
votes
0answers
9 views

Cannot get Nginx ingress to work with NLB

I have a Kops cluster running on AWS and am trying to use nginx-ingress to create an NLB which will route traffic to my two subdomains for an application. So far I have been able to get it to create ...
0
votes
1answer
18 views

How can I deal with container “patching” in a strict release process?

I am building a new Container and Kubernetes system for my company. Overall it is going well, but container patching has me a bit confused. We follow a fairly strict release process. New versions ...
1
vote
1answer
59 views

Nginx Ingress Controller - error creating inClusterConfig

What I'm trying to do I'm trying to get the Nginx controller up and running on my kubernetes cluster with the NLB version of the config files. The problem The ingress-nginx-admission-create and ...
0
votes
1answer
18 views

Scale up pods of k8s deployment across spot and dedicated instances

i need to deploy a k8s deployment to be stretched across two kinds of nodes, dedicated and spot nodes. The end-goal is to have deployment which has some pods on dedicated nodes, but when scaled uses ...
0
votes
0answers
11 views

Running geoserver behind NGINX ingress controller

I have deployed the oscarfonts/geoserver container in a kubernetes cluster behind an NGINX ingress controller. The ingress controller is set up to route /geoserver to this service while rewriting the ...
0
votes
0answers
27 views

How to configure postgres service for netdata on kubernetes

I'm using netdata to monitor metrics of my k8s cluster. However, when trying to add database metrics (I have a remote postgres database), I couldn't find any directives as to how to configure the helm ...
1
vote
1answer
16 views

unable to access cluster after installing flannel

I've got a cluster running with 1 master + 2 workers and using flannel as CNI. kubeadm init was called with apiserver address and 10.244.0.0 for flannel's and nodes are joined. kubeadm init --...
0
votes
0answers
13 views

Fluent-Bit not working on Kube Windows Node

Installation Process I have been busy deploying a small high-available Kubernetes cluster with a Linux and Windows worker node. These two nodes are already deployed and working like a charm, but I ...
0
votes
0answers
12 views

With Istio, how can I ensure that traffic is coming from my proxy?

I would like to add a check to Istio to ensure that the source IP address is my load balancer. While not fool proof, I think it would make it more difficult for a attacker to spoof my proxy (where my ...
1
vote
1answer
29 views

How do I modify the environment variables of a Kubernetes cluster?

I created my cluster through kubeadm. Before the creation of the cluster I set an environment variable ~/.bashsrc. The variable I set is NO_PROXY. When the cluster is created this variable gets picked ...
0
votes
0answers
17 views

Manage environments with Github and Google Kubernetes Engine

I have a Github repo with 2 branches on it, develop and main. The first is the "test" environment and the other is the "production" environment. I am working with Google Kubernetes ...
0
votes
1answer
28 views

Liveness Probe through C# code giving error

I am trying to implement liveness probe through C# code (.Net core framework). I simply want to run a curl command inside container like this . Below is the code snippet using kubernetesClient: IList&...
0
votes
1answer
14 views

How to setup custom authentication and authorization in Istio/K8?

As I am new to istio world. I am having difficulty understanding how that technology's auth system work. Let's say, I have a project that has 8 pods(services). I understand that authentication and ...
1
vote
2answers
34 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
9 views

How to change the hostname on the single-node K8s node

Environments: OS: Ubuntu 18.04.5 LTS Kubernetes: v1.16.15 deployment tool: kubeadm v1.16.15 I initialize a single-node K8s on my workstation with the following configuraions: --- apiVersion: kubeadm....
0
votes
0answers
15 views

Is it possible to use helm provider with dynamic kubernetes config in terraform?

Is it possible to use helm provider with dynamic kubernetes config? More precisely, I want with one terraform apply command create eks cluster and deploy to it some default stuff like nginx ingress ...
1
vote
1answer
29 views

How to connect two Kubernetes Jobs without using a Service?

I have a deployment that consists on one Job that contains two containers. Due to distribution and economical reasons, I want these two containers to be deployed independently. However, they are still ...
1
vote
1answer
17 views

OIDC token invalid when put into kubeconfig

I can connect to the Kubernetes API from a container running inside the cluster with an OIDC token like so: kubectl —token $token get pod I would now like to prepare a kubeconfig such that other ...
0
votes
0answers
6 views

How to run maxmind as a sidecar container?

I have got two kubernetes containers. maxmind container application container I need the maxmind container to download the database and share the same with the second container. The below is my yaml ...
0
votes
0answers
2 views

How to add large 'ephemeral' storage to Kubernates jobs? (Ideally on DigitalOcean / OVH)

I have Kubernates jobs which each require ~300GB of temporary disk space whilst they are running, then send files to an external service when done. Currently I'm using DigitalOcean managed Kubernates ...
1
vote
0answers
18 views

Unable to fetch metrics from custom metrics API: Internal error occurred

I am running a local Kubernetes cluster with Minikube on a Windows machine using --driver=hyperv. I am trying to set up an HPA (HorizontalPodAutoscaler) based on Pods custom metrics. Using Helm, I ...
0
votes
0answers
4 views

load balance for kubernetes master on different subnet

I'm trying to build an architecture for new k8s cluster with master HA on different sites (different subnets). The issue I'm facing is finding an open source Software Load Balance (there is no ...
0
votes
0answers
35 views

Delete generated configmaps when executing Helm uninstall

I am trying to deploy Flink on Kubernetes using Helm. The problem is when I try to delete the chart, there are configmaps (flink-cluster-dispatcher-leader, flink-cluster-restserver-leader ..) which ...
0
votes
1answer
46 views

ansible playbook cannot apply, giving host unreachable error

I'm completely new to ansible and I'm having a hard time with it. I have an inventory.yml file which is as the following: EDIT: changed my inventory.yml now looks as follows inventory.yml: [master] ...
0
votes
0answers
19 views

Nginx Ingress Redirect Rule

I have a spring microservice running on k8s having 2 API URL's. First is /api/actuator for health check - running on port 9010 Second is /api for all other api calls - running on port 9000 I have ...

1
2 3 4 5
11