Questions tagged [kubernetes]
For questions about Kubernetes, an open-source system for automating deployment, scaling, and management of containerized applications.
816
questions
0
votes
0
answers
11
views
What is the best option for uploading files to Azure storage in Azure pipeline to use them in persistent volumes for AKS pods?
I want to upload files to Azure storage in Azure pipeline to use them in persistent volumes for AKS pods.
What I did:
Created a storage account with NFS enabled and created a container in the storage ...
0
votes
1
answer
20
views
Unable to deploy grafana using helm
I'm new to grafana and prometheus, started working on it from last few days. I'm having some issues. I build a new grafana image and I am using the official helm repo to install it. On using the ...
0
votes
0
answers
32
views
Which tool to use for deploying Docker containers when scalability and availability are not a concern?
I'm looking to deploy some code in Docker containers into production and need to be able to deploy and schedule containers as required.
I had a look at Kubernetes and it would generally suit my use ...
0
votes
1
answer
32
views
Migrating from dockershim to containerd - kubectl continues to show docker runtime
Following directions from here. End goal is upgrading cluster to 1.24 and beyond.
At the end when I run kubectl get nodes -o wide seems like I would see 'containerd' as the runtime (link) but instead ...
2
votes
1
answer
29
views
Kubernetes repeating job with start and end date?
I am looking to see if there is a way of running a task on a repeat interval with an explicit start and end date.
In the ecosystem I have found that Cron Job task type lines up very well with a repeat ...
0
votes
0
answers
37
views
Cert-manager Issuing certificates for ingress in different namespace
I have a k3s installation with cert-manager set up with a cloudflare dns01 solver:
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server ...
0
votes
0
answers
9
views
GKE attaches huge volume when starting a redis cluster from redis:5.0.1-alpine
We are aiming towards creating a Redis cluster in our GKE cluster.
For that cause, we followed the tutorial and code sample on collabnix (very straightforward, and very simple, kudos to the author! )
...
0
votes
0
answers
10
views
Azure AKS Ingress With SSL Access
I have a problem with accessing my .net6 apps. I use AKS Ingress under tls. Also, I use Azure DNS records where IP is the ingress controller load balancer but sometimes the apps are not accessible ...
0
votes
0
answers
13
views
Naming individual nodes of AKS node pool
First, I understand the notion of a node pool is cloud-specific - I come from the Azure Kubernetes Services (AKS) world, where I've started to learn Kubernetes world, not too long ago. So, I'm using ...
0
votes
1
answer
20
views
How to enable kernel modules by default on google cloud kubernetes node os image?
I'm having an issue with Google Cloud kubernetes node os image (container optimized image).
Trouble is that one of the pods on the node is NFS server and node does not have nfs and nfsd kernel modules ...
0
votes
0
answers
32
views
Fail to deploy a kubernetes application with the Rancher
I am trying to deploy a kubenetes application in a on-premise infrastructure, but there is something wrong with the "Deploy", "Service", and "Ingress" configuration files....
0
votes
0
answers
27
views
How to migrate kubernetes PVs and PVCs from one cluster to another?
I have a Kubernetes cluster (v1.16) set up on my servers. Also, I have a Ceph cluster running on a different set of servers and is used in my Kubernetes cluster as a storage class. In order to upgrade ...
0
votes
0
answers
16
views
How to connect a dotnet API to a mssql database both in the same Kubernetes cluster?
I have a mssql server running in a pod and an API running in another pod in the same cluster deployed with helm. I'm able to connect to the database with a port forward and I created a user using ...
0
votes
0
answers
31
views
Kubernetes Load Balancer error when recreating pod by deployment using nextcloud
I'm trying to create a k8s cluster for a Nextcloud POC. In the first deploy of my cluster, everything looks great. My application was configured and working at localhost:8080, but when I tried to ...
0
votes
2
answers
88
views
Bandwidth utilization by pod on Kubernetes
Can someone tell me how I can get bandwidth usage per pod in Kubernetes from CLI? Ideally, I need something that will extract bandwidth usage for every pod.
1
vote
0
answers
158
views
Upload a realm to bitnami/keycloak on helm install
I'm trying to upload a realm to my keycloak deployment via helm using the bitnami/keycloak chart.
Here's my values.yaml override file that I'm just using to test:
keycloakConfigCli:
enabled: true
...
0
votes
0
answers
10
views
K8S: Deploy - prefer amd, if available, or x86 if not
I have built my containers for amd and x86, but I'm having a problem with how to deploy them. I would prefer to deploy the amd image, if there is sufficient capacity, and if not then deploy the x86 ...
0
votes
0
answers
57
views
kubernetes backend pod can not connect to database
I have java backend pod and mysql statfulset db. when I see logs of backend pod, there is an error, It can not obtain connection from database.
WARNING: sun.reflect.Reflection.getCallerClass is not ...
-1
votes
1
answer
28
views
What would be the best questions to ask to assess technical skill on Kubernetes for an interview?
I have to conduct interviews on a specific position which requires somewhat probing expertise on Kubernetes.
I am not very familiar with it. What would be the best questions that would allow me to ...
0
votes
0
answers
17
views
How to run Kubernetes workers on machines with very few open ports that I don't control
How do I use Kubernetes with workers with limited open ports?
I have access to some physical machines which I'd like to use as Kubernetes workers.
Unfortunately, there are only 3 open ports on each ...
1
vote
1
answer
82
views
Argo CD + Operators = Overkill?
I intend to build a local Kubernetes cluster to host services in my home lab and share them with family and friends. If I'm already planning to deploy Argo CD as a GitOps solution and it'll already ...
1
vote
2
answers
171
views
I am looking for a production alternative to kubectl port-forward
I want to know what are production alternatives to make http://192.168.49.2:30001 this accessible http://host_machine_ip:8007 here
I have set up minikube cluster with mobile-api service on it.
...
0
votes
1
answer
37
views
strip all comments from helm package
I have a lot of comments in my helm chart in my repository.
I want to deliver my helm chart to others without these comments.
I am hoping to be able to do this during my CI pipeline. I have a step in ...
1
vote
1
answer
63
views
Prometheus scrape config for kubelet node role not auth'ing
I have a kubernetes (not minikube) cluster (1.25) installed on a dedicated machine (1-node cluster). I installed Prometheus. I am using a ServiceAccount, Role, ClusterRoleBinding like this:
apiVersion:...
0
votes
0
answers
23
views
Certificates in Kubernetes, OpenShift and AWS EKS as non-root
I am adding support to Kubernetes, OpenShift and EKS to a native Docker application. It's a classic .net application with kestrel.
Two steps are essential in our current design:
We have our own CA, ...
0
votes
0
answers
13
views
Base image for GitLab Kubernetes executor
I'd like to use Kubernetes executor for GitLab Runner. What is the recommended base image for such an executor's image?
I'd expect this GitLab Kubernetes executor's container to connect to GitLab ...
1
vote
0
answers
10
views
How to manage Service Meshes via Infrastructure as Code?
In our environment we have found infrastructure as code with YAMLs to be a relatively painless great experience using GIT and source control to commit YAMLs that then get deployed to various ...
0
votes
0
answers
10
views
how to make externally accessible domain name for a NODE_IP:NODE_PORT to use it for accessing the web application using that name in URL instead of IP
I have a web application which is deployed in AKS using helm charts. We have several instances of the same application running in the same AKS cluster separated by namespaces. Application is then ...
0
votes
1
answer
39
views
kubernetes ingress config for jenkins says service doesn't exist
I have a Jenkins setup which is inspired by this guide.
I wanted to add an url, so I added An ingress.yaml.
jenkins is still available at <node_url>:32000 but not at http://jenkins.localdomain (...
0
votes
0
answers
10
views
How to configure shared VPC for kOps?
As described in this documentation, I want to create a Kubernetes cluster using kOps in an existing VPC. I have created a VPC, Internet Gateway, Route Table, Subnet and an EC2 instance which I want to ...
0
votes
0
answers
222
views
AWS EKS Kubernetes cluster unreachable: dial tcp Timeout
I configured EKS Cluster with Terraform, and used Helm to deploy ingress.
When I try to apply my Terraform configuration, it fails to create the ingress software because it fails to connect the EKS ...
0
votes
0
answers
19
views
One pod inside a deployment or many deployments with one pod inside?
Is it correct to put multiple pods inside one deployment? As I understand the correct way to do this is to create multiple containers inside a pod which is inside one deployment, but this does not ...
0
votes
0
answers
19
views
Helm 2to3 plugin - Error: Failed to copy [Helm 2] repository file
I'm new on Kubernetes and Helm, I'm trying to migrate Helm v2 to v3 using the 2to3 plugin, but when I try to move the configuration files running helm3 2to3 move config, I'm facing this error:
Error: ...
0
votes
0
answers
20
views
Kubernetes surge evicted pods like rolled out pods
Is there a way to reproduce the rolling update strategy's maxSurge of a deployment i.e
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
While using a ...
0
votes
1
answer
15
views
Creating a set of of kubenertes pods from a list of arguments
I have a list of 35 services that need to be continually monitored/exercised. I've got a container that can monitor any one of them and can check an environment variable to see which one of them it ...
1
vote
1
answer
34
views
Using kubernetes secret env var inside another env var
I have a secret being used as env var in another env var as follows:
- name: "PWD"
valueFrom:
secretKeyRef:
name: "credentials"
key: "password"
- name: ...
0
votes
1
answer
101
views
Spring Boot Microservices cannot run on Kubernetes (java.net.SocketTimeoutException: connect timed out)
I have a problem about running Spring Boot Microservices on Kubernetes. After I installed minikube, I started it and open its dashboard.
Here is the commands to open dashboards.
1 ) minikube start
2 ) ...
0
votes
1
answer
125
views
Issue (401 unauthorized) adding kubernetes cluster to existing Jenkins server
I want to add a kubernetes cluster to an existing jenkins server (and migrate jobs from docker to kubernetes using named agents).
I set up the kubernetes cluster and added a serviceaccount like for a ...
0
votes
1
answer
55
views
How can I set a Route53 record as an alias for EKS load balancer?
I set an EKS cluster using Terraform. I try to set Route53 record to map my domain name, to the load balancer of my cluster.
I set my EKS cluster:
resource "aws_eks_cluster" "main" ...
0
votes
0
answers
31
views
How should I deploy a Flutter app on a Kubernetes cluster?
I am just wondering to know how should I create a docker file for a Flutter app then deploy it on a Kubernetes cluster?
0
votes
1
answer
47
views
kubectl uses wrong IP
My kubectl suddenly stopped working. Any commands results in "no route to host".
For example, getting logs kubectl logs mypod-746cfd667b-tdrnt
Error from server: Get "https://hades:...
0
votes
1
answer
20
views
Kubernetes internal network and addresses not working for all internal names for same pod/service
I am setting up a k8s cluster using k3s. Currently I have a Jenkins pod running, set up according to this guide.
I have run into an issue setting up the kubernetes cluster for Jenkins workers I can't ...
0
votes
0
answers
25
views
Do K8S Service Load Balancers need to wait for a Pod to be completely healthy?
Recently our deploy failed because a sidecar that provides non-critical functionality in our pod failed to pull it's image. The pod was in a crashloop, but the important services in that pod were ...
1
vote
1
answer
1k
views
Resolving _class not in classpath_ error without doing it manually in a k8s Jenkins instance
I have installed a k8s cluster (v1.25.4+k3s1) and I have deployed a jenkins image to that cluster (using this guide) which means that I have the following installed:
Name
Version
Jenkins
v2.375.1
...
0
votes
0
answers
15
views
Need advice on how to use Helm to facilitate continuous delivery to our EKS cluster
We use AWS and I just created an EKS cluster, and was able to deploy a sample demo project to ensure it works, i.e., I was able to deploy a NodeJS service that can access our RDS instance via commands ...
0
votes
1
answer
72
views
How to get a list of deployments that only have a certain label in the spec section
I know that I can perform this command to see all the pods that have a certain label : kubectl get pods -l importance=normal
Is there a command that would allow me to get the deployments that create ...
0
votes
2
answers
142
views
Install gitlab on baremetal cluster using helm chart
I'm trying to install gitlab using helm on my kubernetes cluster running on vbox.
I have already installed traeffik, metallb and argocd.
I have tried to install gitlab using helm with this command:
...
0
votes
0
answers
103
views
How do I get SignalR server deployed on AWS EKS behind nginx to allow websocket protocol connections?
I have a .NET 6 Web API with SignalR. Everything works perfectly when connecting directly to the API - locally as well as via Endpoint IP:Port on AWS EKS. However, it's failing to connect specifically ...
2
votes
1
answer
128
views
Is it possible to create a tls kubernetes secret using Azure Key Vault data resources in Terraform?
I have a certificate file and a private key file that I am using to implement tls encrypted traffic for several different k8s pods running under an NGINX ingress load balancer. This works fine (i.e. ...
0
votes
2
answers
73
views
Persistent Volume with Kubernetes
I have an application which consists of 2 containers which are running on an on-premise system. The responsibility of the application is to accept data from other on-premise systems and upload it to ...