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
145 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:...
0
votes
0answers
15 views

Why does empty node show as utilising 25% RAM in top nodes?

I have a node in AKS that runs absolutely nothing, is cordoned and drained. However, when I do kubectl top nodes it shows as using 25% RAM. This is already on top of RAM that the VM has but is not ...
1
vote
1answer
37 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
81 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
31 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 ...
2
votes
0answers
29 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
0answers
15 views

Can I deploy Couchbase docker dependency in GKE?

I have a simple spring boot application which is wrapped into a Docker image along with its dependencies such as "Couchbase". I have pushed the docker image successfully to google cloud ...
0
votes
0answers
35 views

How should Kubernetes worker nodes get the correct /run/flannel/subnet.env file?

I am using Kubectl 1.20.2 on the client side and 1.18.9 on the server side. I have deployed EKS, and I have created a cluster. The pods never become ready unless I manually log into the worker nodes ...
0
votes
0answers
100 views

Jenkins agent fails to connect to docker socket in latest helm chart

Preface I have been using older version of Jenkins on Kubernetes with the Kubernetes plug spinning up Jenkins Agents deployed by the official Helm charts. I've had no issues with them. In fact I ...
0
votes
1answer
21 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 ...
0
votes
0answers
42 views

How do I install Istio 1.8 using Helm with custom profile?

I am looking at the documentation to install Istio using helm: https://istio.io/latest/docs/setup/install/helm/ I want to use a custom profile that I have a yaml for. However, on that page I do not ...
1
vote
1answer
84 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
28 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
42 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
41 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
0answers
18 views

EKS dashboard without token

The requirement is to access my EKS dashboard without any token. I have setup the EKS dashboard and i am able to access it via a web browser now i am trying to access the dashboard without the token ...
0
votes
1answer
21 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
0answers
18 views

JGroups Kubernetes Discovery Protocol Vulnerabilities - CVE

I am using KUBE_PING (jgroups-kubernetes-1.0.13.Final.jar) as the discovery protocol for my application running under OpenShift-4.5 (Kubernetes-version 1.18.3). When I ran a vulnerability report ...
0
votes
1answer
27 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 ...
0
votes
0answers
23 views

Hen-egg problem when using Rancher to generate K8S Cluster?

Question: I tried to answer this on my own, but couldn't find a definitive answer. Before investing more time in getting Rancher / my setup running, I would need directives. Suppose I want to use ...
1
vote
1answer
54 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
61 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
41 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 ...
3
votes
1answer
71 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-...
0
votes
0answers
40 views

Kubernetes Cluster “healthz check failed” on macos

I cloned the kubernetes/kubernetes github repository and followed the given tasks to run the kubernetes cluster locally like mkdir -p $GOPATH/src/k8s.io cd $GOPATH/src/k8s.io git clone https://github....
2
votes
1answer
40 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
0answers
25 views

Schedule K8s pods to multiple AZ evenly in EKS 1.18

I have a requirement to distribute pods of a given deployment across 3 AZ. We are using HPA with 3 min and max 5 setup. The worker nodes are 12 initially in EKS cluster with maximum of 15. How can I ...
0
votes
1answer
27 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
0answers
137 views

Multiple roleRef in RoleBinding or ClusterRoleBinding

Does K8S RoleBinding or ClusterRoleBidning support reference using roleRef multiple roles? or do I have to create a binding for each role I want to give the user or group? Something like this: ...
0
votes
1answer
26 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 ...
0
votes
0answers
14 views

How to troubleshoot Pod-to-Pod communication cross nodes?

Prerequisite: I use VirtualBox to setup 2 VMs. VirtualBox version is 6.1.16 r140961 (Qt5.6.2). The OS is CentOS-7(CentOS-7-x86_64-Minimal-2003.iso). One VM as kubernetes master node, named k8s-...
1
vote
2answers
394 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
25 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
0
votes
0answers
8 views

Best pv storage solution for on-premise k8s cluster

I have on-premise cluster with 3 worker nodes, I have confluent kafka installed and I need it for 3 namespaces, what is the best storage solution I can use to manage the persistence here, I am trying ...
0
votes
1answer
189 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 ...
1
vote
0answers
226 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
21 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
138 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
20 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 ...
0
votes
0answers
15 views

Kubernetes monitoring with Kibana

I want to monitor my Kubernetes cluster with Kibana dashboard and have installed metricbeats and kube-state-metrics. The question is which critical metrics should I monitor first and is there some ...
0
votes
0answers
7 views

Generating C# client from Kubernetes for CustomResourceDefinitions without GO

I am working on a home-made C#.NET kubernetes dashboard admin. I want to implement custom resources in this project but would like to avoid writing the CustomResourceDefinition models in C# by hand. I'...
2
votes
1answer
485 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
30 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
44 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
35 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 ...
1
vote
0answers
64 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
69 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
32 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
0answers
29 views

GoLang API support for creating kubernetes cluster setup

We would like to automate the installation & configuration of below components in kubernetes control plane: controller manager cloud controller manager etcd kube API server kube scheduler We are ...
0
votes
1answer
33 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 ...

1
2
3 4 5
10