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
2
votes
1answer
45 views

Weavenet for kubernetes is showing 0/2

I'm very new to kubernetes. I thought i would first get a basic by making hands dirty by "the hard way" I followed the Linux academy, but at the networking side using weave net i am now stuck ! ...
2
votes
1answer
187 views

How do you reuse a specific volume in Kubernetes?

Let's say that you wanted to create a Jenkins Deployment. As Jenkins uses a local XML file for configuration and state, you would want to create a PersistentVolume so that your data could be saved ...
0
votes
2answers
31 views

Configure Kubernetes with docker container on Ubuntu VM

I am using the YAML file to deploy the container on Kubernetes with some replication factor on a hosted machine. YAML File apiVersion: apps/v1 kind: Deployment metadata: name: mojo-deployment ...
1
vote
1answer
35 views

Issue connecting to ECR using Spinnaker on Kubernetes

I installed Spinnaker onto a Kubernetes cluster via Helm. I have tried to add the ECR registry as per the docs and so far not working. I found that the aws cli is missing even though in issue 2394 it ...
1
vote
2answers
1k views

Unable to get Helm to work with ECR

I'm using Helm v3 with AWS ECR on a Kubernetes cluster that was creating using Kops. I have checked and the role kops assigned to the nodes does have ECR permissions. When I deploy my helm chart I ...
1
vote
2answers
41 views

Gather resource usage by process in a kubernetes cluster

I am searching for a tool similar to Prometheus + Grafana that gather and record resource usage especially memory usage by process-ID or process-name. We have two components that are running ...
1
vote
1answer
706 views

Kubernetes - Deploying older version of app in new API

I'm working with yaml files built for an older version of the API apiVersion: extensions/v1beta1 I tried changing to apiVersion: apps/v1 But couldn't figure out the correct "selector" formatting....
0
votes
1answer
21 views

Will data contained withing Persistent Volume survive cluster deletion?

I have a Kubernetes cluster based on 3 hosts managed via Rancher I've created Persistent Volume on the first host and use it via a claim by a PostgreSQL pod. My app is generating and storing there ...
2
votes
3answers
101 views

How to get the next friendly name that Docker will assign to the container it will make?

Background When you start a Docker container as in the following example: $ docker run -ti ubuntu:latest Docker docker automatically assigns the container an ID and a friendly name. Docker ...
0
votes
2answers
357 views

Kubernetes installation, configuration and verification in a local environment

I am a regular user of Docker since a few years and I have the Docker service installed and running locally on my Win10Pro host. It works well. Now I want to get started with Kubernetes so I used the ...
3
votes
1answer
372 views

What's the relationship between ContainerD and Docker?

I'm aware that Kubernetes uses containerd internally and that containerd is part of Docker. Does that mean that Kubernetes only uses certain parts of Docker to provide orchestration of containers? ...
2
votes
1answer
46 views

How to enforce policies for manifests in Kubernetes?

I have built a self-service platform based on Kubernetes, where we create namespaces for each team and allow them to 'do whatever they want within the namespace' (we set resource limits so no one can ...
2
votes
1answer
2k views

EKS node cannot pull docker image from ECR: “no basic auth credentials”

Using the eksctl tool, I created an EKS cluster with 5 nodes. My application's docker images are stored in ECR registries in the same region. I deployed my kubernetes cluster and everything has been ...
2
votes
1answer
311 views

GKE - GPU nvidia - cuda drivers dont work [closed]

I have setup a kubernetes node with a Nvidia Tesla k80 and followed this tutorial to try to run a pytorch docker image with Nvidia drivers and CUDA drivers working. I have managed to install the ...
5
votes
1answer
2k views

What are the best practices for anti-virus / anti-malware when using containers?

One of the SOC 2 controls is apparently around ensuring antivirus/anti-spam/anti-malware is running on production servers. I've been googling to see if there are any recommendation/best practices for ...
6
votes
2answers
63 views

How much memory/cpu to allocate per pod?

This is a question that's been bothering us quite a while. How can you determine how much to allocate per pod? What if I don't know the program, maybe it needs a lot of memory at peak times. What ...
1
vote
1answer
90 views

kubernetes allocating pods with the wrong IP

I'm running kubernetes with the supposed pod network cidr of 10.244.0.0/16. Everything seems to agree with that: # history | grep kubeadm kubeadm init --control-plane-endpoint "guide:6443" --upload-...
2
votes
1answer
41 views

What is the difference between EKS and EC2 installed kubernets?

I'm newbie in AWS usage. I don't understand the difference between EKS and EC2 installed kubernets? Amazon EKS makes it easy for you to run Kubernetes on AWS without needing to install and ...
2
votes
1answer
251 views

service-to-pod communication is broken in kubernetes

I have an in house 5 node cluster running on bare-metal and I am using Calico. The cluster was working for 22 days but suddenly it stopped working. After investigating the problem I found out that the ...
5
votes
2answers
1k views

How can I add an additional IP / hostname to my Kubernetes certificate?

I've recently followed this guide to set up Kubernetes on my local Raspberry Pi cluster. I can access it fine on my LAN; however I'd like to be able to access it remotely as well. I've already set up ...
3
votes
0answers
57 views

Keeping Pods Balanced Across Nodes in AKS [closed]

We had a fun issue yesterday and today where after a restart of some nodes, we ended up with more or less every pod on one server. After some research, it seems like most of the solutions for this ...
2
votes
1answer
41 views

Questions regarding Kubernetes storage

I have two questions regarding K8s storage: Can I set up an NFS server on one of the worker nodes in a bare-metal cluster? I am running different versions of our application which consists of ...
1
vote
1answer
68 views

How to bring a docker data container to Kubernetes?

I have an application that relies on 4 docker data containers for the data it needs to run some tests. At the moment I have their docker-compose file and their images but I don't have access to the ...
0
votes
1answer
22 views

How can i check if all CustomResourceDefinitions have been created properly?

I have installed with success cert-manager following the steps indicated here. Now, i am doing an script that checks if every steps are done properly, so my question is: How can i check if all the ...
3
votes
0answers
18 views

How do I disable the effective 'time limit' on editing Kubernetes deployments? [closed]

If I edit a Kubernetes deployment (e.g. kubectl edit deployment <name> or using the Web UI), and wait too long before saving my changes and exiting, the deployment file will have changed while I ...
1
vote
2answers
76 views

Run docker applications within a kubernetes cluster

As part of my architecture, I want to create a deployment/service on my kubernetes cluster which reads message queues and open dockerized subscribers and then subsequently relay message to the ...
2
votes
2answers
95 views

Cost-efficient hosting for CI/CD?

I'm paying over $300/month for Kubernetes to have CI/CD in GitLab. And it only covers web apps, Android apps and deployment to Google Cloud. Plus some staging environments, that do not require many ...
1
vote
1answer
28 views

Kubernetes and Jenkins

I started building CI/CD pipeline using two Kubernetes clusters and one Jenkins. Two clusters are totally isolated as one is in the test environment and other in production. After searching from many ...
0
votes
2answers
175 views

Use a pod template file in a Deployment

I've been looking at Deployments descriptions in Kubernetes. In the tutorials I've found, the definition of the replicated pods are always a copy-paste of a pod template file. Is it possible to ...
1
vote
1answer
96 views

Does Kubernetes Ingress use NodePort?

When using a Kubernetes LoadBalancer or Ingress, is the normal NodePort used as the underlying connection point? I.e. does the external-to-kubernetes load balancer implementation (used even when ...
1
vote
1answer
46 views

Kubernetes expose an app via a DNS name in minicube

I have a Minikube installation in which I created a simple hello-world deployment like this: kubectl create deployment hello-node \ --image=gcr.io/hello-minikube-zero-install/hello-node I ...
1
vote
1answer
61 views

Kubernetes nginx ingress controller - one pr. environment?

I have a kubernetes cluster in Azure. In this i have three namespaces: development staging production I have installed nginx ingress controller into its own namespace, ingress-nginx. I am kind of ...
3
votes
2answers
125 views

On-Prem and Cloud Deployments

If I have a mix of cloud and "on-prem" (across different networks) systems to deploy to is there a common tool, technique, or software available? I've used Kubernetes for cloud deployments, but am ...
1
vote
2answers
940 views

docker build throws UnknownHostException with jenkins dind slave + kubernetes plugin

So Jenkins is installed inside the cluster with this official helm chart. And this is my installed plugins as per helm release values: installPlugins: - kubernetes:1.18.1 - workflow-job:2.33 ...
1
vote
1answer
106 views

What's the way to deploy a resource once on a helm chart that is deployed multiple times?

in my use case i've got a helm chart for my application. One of the resources is actually a Grafana Dashboard for the application. This dashboard actually monitors all instances of the application, ...
0
votes
1answer
53 views

jenkins-x returns error 1 when I try to create a cluster

I'm following this tutorial. I'm running the jenkins-x cli on a aws ec2 instance where I installed kubenetes and jx. I get to the part where I run the command jx create cluster eks --cluster-name=...
0
votes
1answer
21 views

kubernetes How to test if an operator has already been applied

How can I check if an operator has not changed, and then not apply it? usually, I would apply an operator like this kubectl apply -f openebs.yml In an automated script, I would like to test if ...
5
votes
1answer
255 views

Connect external Jenkins Master to GKE with Kubernetes plugin

I find the documentation at https://github.com/jenkinsci/kubernetes-plugin quite unclear when it comes to step by step configuration of external Jenkins master. What are the exact steps that need to ...
1
vote
1answer
56 views

How do I access the web UI for Kubernetes clustered that were created via EKS?

I need a URL and the web UI log in credentials for Kubernetes. I created Kubernetes clusters in AWS with EKS. I have API endpoint URLs for the clusters based on what I see in the EKS section of the ...
0
votes
2answers
242 views

Kubernetes - How to show all service accounts

How do I show all service accounts In Kubernetes? I have tried kubectl get --all-namespaces all. It does not show service accounts. How can I use kubectl to list all service accounts?
1
vote
2answers
67 views

Jenkins pipeline running using containers on an orchestration platform

I have a specific implementation of jenkins on docker. My requirement is to start slave containers on demand and only when they are needed and then stop them after the pipeline has ran. I have the ...
1
vote
2answers
49 views

initContainer with huge size software like magento2

As a practice I have pods with these 2 containers: php-fpm nginx The image of my project is called testimage. The solution uses the 'testimage' as initContainer and then copies the all folders and ...
1
vote
2answers
29 views

How do I get more control over the NodePorts my Service assigns to my Deployment?

I have a Deployment with 5 replicas. All have ssh and telnet. They should not be load balanced. I would like each to select from a predictable list of 5. Here is my Deployment apiVersion: apps/v1 ...
1
vote
1answer
118 views

Container runtime Vs orchestrator

The terms container runtime and orchestrator always confuse me. Can someone please put these in simple terms? Thanks
1
vote
0answers
37 views

Google cloud container running 40x slower then on aws [closed]

i have a flask api tunning a pytorch predict inside a kubernetes cluster. I deployed it on AWS and got good results. I have tried on GKE and had good results, but when im deploying my pods on a high ...
1
vote
0answers
116 views

Persistent storageClass for GitLab on Kubernetes [closed]

Using the official helm chart and documentation, I want to deploy GitLab to Kubernetes. The storage guide shows how to store persistent data and also offers example Helm values. Sadly this doesn't ...
2
votes
0answers
710 views

Rancher Pipeline: How to pass environment variables from one stage to another [closed]

Currently I am trying to move our existing build infrastructure to Rancher with its CICD pipelines. My main question is: Is it possible to pass environment variables from one stage to another? Our ...
0
votes
1answer
271 views

kube-controller-manager unable to communicate with etcd

1. What kops version are you running? The command kops version, will display this information. Version 1.12.2 2. What Kubernetes version are you running? kubectl version will print the version if a ...
1
vote
2answers
46 views

Is a ReplicaSet pulling a fresh image at every spin up?

I inherited an app without a ton of handoff information, and there's a Kubernetes setup with ReplicaSets and KOPS (and based on Docker containers). I am pretty new to Kubernetes Whenever one of the ...
1
vote
1answer
27 views

Why do many pods fail to communicate with the master

I have lots of unexplained errors in kubernetes. Often I see errors in logs of pods with the following: Get https://10.152.183.1:443/api/v1/namespaces/{REDACTED}: x509: certificate is valid for 192....

1
4 5
6
7 8
10