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
1 answer
11 views

forward http request to pod running on worker node

Context: I am trying to setup a kubernetes cluster on my PC using virtual box. Here's the setup - In this setup i am able to launch pods from the control plane, as well as able to send http requests ...
  • 101
1 vote
0 answers
16 views

Kubernetes NodePort traffic balance works weird

I have a cluster with 2 nodes: Controller Worker I have created deployment, which creates 2 pods within the cluster. In my example it looks like: Pod1 -> Controller Pod2 -> Worker Then I ...
  • 111
-1 votes
1 answer
17 views

Can the status be running after applying the yaml file?

This is an interview question, It asks apply the following yaml file into your k8s cluster: apiVersion: V1 Kind: pod Metadata: Name: freebox Spec: Containers: - Name: busybox Image: ...
  • 1
0 votes
1 answer
25 views

How do I list pods sorted by label version in Kubernetes?

I need to list some pods sorted by version and get the last index of it. I'm trying to do like: kubectl get pods --namespace my-namespace --selector "app.kubernetes.io/name=my-cool-pod" --...
  • 1
0 votes
0 answers
17 views

k8s Ingress configuration with defaultBackend; usecase exclude one route

I have an Ingress config like this: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: my-app-ingress annotations: alb.ingress.kubernetes.io/healthcheck-protocol: HTTP alb....
  • 1
0 votes
1 answer
16 views

can't run default/hello-minikube application in browser

I am new to devops stuff and just started learning Kubernetes. I installed minikube and kubernetes-cli with homebrew and then setup docker drivers minikube start --driver=docker minikube config set ...
0 votes
0 answers
16 views

jenkins nlb termination with ingress-nginx

September 2022 I still can't terminate properly jenkins on nlb with ingress-nginx, I am getting redirected to http only possible scenario to make it working beacuse of x-forwared proto, is there any ...
0 votes
1 answer
25 views

How can I use rewrite-target on the root path with Azure Kubernetes Service?

I want to have an API service that I want to reach under /api, and other requests to fall back to a frontend service. Peculiar is that this worked locally with minikube, but now that I deployed on ...
0 votes
0 answers
20 views

Does `helm upgrade` use rolling restarts for `deployments`, yes/no? if not then what is the default?

I ask because: I want to know what is the default helm upgrade behavior I might need to change the default helm upgrade behavior Does helm upgrade use rolling restarts for deployments? If not then ...
0 votes
0 answers
14 views

nginx ingress LoadBalancer service exposes two additional ports to the outside

I can't wrap my head around this issue that I encountered. I have a k3 cluster (v1.24.4+k3s1), with multiple services running behind an nginx ingress (helm: ingress-nginx/ingress-nginx). It creates a ...
0 votes
0 answers
10 views

microk8s.kubectl apply -f not working but create -f is working with ingress

I have created an ingress for kubernetes dashboard with kubecrl apply -f kubernetes-dashboard-ingress.yaml with the following description: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: ...
3 votes
0 answers
33 views

How to use same terraform code for both kubernetes clusters Oracle (OKE) and AWS (EKS)?

I want to use same terraform code for both kubernetes clusters oracle (OKE) and AWS (EKS) and install the argocd helm chart on it, I given my code below for your reference, now the problem I am facing ...
  • 31
0 votes
1 answer
34 views

How to tell helm not to deploy a resource or remove it if a value is set to "false"?

I am working on an HPA template that will be applied only if the enabled value is set to true. Currently when setting enabled to false, it will create an empty object in yaml. This is then applied ...
0 votes
0 answers
3 views

Apache Spark Web UI on kubernetes not working as expected

hi im having a problem i'am deploying Apache spark helm chart on kubernetes bitnami chart : helm repo add bitnami https://charts.bitnami.com/bitnami normally the apache spark webui is on port 8080 ...
0 votes
1 answer
15 views

Why is AWS ALB not talking to an ingress controller?

I'm taking TechnoWorld Kubernetes Administration class, where we learn to create a Kubernetes cluster from scratch using one Ubuntu EC2 for master node, and two Ubuntu EC2s for worker nodes. The ...
  • 295
0 votes
1 answer
8 views

Gather kubectl logs data to an external service

When I run kubectl logs MyPodNameHere I get back the standard-out of that pod. My company has a central logging service for all our applications and I would like to send the logs output to that ...
  • 184
0 votes
0 answers
29 views

Istio GRPC envoy proxy

I am developing a simple GRPC server in Go, which I want to access from a web application. But to access a GRPC server via the web, you have to deploy an Envoy proxy. Eventually the server runs in ...
0 votes
0 answers
10 views

What is the usage of the cluster external IP address?

I'm confused about the usage of the cluster external IP address. Is this an address that can be used for ingress to access pods running on the cluster? If so should this be the same as the control ...
0 votes
0 answers
20 views

What is the best approach for managing this local network of SBCs?

I am dealing with hundreds of SBC's (Raspberry Pi or similar). They are all networked to a central control PC via ethernet. I need to automate the following: Perform a network OS install Perform ...
  • 101
0 votes
0 answers
7 views

Rancher/RKE Equivalent of Nomad's Dynamic Port Allocation

I currently have a dev environment utilizing nomad, but am testing migrating some of my services to kubernetes via Rancher/RKE. One of the things I'm struggling to find an equivalent for is how ports ...
  • 103
0 votes
0 answers
9 views

port-forwarded service and telnet on it - closed by remote host

When doing telnet on port-forwarded service I get connection closed by remote host after 60 sec, who is closing this? Kuberentes 1.22? I am investigating weird behavior that happened on latest patch ...
0 votes
0 answers
14 views

Method or Tool monitoring traffic error rate

I have implemented Canary deployment using istio service mesh. Here is the Canary deployment step: I have combined routing traffic by traffic weight and header. The detailed configuration is like the ...
0 votes
0 answers
25 views

How to split out image tags from a kustomize file in for deployment

So I have the following kustomize.yaml file for my staging environment overlay and when I want to promote to production, I would like to move just the portion that has the image numbers into the ...
0 votes
1 answer
64 views

Kubernetes fails to do do garbage collection on images

For quiet some time every once in a while I get an alert, that the disk of one of my Kubernetes cluster nodes is filling up. I pretty quickly found out, that it were the Docker images. As I did not ...
  • 353
0 votes
0 answers
27 views

Run docker-in-docker container alongside Jenkins agent

I'm looking for a way to run a Docker-in-Docker (dind) container alongside my Jenkins agent nodes using the Jenkins Kubernetes Plugin configured by Jenkins Configuration-as-Code (JCasC). I'm currently ...
  • 353
1 vote
1 answer
30 views

Sharing volumes between pods on different clusters

we have two independent kubernetes clusters that work like Main and it's high available one. and we have some stateful applications that store data within cluster's persistent volumes. my question is ....
0 votes
0 answers
18 views

aspnet core image takes up a lot of space

I've built 2 web apps, one in python and one in aspnet core. They both have one route, nothing special. After building a Docker from it it turns out that the flask app is 80MB big and the .NET core ...
1 vote
2 answers
68 views

How best to delay startup of a kubernetes container until another container has done something?

I'm migrating a chunk of applications to k8s. Some of them have large amounts of config files which are best held in GIT as their size exceeds the max size for configmaps. I have a simple git-sync ...
  • 113
0 votes
1 answer
24 views

How do you securely deploy large number of Kubernetes components in isolation?

Precursor: I am not experienced in the design of large-scale infrastructure deployments for infra applications. The assumptions for the questions: I have read that it is a good practice to host ...
0 votes
0 answers
16 views

How do you ensure users do not bypass Kubernetes security and interact with the Container runtimes directly?

You could have Docker and Kubernetes installed on the same host and allow the user to access both binaries. A malicious user can potentially bypass Kubernetes security (e.g. PodSecurityPolicies), by ...
0 votes
0 answers
14 views

How do you isolate Kubernetes components in a network?

When I install Kubernetes on a host, all the core components (etcd, Kube manager, scheduler) are all installed on a host by default. Is there a use case or need to deploy Kubernetes components ...
0 votes
0 answers
34 views

Configuration of permissions for run pods

I am learning openshift in Udemy. This doing the follow practice: In the project "wordpress" to create a wordpress with mysql database $ oc new-project wordpress $ oc new-app mysql:5.7 --...
0 votes
1 answer
45 views

CoreDNS is not working after installation of microk8s

I have installed a microk8s on my 64 bit raspbian, and enabled a dns server by microk8s enable dns Coredns is continously cashes: microk8s.kubectl describe pod coredns-64c6478b6c-snkxx --namespace=...
0 votes
0 answers
122 views

etcdserver: request timed out

I've backed up my etcd and after restoring it, i can't Create/Update/Delete anything in my cluster! I've exactly went through the docs Here are my steps: Backing up etcd Save the snapshop sudo ...
  • 151
0 votes
0 answers
26 views

Round robin for multiple egress IPs on Azure Kubernetes cluster

I have an Azure AKS cluster setup, in which there're multiple pods executing logic that eventually calls an external 3rd party service using HTTP. Currently there can be up to 100 calls per minute, ...
0 votes
0 answers
23 views

Can helm print pod name if deployment is failed?

If I deploy a deployment to kubernetes using helm install ... --wait --debug, the installation can be failed because of failing of the pod (the command failed or timeout exceeded). But there is no pod ...
  • 1
0 votes
1 answer
40 views

How can I get everything to use the same load balancer on DigitalOcean?

I have a LoadBalancer service, and an Ingress that routes to various ClusterIP services. I've given both of them the following annotation: annotations: kubernetes.digitalocean.com/load-balancer-id: '...
  • 101
1 vote
2 answers
34 views

Combine Helm charts or leave separate?

I'm new to Helm and my first task was to recreate a simple pipeline. This pipeline is just: PostgreSQL -> Spark, with ELK monitoring the instances. Someone mentioned I may be able to combine all of ...
  • 11
0 votes
1 answer
49 views

Kubernetes Job Metrics in Prometheus

I want to create a Kubernetes Job object like the example: https://kubernetes.io/docs/concepts/workloads/controllers/job/ Now imagine I want to have the result (in this case the value of Pi: 3.14159......
0 votes
0 answers
40 views

Can I use Istio as an API Gateway?

We have lots of ingresses in our K8s environment that are associated with our publicly available load-balancer in AWS EKS. Thus these services are publicly available, something we don't like for ...
  • 1
0 votes
1 answer
56 views

What is the best way to reverse port forward information from a Kubernetes cluster to localhost?

I am attempting to reverse port forward information from a Kubernetes pod 192.168.49.2:30085 to my locoalhost:8000 but I am having issues. The goal is to get the same response as curl 192.168.49.2:...
0 votes
0 answers
26 views

How to properly escape brackets in ArgoCD?

I have an ArgoCD + Argo Workfows setup. In my manifests files, I am trying to escape double brackets since I have some helm apps, and if I manually edit the Argo workflow file with the expression ...
  • 101
0 votes
1 answer
17 views

Is there a "tracing" service that comes with Istio?

This page: https://istio.io/latest/docs/tasks/observability/gateways/#option-2-insecure-access-http Shows how to setup external visibility to the telemetry addons for Istio. One of those is shown to ...
  • 184
0 votes
0 answers
23 views

Kubernetes etcd db size grows continuously and system gets unstable when using --anonymous-auth=false

I have a problem with the growing db size of etcd. This causes the entire Cluster to become unstable. Pods gets evicted and the Kubernetes-API server crashes every now and then. I identified that this ...
  • 101
0 votes
1 answer
2k views

NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized

We have a cluster with 4 worker nodes and 1 master, and the flannel CNI installed. 1 kube-flannel-ds-xxxx pod running on every node. They used to run fine, but 1 node suddenly entered NotReady state ...
0 votes
0 answers
21 views

Dev/prod tagging strategy with large docker images

I am currently implementing a CI/CD pipeline for a machine learning docker image that is to be deployed on a Kubernetes cluster after the image is built and sent to a Harbor image registry. There is a ...
  • 1
0 votes
1 answer
47 views

failed to acquire lease: subnet "10.244.0.0/16" specified in the flannel net config doesn't contain "192.168.0.0/24"

I'm trying to configure Kubernetis with web dashboard. I use these steps: swapoff -a Remove following line from /etc/fstab /swap.img none swap sw 0 0 sudo apt update sudo apt ...
0 votes
1 answer
13 views

Limit and request decleration

it's needed to add "" OR '' to the request/limit configurations? For example: resources: limits: cpu: 100m memory: 300Mi requests: cpu: 1m memory: 50Mi vs. ...
  • 111
1 vote
1 answer
240 views

Cannot start Kubernetes Dashboard

I'm trying to install Kubernetes Cluster with Dashboard on Ubuntu 20.04 TLS using the following commands: swapoff -a # Remove following line from /etc/fstab /swap.img none swap sw 0 ...
0 votes
0 answers
20 views

How to Scale Down Nodes on GKE if there are Cluster-Wide Minimal Resource Limits?

I am pretty new to Kubernetes and GKE. I have a cluster which has two node pools and I get a notification for them: Can't scale down nodes because it would violate cluster-wide minimal resource limits ...
  • 101

1
2 3 4 5
15