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

In k8s, do the controller nodes have to be in same VPC as the worker nodes for a cluster?

I'm new to k8s and trying to grasp the infrastructure concepts, and trying to apply them in AWS. I know a k8s cluster has a control plane, which has the management nodes, and a data plane, which has ...
4
votes
1answer
247 views

Change docker container’s log PATH

Team: All my container logs are under /var/log/containers.. Where in kubelet or docker config can I specify this path such that logs are instead created under new path? Ex : /shared ? Instead of /var/...
1
vote
1answer
68 views

gitlab kubernernetes integration: configuring the installed runner

I connected my existing kubernetes cluster to gitlab using the gitlab integration in myproject/operations/kubernetes on the left tab pane in the gitlab gui. After having installed helm + gitlab runner ...
4
votes
1answer
98 views

K8s cluster in peered VPC can't reach RDS cluster

I have two K8s clusters in the same VPC that I want to connect to an MySQL Aurora RDS cluster. One of the clusters can reach the RDS cluster just fine. The other, however, cannot. I'll call these eks-...
2
votes
1answer
522 views

Redirect to a custom page on 503 error in Ingress

When our site is getting deployed, the Ingress gets created and before I could get any response I get 503 for 5-6 minutes (time taken to startup). We need to configure our ingress to redirect to a ...
0
votes
1answer
35 views

Kubernetes namespaces with RBAC: sufficient for tenant isolation in a public environment?

Initially namespaces have been created to enable logical partitioning of a single Kubernetes cluster in order to prevent naming conflicts. Over time, this changed. While this article from 2016 sais ...
0
votes
1answer
127 views

What reasons should I NOT use a private DNS zone and CNAME services in my AWS/K8s environment?

I have a Kubernetes cluster in AWS, with apps that talk to AWS services like RDS, Elasticache, Elasticsearch, DynamoDB, etc. For the services where it's available (Elasticache and RDS, and more ...
4
votes
2answers
1k views

Kubernetes configuration with yaml anchors

I have a deployment.yaml file and want to reuse the environment for all my deployments like this: apiVersion: apps/v1 kind: Deployment metadata: name: beat spec: selector: matchLabels: ...
0
votes
1answer
289 views

What are possible backup status in velero?

I am using velero for k8s cluster backup. I was looking for possible backup status in velero. I couldn't find any proper documentation on this. Can someone please help
1
vote
1answer
282 views

How to get CPU and Memory usage of nodes in a specific Kubernetes instance group?

I have a couple separate instance groups, and kubectl top nodes will display the CPU and Memory usage of all nodes. I'd like to be able to just ask for the information for a specific instance group if ...
3
votes
1answer
2k views

Remove resource from Kustomize base?

I have a kustomize base that I'd like to re-use without editing it. Unfortunately, it creates a namespace I don't want to create. I'd like to simply remove that resource from consideration when ...
2
votes
1answer
23 views

Data processing infrastructure

We are building a system for data science in AWS and our flow is pretty simple. Get the data - From redis get the model - From FSx/EBS run. This process script should take something like 5-10 ...
0
votes
1answer
679 views

Helm Installation fails with shared config maps

I have a couple of deployments in Kubernetes packaged using Helm. Both the deployments are different but they share the same config map. When performing installation via Helm the first deployment is ...
0
votes
1answer
23 views

Helm Repo: can it host dockerfiles and other image-building artifacts

I have a service that I want to port to Helm. It's a django application that requires memcached and postgresql and a forward proxy like nginx. I would ideally like to have one repository with all that ...
3
votes
1answer
2k views

branch specific jenkins pipeline trigger

I am trying to trigger a jenkins pipeline job only when a pull request has been approved & merged to a specific github branch in our CI/CD implementation. currently whenever i merge a PR to ...
0
votes
1answer
41 views

Docker update with persistent storage and 0 downtime

I have a docker container running with persistent storage. When I try to update now I kill the container, and rerun the updated image all over again. I've considered setting up the new container first,...
1
vote
1answer
84 views

Get all Deployments referencing given ConfigMap by the ConfigMap's name

Suppose I have a ConfigMap: apiVersion: v1 kind: ConfigMap metadata: name: london-tz-config data: SERVER_TIMEZONE: "Europe/London" I also have about 50 distinct Deployments. Let's say ...
0
votes
2answers
47 views

One Repository for Kubernetes configuration or one configuration per application repository

We are currently migrating our Services to a Kubernetes environment. My question is if the configuration yaml file for each application should be in the repository where the application source itself ...
3
votes
0answers
551 views

Copying a large number of files (>4GB) into a Kubernetes pod results in error code 137

I'm trying to find a workaround for this that isn't incredibly slow. I'm trying to download a large data folder from a Kubernetes pod for reupload to another cluster that is not connected to the ...
0
votes
2answers
246 views

Start only one pod at a time in kubernetes

Is it possible to tell kubernetes, that when performing a deployment of multiple pods that it should start only one at a time and only create the next pod if the previous has completely started up? It ...
-1
votes
1answer
34 views

best Kubernetes platform for deploying apps while learning

I want to practice deploying app on real environment while I am learning Kubernetes. Do you know any affordable cloud platform for this purpose?
0
votes
1answer
137 views

Kubernetes: Custom second scheduler container unable to start

I tried to add a new scheduler to the master node as a static POD. I create the yaml file and save it. The pod as been created and his state is running but the container is unable to start. the ...
0
votes
1answer
44 views

micrometer exposing actuator metrics vs kube-state-metrics vs metrics-server to set pod request/limits

micrometer exposing actuator metrics to set request/limit to pods in K8svs metrics-server vs kube-state-metrics -> K8s Mixin from kube-promethteus-stack Grafana dashboad It's really blurry and ...
1
vote
1answer
93 views

How to run a single one-time command on a kubernetes instance/pod

Currently I have a setup on AWS with 4 EC2 machines. They provide a web interface that among other things also has a database search. My recent project was to move the database search to AWS Elastic ...
1
vote
2answers
157 views

Is it possible/fine to run Prometheus, Loki, Grafana outside of Kubernetes?

In some project there are scaling and orchestration implemented using technologies of a local cloud provider, with no Docker & Kubernetes. But the project has poor logging and monitoring, I'd like ...
0
votes
1answer
35 views

How to deploy MySQL server repeatedly

From fifty-thousand feet, how are, for example, multiple MySQL containers handled? In the context of my limited experience, simply running the container is insufficient, with additional configuration ...
3
votes
0answers
67 views

Grafana K8s microservices availability dashboard based on actuator uptime

I need to create a dashboard that is using micrometer prometheus spring actuator endpoint to show all services for a given namespaces in green boxes or red boxes depending on status, the boxes should ...
1
vote
1answer
69 views

What are the "User Mode" tools in kubernetes lens?

I have been using kuberentes lense and noticed under the cluster settings page an optional package called "user mode". Does anybody know what this means?
1
vote
1answer
22 views

Kubernetes used to orchestrate Containerized Machines

0 I am using k8s to orchestrate an environment on a local network. My idea is to deploy a number of linux machines each of which should have its own "External" IP. Right now I found guides ...
3
votes
1answer
3k views

How to add timeout to a helm chart?

I have a helm chart which pulls a lot of images from various registries and deploys a lot of pods. It runs a lot of k8s jobs before getting the pods up. Overall, helm install command takes huge time, ...
7
votes
1answer
4k views

Properly shutdown k3s on local machine

I've just installed k3s on my notebook (Ubuntu). Works fine. Great project. However, i do not need it to run 24/7 so, how do I properly shutdown the k3s cluster. Oddly, I cannot find anything about ...
1
vote
1answer
50 views

How to handle services when the developers provide incorrectly in k8s

I provided the script to provision a new feature environment inside k8s it will create all the configs required, namespaces, resources and whatever... in my script, I described this param: parameters {...
0
votes
1answer
318 views

config.yaml is not setting up a new context

I have a kubernetes Config file such as: apiVersion: v1 kind: Config preferences: {} contexts: - context: cluster: test-sim-development namespace: test-sim user: developer name: test-sim ...
1
vote
2answers
277 views

Spread pods over cluster

Current using AWS's auto-scale policy to start EKS worker nodes (min+desired 10, max 15) on a fixed time every day. There are 120 pods and 30 deployments. Obviously, only one node will be up firstly. ...
0
votes
1answer
203 views

Jenkins Helm Chart - kubernetes-plugin pulling image from a private gcr

I am failing to pull images from a private gcr repo through helm jenkins on a private k8s repo. I am getting: rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have ...
0
votes
1answer
168 views

Can't hit redis using DNS name in multi-container pod on Kubernetes

Can anyone shed some light on why this might not work? I can access redis just fine using the pod's IP address, $ rdcli -h 10.152.183.65 10.152.183.65:6379> but when I try to use the DNS name, I ...
0
votes
0answers
21 views

Should I run a database instance for each application? [duplicate]

I have multiple applications that all run in the same Kubernetes cluster. All are different side projects. They all have their own MongoDB instance separated by a namespace. Is that a good practice or ...
0
votes
1answer
655 views

Installing ingress controller, services and pods on K8s via Ansible

I've 3 Debian-10 VMs on a bare metal Proxmox host in my network and installed via Ansible the roles geerlingguy.docker and geerlingguy.kubernetes with complete default settings. The kubeadm on the ...
1
vote
1answer
586 views

SSH connection to jenkins server

I have a absh script which connects and exexutes programs from my local to remote server and now this should be executed from jenkins build so for this jenkins is taking continous changes from git for ...
1
vote
1answer
77 views

Deploying a single-page web application with a java backend on kubernetes and haproxy

My team (full stack) team develops single-page web applications using react as a client and spring-boot java apps as back-end. We deploy the applications on kubernetes. However, we have troubles ...
2
votes
1answer
610 views

Create service per pod in statefulset

I have a statefulset app which can have any number of replicas. The pods produced should be able to communicate to external comptures. Those pods must act statefully when clients communicate with them....
2
votes
1answer
30 views

Control GKE CICD from a Jenkins in a lab with private network?

For a test purpose I need to use my locally provisioned Jenkins with Vagrant in order to connect to GKE and use pods to build. Is that possible, because from what I read K8s will need access to ...
3
votes
1answer
97 views

How can I expose Ingress service on 80 and 443 to the outer world

I used google compute engine to setup a Self Managed Kubernetes, While exposing ingress service via NodePort/LoadBalancer/EnternalIP, it is using default 30000 port range, But I want to expose it on ...
0
votes
1answer
48 views

How does Kubernetes terminate an instance after helm upgrade

I have a node.js application that is running on a Kubernetes cluster, I am using helm to manage it currently. I have ran into a bit of an issue, when the application starts it connects to a service ...
3
votes
0answers
139 views

How to deploy StatsD listening on UDP in kubernetes with external loadbalancer on AWS?

Our goal is to have StatsD deployed on k8s cluster running on AWS. Currently all existing applications using UDP to send StatsD metrics. As we understood from the kubernetes docs and tests we ...
1
vote
1answer
24 views

Monitoring K8s Pods in case of outage

K8s has self-healing builtin features, if a pod crash then it will be replaced with the new pod but its log is gone. So what is the best way to monitor K8s pods in case of outage?
1
vote
2answers
120 views

How do I list pod name/version across multiple clusters in Kubernetes

I have multiple clusters that I want to query and in each cluster I want to find and list the versions of the pods running in there. I've written a shell script that sets the namespace and then ...
3
votes
0answers
233 views

Confluent Kafka helm chart - broker pods not being able to communicate to Zookeper overtime

We are running confluent helm chart on a lot of clusters, we occasionally get brokers pods failing after some time and no self-heal after is following, the error in the broker usually is the following:...
2
votes
1answer
41 views

components in kubernetes master node?

I'm still a newbie learning the kubernetes and trying to clarify the details. I've read this document about the components and would like to know the structure of kubernetes master node: is it ...
2
votes
1answer
648 views

How do I delete a default AKS node pool when I get an error saying it's the "backend address pool of the basic load balancer"

I'm attempting to replace a node pool in Azure Kubernetes Service with a new pool (that has a larger VM size). The current pool was deployed using an ARM template that uses version 2019-06-01 of the ...

1
3 4
5
6 7
12