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

Where to install Prometheus for Kubernetes monitoring

I'm considering using Prometheus to monitor and analyze different metrics from my AWS EKS Kubernetes cluster running in Fargate, as it seems to be the standard tool during these times. However, ...
0
votes
1answer
39 views

when replicaset is 1 then what are 1/2 pods for prometheus server?

Using helm chart : helm install monitor prometheus-community/prometheus -n monitoring -f ./values.yaml I cannot get prometheus server to running. # kubectl get pods -owide -n monitoring NAME ...
0
votes
1answer
39 views

When do I run applications on a server in a pod and when to run them directly on the base operating system?

I am trying to get started in the DevOps Field by setting up a small server currently with Virtualbox, later on for a small team. For my basic setup I plan to use gitea as self-hosted git and Jenkins ...
2
votes
1answer
505 views

ArgoCD Autosync based off of Docker Image `latest` Tag

Using ArgoCD, I'd like to have the App AutoSync Update/Reploy when the docker image is updated on a specific tag such as latest or stable. For example, if I have a deployment in my git repo like this: ...
1
vote
1answer
417 views

How to Integrate Amazon API Gateway with EKS using Application Load Balancer (ALB)?

According to the AWS documentation, it is possible to integrate Amazon API Gateway with EKS using ALB. However, by far most of this documentation explains how to do this with NLB instead of ALB. So ...
0
votes
1answer
47 views

AWS ECS vs EKS for hybrid cloud strategy

What can EKS deployment do that ECS deployment can't do? is there any specific circumstances that you have to deploy your application on EKS but not ECS.
2
votes
1answer
731 views

How to diagnose intermittent "error dialing backend: dial timeout" error in GKE

We have an issue in our GKE cluster that started suddenly yesterday where intermittently we get errors interacting with the control plane. This affects our Jenkins builds which use the Kubernetes ...
1
vote
1answer
42 views

Scheduling a build using Kubernetes

The doc https://docs.openshift.com/container-platform/3.9/dev_guide/cron_jobs.html provides details of creating a cron job. To start a scheduled task that executes a build every 10 mins I use the ...
1
vote
1answer
53 views

kubernetes nodeport service load balancing

Let's assume I have three node named n1, n2, n3. created four pods named p1, p2, p3, p4, k8s scheduler placed pods in nodes as follows n1 -> p1 n2 -> p2 n3 -> p3, p4 Now, to access these pods ...
0
votes
1answer
382 views

Minikube for Ubuntu 20.04 WSL stuck on 'Restarting existing docker container for "minikube" ...' after minikube start and 'StartHost failed' error

I've come across the following problem where my minikube cluster doesn't start and the command line becomes stagnant in the following way: $ minikube start �😄 minikube v1.17.1 on Ubuntu 20.04 �🆕 ...
1
vote
1answer
238 views

Enable TLSv1 TLSv1.1 for specific Ingress with Nginx Ingress

I try to enable TLSv1 and TLSv1.1 for one specific ingress on a AKS cluster. By default, only TLSv1.2 is enabled. I don't want to apply this configuration on my all cluster, just on a specific ...
0
votes
1answer
39 views

Jenkins and Kubernetes Design Involving GitHub

I am new to DevOps and am currently designing a CI/CD pipeline that involves integrating GitHub webhooks with Jenkins in a Kubernetes environment, and I would like to see whether this is feasible or ...
0
votes
2answers
80 views

Build image from inside a pod or container

It seems pretty easy to build image when I just mount the docker.sock in a container. It's same as what I do on hosts machine. Simply docker build . -t image/name:sometag. But when I need to do the ...
0
votes
1answer
195 views

Google K8s Mirror offline?

Heys dudes, More someone got error when trying update cache of the Google K8s repositories? I have been got the error about NO_PUBKEY Err:10 https://packages.cloud.google.com/apt kubernetes-xenial ...
1
vote
2answers
869 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 ${...
1
vote
1answer
40 views

Auto build and upload to AWS new docker image after commit in repo

I'm new at DevOps, and I looking for solution to my problem. I have a private code repository where I have a some Flask apps in one of many folders. Example of structure: - Project -- Django Apps --- ...
1
vote
0answers
116 views

Modifying Microk8s System Manifests

To start, I am new to Kubernetes, so please feel free to point out and correct any terminology I get wrong. In a nutshell, I want to be able to run microk8s enable ingress with custom configuration ...
0
votes
1answer
31 views

Should the master node's hardware be the same as the worker node's hardware for a Kubernetes setup? [closed]

I'm new Kubernetes and am setting up a raspberry pi cluster at home and I want to put Kubernetes on it. I have 4 new raspberry pi 4s with 8gb each and one old raspberry pi 2+. There are several ...
0
votes
1answer
355 views

Gitlab CI/CD: deploy docker image to existing kubernetes cluster

I have node.js application that I need to deploy to exising kubernetes cluster. The cluster is setup using kops on AWS. I have created .gitlab-ci.yml file for building docker images. So, whenever a ...
0
votes
1answer
296 views

How to deploy loki-stack helm chart with CRIO?

I am trying to configure loki-stack using a helm chart to my k8s cluster. Since my k8s cluster uses CRIO and not docker (which is common nowdays) I need to change the pipeline_stages: config map to ...
0
votes
1answer
34 views

How do I implement user authentication and management in Kubernetes?

I'm trying to architect a micro-service application, that runs in Kubernetes. It consists of several RESTful APIs. I want a central point to implement authentication for these APIs. In my product, ...
0
votes
1answer
37 views

NetworkPolicy: Why are pod selectors used over "service selectors"?

My understanding of containers is that they should be considered to be short-lived. In addition, we can scale containers (and if using a container orchestrator like k8s, via pods) by creating ...
1
vote
1answer
33 views

What are the cost effective ways to deploy services using Kubernetes on multiple deployment environments?

We are converting a traditional docker-compose based service stack to a Kubernetes based services Before the conversion we had three deployment environments Local : Basically this is the developer's ...
1
vote
1answer
1k views

Why is there insufficient memory on kubernetes node

I have an elasticsearch cluster in a kubernetes cluster. I have the data pods going to memory optimized nodes which are tainted so that only the elasticsearch data pods get scheduled to the. Right now ...
0
votes
1answer
191 views

kubernetes quota vs limit. What are they? How are they different? When should I use one or the other?

I have been reading through the docs but it still is not clear as to why I should use one or the other. They have great examples of how to configure them but don't answer the why for quotes or limits ...
0
votes
1answer
62 views

How to consolidate multiple servers for CPU and Memory with Kubernetes

Setup: I have 10 Photovoltaics based setup where IOT Gateway get data from sensors, devices and send to Kubernetes Cluster. K8S cluster exposed its ActiveMQ broker with NodePort. Observation: AMQ has ...
1
vote
1answer
441 views

How to use Hashicorp Vault with NodeJS application?

I have Node JS app inside pods, which needs to read vault secrets. So far I found 2 methods for doing that Using init container to mount secrets as .txt files and read/parse them in my app Using node-...
0
votes
1answer
20 views

Update volume size dynamically from inside a POD

I was wondering how I could dynamically create and then mount new volumes from inside a pod ? At runtime ! I have to download a lot of files with very different sizes and would like the storage to ...
0
votes
1answer
128 views

Jenkins and Kubernetes CLI plugin and GKE

I'm trying to use Jenkins Kubernetes CLI plugin from https://plugins.jenkins.io/kubernetes-cli/ to let deploy artifacts from Jenkins to GKE cluster. Expected Behavior Get cluster info on kubectl ...
1
vote
2answers
167 views

Can we do zero-downtime kubernetes deployment with a single pod?

I've inherited an app with K8s services with the following config spec: ... replicas: 1 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate For most ...
1
vote
1answer
98 views

What is the equivalent of eksctl option "--alb-ingress-access" in a config file?

I read How to run Serverless Kubernetes: AWS EKS on Fargate, and am wondering what the equivalent option for --alb-ingress-access is in a config schema shown in Config file schema? At least it's not ...
3
votes
2answers
4k views

Use one Helm chart for ALL microservices?

This is a follow up question to my post Parameterized Kubernetes manifest files?. I understand more about Helm now, after lots of reading, including the Learn Helm book (which I recommend). I still ...
1
vote
1answer
110 views

Disabling HTTP Basic auth for requests from specific ips in k8s ingress

Currently I have a webpage which is freely accessible from certain networks an requires HTTP basic auth otherwise. This behaviour is set in the nginx config. It looks something like this: geo $...
0
votes
1answer
363 views

Ingress ip returns HTTP error DNS_PROBE_FINISHED_NXDOMAIN

I have the next ingress (output of "kubectl get ingress") NAME HOSTS ADDRESS PORTS AGE main * 192.168.39.190 80 46m But when I try to visit that IP address in ...
2
votes
1answer
81 views

Using helm to manage an "environment?"

I'm new to Kubernetes, and hence helm, so I've been reading a lot, and teaching myself by setting up a cluster, services, deployments, and pods. In my case I use AWS EKS. I now at least understand ...
2
votes
1answer
54 views

What's better: 2 pods (on the same server) or 1 standalone application?

For a client we're going to roll out a certain type of software installation. (I can give more details in the comments if you like.) The question is: would you go for 2 pods (on the same server)? Or ...
1
vote
0answers
20 views

In what time ranges do you verify your canary deployments?

I am currently implementing a canary deployment strategy for the services of an Have you already worked with carary deployments? After which timeframe do you decide to roull out 100%? Which factors do ...
1
vote
1answer
209 views

Parameterized Kubernetes manifest files?

I'm learning Kubernetes, coming from an AWS/CloudFormation background to set up my company's infrastructure. One of the strengths of CloudFormation is the use a template that can be parameterized for ...
1
vote
1answer
365 views

What does "eksctl create iamserviceaccount" do under the hood on an EKS cluster?

AWS supports IAM Roles for Service Accounts (IRSA) that allows cluster operators to map AWS IAM Roles to Kubernetes Service Accounts. To do so, one has to create an iamserviceaccount in an EKS cluster:...
1
vote
1answer
48 views

Is there a way to combine helm with some other tool for k8s configuration management without conflicts?

Currently I have a k8s project with multiple services which are managed by a helm chart. Said helm chart is installed on my local machine and I want to keep it this way if it's possible. But now I ...
1
vote
2answers
96 views

Where may I need Docker Compose as Kubernetes won the container orchestration war?

I found Docker Compose just release 1.28 on 2021-1-20 but as Kubernetes won the container orchestration war I am not sure where and why I may still need Docker Compose, under with case Docker Compose ...
0
votes
1answer
42 views

Is cross-region Kubernetes a thing, and if so, what role does VPN place in this context?

Given you are going to overcome risks of a whole cloud region going offline, you would implement some cross-site distribution mechanisms. In terms of Kubernetes, cluster communication would happen ...
3
votes
0answers
49 views

How to run a container from within another container while also mounting a volume from the first container?

I'm running a build in Jenkins which is running inside Kubernetes. When the job starts, a container starts in the cluster and the build runs inside it. A step in the build requires building an RPM ...
0
votes
1answer
29 views

How to redirect the request to a different node when there is an unexpected exception and one of the pods gets restarted

We are deploying the application in a Kubernetes cluster and when we face an unexpected error and the pod gets restarted or goes down we are getting a 502 Gateway error even though there is another ...
1
vote
1answer
165 views

Failed to install kubernetes on centos

Following the official documentation, I have an error when trying to install kubernetes cluster yum package. I am on Centos 7 using yum. So I run this commands: cat <<EOF | sudo tee /etc/yum....
1
vote
1answer
103 views

How to add a static slave to Jenkins running in Kubernetes?

I've installed a Kubernetes cluster and deployed Jenkins in it which dynamically starts slave machines using Kubernetes plugin for Jenkins. Some builds require a specific build machine with GNU make ...
1
vote
1answer
61 views

How to connect to a kubernetes cluster that is inside of a docker container?

For CICD purposes, I need to run a docker container and then create a kubernetes cluster inside of it using kind. Here is my Dockerfile: FROM ubuntu:18.04 RUN apt-get update RUN apt-get install curl -...
-1
votes
1answer
585 views

Cannot resolve services with service name inside a kubernetes pod

I cannot access a pod from another pod with its service name. Getting error as cannot resolve host svcname When i try to view the information of /etc/resolv.conf, i do see ec2.internal as searches ...
0
votes
1answer
28 views

Group authentication in kubernetes

I am trying to implement group based authentication in k8s with RBAC. My requirement is as below: There is a linux group named "readonly". There are 3 users reader1, reader2 and reader3 in ...
0
votes
1answer
74 views

ECK - Install Plugins: Error privileges

My setup: AWS EKS * Platform: eks.3 * K8s: 1.18 ECK (Elastic Cloud Kubernetes): * Deployment via: Operator * Elasticsearch version: 7.10.1 Summary I'm trying to install the repository-s3 plugin at ...

1 2 3
4
5
12