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
0answers
10 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 ...
1
vote
1answer
27 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 ...
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 ...
0
votes
1answer
20 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
3 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
11 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
2answers
26 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
2answers
1k views

How to copy a file locally to remote pod before it starts?

# Copy /tmp/foo local file to /tmp/bar in a remote pod in namespace <some-namespace> kubectl cp /tmp/foo <some-namespace>/<some-pod>:/tmp/bar works, but then a pod should be ...
2
votes
2answers
80 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
38 views

Easiest way to manage an elasticsearch cluster in GCP?

I'm trying to create my own Elasticsearch cluster to use for security analytics. I'm familiar with the function and setup of a single instance deployment, but I'm having trouble figuring out the ...
0
votes
1answer
13 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, ...
3
votes
0answers
13 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
28 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 ...
0
votes
1answer
12 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
0answers
8 views

Are there any multi-host container orchestration tools which allow USB device mapping? Or any production grade solutions/hacks?

Docker provides a --device flag for individual containers to map device ports (USB devices for example; ttyUSB0, ttyACM0) at run-time. This feature is great but seems to disappear when we abstract ...
1
vote
1answer
83 views

Interacting with a Trident container (NetApp) via CLI within a Openshift/Kubernetes cluster?

Background We're currently using NetApps Trident PV (Persistent Volume) orchestrator to dynamically create volumes on our NetApp ONTAP clusters for Pods running within our Openshift/Kubernetes ...
0
votes
1answer
5k views

Pod's state “pod has unbound immediate PersistentVolumeClaims” when deploy Jenkins with Helm chart

I try to deploy Jenkins in local Kubernetes cluster with Helm from repo stable/jenkins:lts. But after deployment I get pod which has status "pod has unbound immediate PersistentVolumeClaims". PVC has ...
0
votes
0answers
119 views

Jenkins Kubernetes Rancher, how to do a CI with these tools?

I'm new with Rancher and Kubernetes and I have some knowledge of Jenkins. The point is that I don't know how to do a continuous integration of my apps with Rancher and Kubernetes. Is good to use ...
0
votes
1answer
22 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
39 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 ...
5
votes
2answers
625 views

Deploying a Kubernetes cluster for production on multiple clouds

I want to install a highly available kubernetes cluster (multiple master nodes) on a public cloud (AWS, Azure, GCP and maybe others). I'm looking for a non-vendor specific option to do it. I'm aware ...
2
votes
2answers
54 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
1answer
23 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 ...
0
votes
1answer
6 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 ...
0
votes
1answer
34 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 ...
4
votes
2answers
1k views

Copy multiple files using * wildcard from kubernetes container

I have several files named out1, out2, ... in my Kubernetes container. I want to copy them to my local computer. I am using: $ kubectl cp pod:/path/out* . But I am getting an error: tar: Removing ...
0
votes
0answers
12 views

Scheduler for Machine Learning tasks

I have an application offering services where some of them depend on various machine learning/image classification libraries (PyTorch, Tensorflow and Keras). I'm looking for an architecture or ...
5
votes
1answer
920 views

Kubernets docker registry behind nginx-ingress

I try to setup docker-registry in Kubernetes cluster behind the nginx-ingress controller. The issue is, when I try to push the image into private registry, it tells me: Get https://registry.local/...
0
votes
1answer
83 views

How to run/deploy devilbox (Docker image) docker-compose on GCP without a Dockerfile?

Devilbox comes with a docker-compose file to run a docker container: https://github.com/cytopia/devilbox However, on the GCP Kubernetes Engine it is only possible to start up a new container via a ...
0
votes
2answers
1k views

helm - cannot get resource “namespaces” in API group

I installed Kubernetes, helm on the Ubuntu 16.04.6 Box, I want to deploy kubernetes-dashboard using helm but getting below error while installing it $ helm install stable/kubernetes-dashboard --name ...
1
vote
2answers
31 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 ...
0
votes
1answer
31 views

How to choose appropriate number of replica sets for kubernetes

I have just started learning about kubernetes and its concepts, so sorry if this is a lame question, however, I cannot seem to find the answer anywhere. I understand that a node is a VM or a physical ...
0
votes
0answers
10 views

Retriving the pods name , the associated images and a label attribute

I know I can get the pods using: kubectl get pods -n "namespace", and also to retrieve a json output I'm trying to expand to get the pods name, the associated images, and a label attribute called '...
3
votes
1answer
141 views

Process auditing in containers

I've read numerous articles on this going back to 2013, but what I wasn't able to ascertain is whether a reliable method has yet been devised for auditing processes inside a container. This question ...
0
votes
0answers
2 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
0answers
6 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 ...
1
vote
1answer
36 views

Container runtime Vs orchestrator

The terms container runtime and orchestrator always confuse me. Can someone please put these in simple terms? Thanks
0
votes
0answers
10 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 ...
3
votes
2answers
2k views

Helm install or upgrade release failed on Kubernetes cluster: the server could not find the requested resource or UPGRADE FAILED: no deployed releases

Using helm for deploying chart on my Kubernetes cluster, since one day, I can't deploy a new one or upgrading one existed. Indeed, each time I am using helm I have an error message telling me that it ...
0
votes
0answers
12 views

Deploying Jupyterlab Helm with no Exernal IP in load balancer

I am new to k8s, so forgive my lack of understanding. I recently deployed openvpn on a k8s cluster, here and wanted to deploy jupyterhub on the cluster as well. I followed this guide here: https://...
1
vote
1answer
180 views

Keeping graphs of terminated Kubernetes pods in Prometheus/Grafana

I love using Prometheus/Grafana to monitor and tune resource usage on my Kubernetes clusters. When pods are terminated, however, the graphs are disposed of it seems. I am looking for a solution to ...
0
votes
2answers
32 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
28 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 ...
0
votes
0answers
23 views

How do I install kubeadm on RHEL 8.x?

I am using RHEL 8.x in AWS. I cannot install kubeadm because when I try "sudo yum -y install kubeadm" I get No match for argument: kubeadm Error: Unable to find a match The directions I found ...
0
votes
0answers
13 views

GKE ingress multipath not working

I would like to use a ingress to expose two service on Google Kubernetes Engine. This is working apiVersion: extensions/v1beta1 kind: Ingress metadata: name: api-ingress annotations: ...
0
votes
0answers
8 views

Recommended resource configuration for Rails on Kubernetes

I'm running a Rails app on Kubernetes. I'm good on the Rails side of things but very new to Kubernetes. Rails is memory heavy (2GB minimum), but CPU light (5% off peak to 25% in peak, with occasional ...
1
vote
1answer
1k views

Keep getting permissions error gcloud.container.clusters.get-credentials

I am trying to integrate CircleCi with gcloud Kubernetes engine. I created a service account with Kubernetes Engine Developer and Storage Admin roles. Created CircleCi yaml file and configured CI. ...
0
votes
2answers
50 views

Pod & pod's health

Few questions here: What does the concept of object Pod satisfy? A paused container containing the namespace for the actual app area (s) will be added later and use that namespace. So what activities ...
0
votes
2answers
37 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
2answers
21 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 ...