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
1
vote
1answer
95 views

Autoscaling Postgres Database using Kubernetes

Is it possible to autoscale a Postgres Database using Kubernetes ? I usually run a Docker container with very specific settings to install a postgres database for my application. Does using Kubernetes ...
0
votes
0answers
44 views

EKS multitenant SFTP (atmos) to EFS and S3FS sync to S3

I need to create SFTP solution within EKS 1.20.4 where I use atmos SFTP helm chart for SFTP for different tenants, then mounting the user paths to EFS. This is done already, persistence is ok, I am ...
1
vote
2answers
86 views

Best Practice for Container Image Versioning

I'm looking for some guidance on best practices for container image versioning and despite reading a number of the best practice guides they leave some ambiguity. I understand that most container ...
0
votes
0answers
11 views

Is there an alternative to minikube on AWS Workspaces (unable to install Minikube on AWS Workspaces)?

I learnt from my team that it is not possible to install Minikube in AWS Workspaces. I was wondering - is there another alternative tool to Minikube which can we installed on AWS Workspaces so that we ...
1
vote
3answers
95 views

Best Practice for Kubernetes Development Environment

When using kubernetes with minkube locally, what is best practice for a development environment? When using docker, in development I have mounted a volume with the source code, so I can modify code ...
0
votes
1answer
93 views

Kubernetes pods scaling doesnt increase throughput

I have a simple Django web application running on AWS EC2 instance (2 vCPU, 4Gi). For that type of deployment I have a performance (measured with Hey) $ hey -t 30 -z 1m https://mydomain.com/my/...
0
votes
1answer
39 views

Change kubernetes resource requests after pod/job has started

I'd like to change my pod's CPU request value after a pod has started. Is this possible? In our shared kubernetes system there is a requirement that our actual resource usage be "reasonably close&...
1
vote
1answer
146 views

how to change a rancher UI installed prometheus server config

I am learning rancher (still) and after deploying the monitoring chart (prom, grafana etc) i need to add more targets to the prometheus config (such as other bare-metal server and some QEMU too), I ...
0
votes
1answer
24 views

EKS NodeAffinity for Services

https://www.eksworkshop.com/beginner/140_assigning_pods/affinity/ Links like above usually show node affinity for "kind: Pod". Isn't it possible to use node affinity for "kind: Service&...
1
vote
1answer
51 views

Surprising restarts of Kubernetes pods despite restartPolicy=Never

I have a cronjob with cronjob.spec.jobTemplate.spec.template.spec.restartPolicy=Never. And I am using kubectl create job --from=cronjob/my_cronjob my_test for manually starting an instance outside the ...
1
vote
1answer
277 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
55 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 ...
2
votes
4answers
141 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
1answer
56 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
19 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
2answers
162 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
1answer
747 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
463 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
22 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 ...
1
vote
2answers
67 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
1answer
115 views

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
1answer
209 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 ...
1
vote
2answers
656 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 ...
2
votes
1answer
420 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
1answer
44 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
1k 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
45 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 ...
1
vote
1answer
38 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 --...
1
vote
1answer
53 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
1answer
97 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
25 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
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 ...
1
vote
1answer
69 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
136 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 ...
1
vote
0answers
266 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
1answer
289 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] ...
-2
votes
2answers
37 views

Code Changes for Implementing Kubernetes Probes

I want to implement Kubernetes Liveliness Probes in my .Net core application with C# language. I understood that first I need to define the liveliness probe in deployment.yaml file of my application. ...
1
vote
1answer
252 views

Ansible - using facts from one host to perform actions on another host

In Ansible I'm trying to generate a variable from a task on one host and then use the variable to do something to another host. Specifically, I'm trying to create a Kubernetes cluster - On the control ...
0
votes
1answer
32 views

How to check application responding in Kubernetes

I am a newbie in k8s. I have a .net framework application written in C# running in K8s orchestration. I simply want to check in fixed interval (lets say in every 300sec) that my application which is ...
0
votes
1answer
182 views

Getting error while trying to communicate with apiserver in kube-state-metrics pod

I am getting error: # kubectl logs kube-state-metrics-fdc49658-g98sl -n monitoring I0523 11:30:25.206556 1 main.go:86] Using default collectors I0523 11:30:25.206766 1 main.go:98] Using ...
2
votes
1answer
885 views

Why am I getting error trying to mount a directory onto a file?

I have this prometheus deployment manifest file: to create prometheus deployment --- apiVersion: apps/v1 kind: Deployment metadata: name: prometheus namespace: monitoring labels: app: ...
0
votes
1answer
70 views

Predictive autoscaling on K8s

I am learning about using Machine Learning for provisioning proactive resources on the Kubernetes and I have found some of the interesting articles about it on the internet(for instance for Thoth or ...
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 ...
0
votes
1answer
1k views

Kubernetes serve static content with ingress

I have a simple Django application and on a regular EC2 instance nginx is a reverse proxy serving static files and proxying requests to gunicorn/wsgi backend app. Should I have a separate deployment ...
0
votes
1answer
37 views

ingrex-nginx in kubernetes with express node.js does not return req.currentUser

This is currentUser middleware: export const currentUser = ( req: Request, res: Response, next: NextFunction ) => { if (!req.session?.jwt) { return next(); ...
0
votes
1answer
38 views

How to ensure Nodes are killed when Job is finished using Cluster Autoscaler in Kubernates

I have large Kubernates jobs which take the whole resources of one node / droplet in Digitalocean (it's not running on AWS). Using resources in a deploy.yaml, the cluster autoscaler works to scale up, ...
0
votes
1answer
653 views

503 Service Temporarily Unavailable using Kubernetes

I am having some issue with creating ingress for a nginx service that I deployed in a kubernetes cluster. I am able to open the web page using port forwarding, so I think the service should work.The ...
1
vote
1answer
52 views

How to get traefik ingress to load balance across several ClusterIP services

I want to be able to load balance several nodes of a backend service represented by ClusterIP services using a traefik.containo.us/v1alpha1 ingress. I know that ClusterIP service can load balance ...
2
votes
1answer
37 views

Best Kubernetes storage option

I know there are several options, I’ve heard everything from SSHFS, NFS, object storage all the way to storage OS, my issue is I need something fast and reliable to serve a media website built on ...
2
votes
1answer
29 views

Istio Keeps On Showing TcpProxyValidationError Errors

I initially created an EnvoyFilter to apply idle_timeout of 5s to outbound requests originating from workloads with label app: mecha-dev. apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter ...

1 2
3
4 5
12