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
0answers
15 views

Error loading config file “/root/.kube/config”: no kind “Pod” is registered for version “v1”

My YAML file is : --- apiVersion: v1 kind: Pod metadata: name: test spec: containers: - name: mysql image: mysql imagePullPolicy: Always command: [...
0
votes
0answers
14 views

Overcommiting CPU Resources in Kubernetes

Let’s assume the following scenario: I have a cluster with 100 CPU cores and 100 Pods each having a request of 1 CPU. If I schedule the 101st Pod if a request of 1 CPU this will no longer be ...
2
votes
1answer
18 views

How to connect GCP Load balancer to Kubernetes cluster(single node cluster)

I'm creating a single node(name: node1) k8 cluster for demos. I have setup a nginx-ingress controller. service/volted-marmot-nginx-ingress-controller LoadBalancer 10.100.132.29 <pending&...
0
votes
0answers
6 views

Debugging Scheduling in Kubernetes [closed]

Is there a way to see why Kubernetes is scheduling certain pods on certain nodes? I would like more insight into how it makes the decisions it does for binpacking. Thanks.
2
votes
1answer
24 views

Is it reliable to use Docker's hash as a mean to determine image's version between different platform

Situation I have a docker image on a Linux box. I push it onto a docker registry (AWS ECR). Then, I use the image pushed onto that docker registry in a K8s pod. Question How do I know the docker ...
0
votes
0answers
8 views

Connecting to consul on kubernetes

I installed HashiCorp Consul on Kubernetes using the offical helm chart, currently have pod affinity set to null if that makes a difference - could not get it to start when having 3 servers on a 3 ...
0
votes
0answers
5 views

Unable to update new kops cluster node IG size

I created a Kuberentes cluster using Kops today and have done a bunch of work but would like to scale the nodes IG to a lower number for the night while the cluster is in development. I did kops edit ...
1
vote
1answer
12 views

Error while using AzureFile storage with CockroachDB

I'm getting an error trying to run CockroachDB (v19.2.1) on AKS. I'm able to spin up cluster using the default storage class. However, when I attempt to specify AzureFile storage, I get errors. ...
8
votes
7answers
2k views

Is there one website that contains all relevant DevOps news and gets updated on a daily basis?

I am looking for some DevOps news channel like https://nos.nl/teletekst#101 that shows the headlines of the Dutch news. I am aware of https://tweakers.net/ and github.com, but this does not contain ...
0
votes
0answers
10 views

Kops cluster masters unresponsive

I created a Kubernetes cluster using Kops about a week ago and was working fine for the first while, I then stopped using it for ~3 days and scaled the nodes down. I came back and now I am unable to ...
1
vote
1answer
21 views

Kubelet config file — > clusterDNS

clusterDNS: - "10.32.0.10" The above is a flag passed to the kubelet file, i dont know what it refers to clsuter DNS ? Is it refers to VPC CIDR or any subnet CIDR ?
0
votes
0answers
7 views

Route request to selected Knative function using Istio

I run K8S on Docker for Mac with the latest Knative 0.10 and Istio 1.4.0. I've created two services fn0.default.svc.cluster.local and fn1.default.svc.cluster.local. I can call each function from my ...
1
vote
1answer
22 views

Kubernetes api service unit file

i was going through the kubernetes the hard way(kelsey), i see in the API server unit file with a cluster ip range as --service-cluster-ip-range=10.32.0.0/24 \ is it a default ip range ? my VPC ...
1
vote
1answer
15 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 ! ...
1
vote
1answer
19 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
0answers
15 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
13 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 ...
0
votes
0answers
28 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 ...
0
votes
1answer
14 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
40 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
14 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
67 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 ...
1
vote
0answers
24 views

Getting client IP address in Istio

So I have a setup like this: AWS NLB (forwards) --> Istio --> Nginx pod Now, I'm trying to implement rate limiting at Istio layer. I followed this link. However, I can still request the API more ...
0
votes
1answer
90 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 ...
2
votes
1answer
31 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
24 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
134 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
20 views

GKE - GPU nvidia - cuda drivers dont work

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 ...
2
votes
1answer
37 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 ...
0
votes
0answers
4 views

How do I configure Istio with a Proxy for egress traffic?

I have the following setup. App -> Internet -> Nginx -> Kube Proxy -> Istio Ingress Gateway -> Gateway -> Virtual Service -> Service -> Pod I also have a Server accessible on a public IP. I ...
0
votes
0answers
12 views

NFS server and client are working but data is not on the server?

I have an inhouse Kubernetes cluster running on bare-metal and it consists of 5 nodes (1 master and 4 workers). I set up an NFS server on the master natively and launched the nfs-client in the K8s to ...
0
votes
0answers
12 views

Requirements for installing a Helm chart on a multi-cluster Kubernetes platform

I have an umbrella Helm chart containing different sub-charts (including a RabbitMQ-ha). I am able to easily install this helm chart on a k8s cluster but I want to know is it possible to just install ...
6
votes
2answers
47 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 ...
0
votes
0answers
30 views

Block all requests to a url except a particular IPs

I have a k8s cluster with nginx ingress controller. I want to block a POST request to a AP endpoint (/api/v1/payment) except for 2 Specific IPs. Is there a way to do this by changing the ingress ...
1
vote
1answer
24 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-...
1
vote
1answer
26 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 ...
1
vote
0answers
18 views

Kubernetes ConfigMap strategies

I'm wondering if there's some best practices to follow with regards to container configuration management and kubernetes ConfigMaps. Assuming configuration for apps (not necessarily related to each ...
2
votes
1answer
29 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 ...
0
votes
0answers
16 views

What is the right way to manage app configuration for java spring apps running in AWS and kubernetes?

I'm facing several problems related to application configurations Public and Private API almost every service public and private API. Public API is available from external network and covered with ...
3
votes
1answer
43 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 ...
0
votes
0answers
17 views

NFS-Client Provisioner stuck at ContainerCreating

I followed this(https://matthewpalmer.net/kubernetes-app-developer/articles/kubernetes-volumes-example-nfs-persistent-volume.html) link and installed an NFS server in my cluster with blow yaml file: ...
3
votes
0answers
19 views

Keeping Pods Balanced Across Nodes in AKS

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
35 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
29 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
0answers
6 views

Kubernetes node dropping packets with source ip outside its network

I have a Kubernetes cluster set up with kubespray, with Flannel network and MetalLB installed. I set up my nginx-ingress-controller service to use NodePort, and from my laptop on the same network, ...
0
votes
0answers
13 views

How can I verify my Kubernetes Secret has been updated to the new value?

I am working to update the TLS Certificates across numerous deployments that I inherited. Each deployment consumes a series of shared secrets, including TLS Certificates. I have SSL/TLS Certs ...
0
votes
1answer
19 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
15 views

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

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 ...
0
votes
0answers
30 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
84 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 ...