Questions tagged [kubernetes]

1

votes
1

answer
1.1k

Views

Does NodeJS respect Docker virtualization and resource limits?

It is known that some applications aren't aware of Linux kernel isolation and virtualization features such as cgroups. This includes system utils like top, free and ps, but also platforms like Java. I've recently read an article which suggests that when running JVMs in Kubernetes, you should enforce...
Kir
1

votes
1

answer
158

Views

Where are the kubernetes 1.8 etcd configuration files?

Questions Where are the configuration files of etcd which kubeadm init installs? Background Followed Using kubeadm to Create a Cluster and noticed there was no step to manually install etcd, hence kubeadm init should be installing it. Run below to try to see which files but could not find the clue....
mon
1

votes
1

answer
565

Views

What is the signal sent to the process running in the container when k8s liveness probe fails? KILL or TERM

I have a use case to gracefully terminate the container where i have a script to kill the process gracefully from within the container by using the command 'kill PID'.( Which will send the TERM signal ) But I have liveness probe configured as well. Currently liveness probe is configured to probe at...
Beatrix Kiddo
1

votes
3

answer
639

Views

Issue while using the kubernetes annotations

I've read documentation of kubernetes annotations. But I couldn't find basic example about using this annotations. For Example; I have a deployment yaml like below: apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: test_value: 'test' name: nginx-deployment labels: app: nginx sp...
user8078899
1

votes
2

answer
1k

Views

Create GCR secret error: exactly one NAME is required, got 26

I am trying to create a docker-registry secrete for GCR, but am getting a really cryptic error message. This is the kubectl cmd that I am running: kubectl create secret docker-registry gcrsecret --docker-username=_json_key --docker-password=”$(cat wk-test-1-b3c9659d9a07.json)” --docker-server=ht...
Ryan Salmons
1

votes
1

answer
211

Views

Pop to Pod communication for pods within the same Deployment

I have a Kubernetes deployment that has 3 replicas. It starts 3 pods which are distributed across a given cluster. I would like to know how to reliably get one pod to contact another pod within the same ReplicaSet. The deployment above is already wrapped up in a Kubernetes Service. But Services do n...
abhink
1

votes
1

answer
3.6k

Views

How do I fix Kubernetes NodeUnderDiskPressure errors?

After creating a simple hello world deployment, my pod status shows as 'PENDING'. When I run kubectl describe pod on the pod, I get the following: Events: Type Reason Age From Message ---- ------ ---- ---- -------...
Imran
1

votes
1

answer
120

Views

Does kubectl exec bypass the container's defined entrypoint?

I have an entrypoint defined in my container image, and it runs before the args specified in my deployment manifest, as it should. But when I execute a command on that container using kubectl exec, it seems to bypass the container entrypoint. Is this the expected behavior? Can I somehow force it...
Daiku
1

votes
1

answer
941

Views

How do I see what custom values were used in a Helm release?

When I use helm install to install a chart into a Kubernetes cluster, I can pass custom values to the command to configure the release. helm must store them somewhere, because I can later rollback to them. However, I cannot find a way to view the values in the deployed version or the previous one....
Old Pro
1

votes
1

answer
63

Views

Package.json file not found when using kubernetes

I trying to setup kubernetes on my local environment using docker. I've built the necessary docker image with this Dockerfile: FROM node:9.11.1 WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN npm install COPY . /usr/src/app/ EXPOSE 3002 CMD [ 'npm', 'start' ] I then pushed this image to my...
Christofer Johnson
1

votes
1

answer
166

Views

Is there any issues with Force Deletion pods in kubernetes

I am trying to fully purge my kube env, but sometimes when I run helm delete --purge some pods don't delete (sometimes). Is there any issues using kubectl delete pods --grace-period=0 --force Or will using this command over and over lead to any issues on my cluster or nodes?
user3292394
1

votes
2

answer
346

Views

VMWare Workstation Ubuntu 18.04 - Minikube: Error creating VM:

I'm attempting to run Minikube in a VMWare Workstation guest, running Ubuntu 18.04. kubectl version results in: Client Version: version.Info{Major:'1', Minor:'12', GitVersion:'v1.12.0', GitCommit:'0ed33881dc4355495f623c6f22e7dd0b7632b7c0', GitTreeState:'clean', BuildDate:'2018-09-27T17:05:32Z', GoVe...
cbll
1

votes
1

answer
514

Views

Kubernetes - Create two containers in one pod

I'm developing an application that consists of two containers. I want to deploy them in Kubernetes into one Pod, since I want the two services to be behind one IP address. However, I'm having a hard time trying to connect the kubernetes Services with the containers. How could I write a deployment.ym...
UrmLmn
1

votes
3

answer
871

Views

How to access the service deployed on one pod via another pod in Kubernetes?

Can anybody let me know how can we access the service deployed on one pod via another pod in a kubernetes cluster? Example: There is a nginx service which is deployed on Node1 (having pod name as nginx-12345) and another service which is deployed on Node2 (having pod name as service-23456). Now if '...
Aditya Datta
1

votes
3

answer
598

Views

Kubernetes, VolumeMounts a file, not a directory

I am going to use K8S to orchestrate docker containers. In k8s, I need to copy a file from host directory (/configs/nginx/cas-server.conf) to pod container directory(/etc/nginx/nginx.conf), but the current k8s only allows mount a directory, not to mount/copy a file. How to solve this problem? Belo...
user84592
1

votes
2

answer
156

Views

Insufficient cpu in Kubernetes multi node cluster

I am trying to deploy an application into my Kubernetes cluster. It is a multi node cluster. There are 3 m4.2xlrge aws instances. m4.2xlarge vCPU :- 8 Memory :- 32 Now, in my deployment.yaml file for that service, I have mentioned limit: cpu: 11 request: cpu: 11 It is giving error, insufficient cpu...
Dinesh Ahuja
1

votes
2

answer
185

Views

How to use Helm Jenkins Values 'CredentialsXmlSecret'

I'm trying to deploy a Jenkins using helm. I saw that some values are set with an XML. However, I can't do it the same way with the Master.CredentialsXmlSecret field. I have tried: CredentialsXmlSecret: jenkins-credentials SecretsFilesSecret: jenkins-credentials: |- xml from credentials.xml here But...
Pau Campaña Soler
1

votes
2

answer
455

Views

kubernetes not creating the ELB for ingress-nginx controller

I am trying to set up ingress-nginx-controller with type as LoadBalancer using this guide for the configuration. Couple of issues I'm observing - issue#1) It does not create and deploy a ELB onto the AWS. issue#2) The External-IP status is showing as pending for ever. $ kubectl get services -...
tanmoy
1

votes
1

answer
303

Views

Bind different Persistent Volume for each replica in a Kubernetes Deployment

I am using a PVC with ReadWriteOnce access mode, which is used by a logstash Deployment which will run a stateful application and use this PVC.Each pod in the deployment will try to bind to the same persistent volume claim. In case of replicas > 1, it will fail (as it supports ReadWriteOnce, only th...
Abhishek Jaisingh
1

votes
2

answer
258

Views

Can't create Policy: 'no matches for kind “Policy”'

I am following the instructions here on how to create a policy to audit actions in Kubernetes. When I run the following YAML file: kubectl apply -f -
E235
1

votes
2

answer
235

Views

Can we see transfer progress with kubectl cp?

Is it possible to know the progress of file transfer with kubectl cp for Google Cloud?
akshitsethi
1

votes
2

answer
50

Views

Can I set a default namespace?

Can I set the default namespace? That is: $ kubectl get pods -n NAMESPACE It saves me having to type it in each time especially when I'm on the one namespace for most of the day.
mac
1

votes
2

answer
144

Views

curl: (7) Failed to connect to 192.168.99.100 port 31591: Connection refused

These are my pods hello-kubernetes-5569fb7d8f-4rkhs 0/1 ImagePullBackOff 0 5d2h hello-minikube-5857d96c67-44kfg 1/1 Running 1 5d2h hello-minikube2 1/1 Running 0 3m24s hello-minikube2-74654c8f6f-trrrw 1/1...
Richard Rublev
1

votes
2

answer
52

Views

Is it possible to run kubeadm init command to ignore generating certificates?

When running kubeadm init command, by default the required certificates are generated under /etc/kubernetes/pki location. Is there any option to run kubeadm init command to ignore generating certificates?
Sunil Gajula
1

votes
1

answer
42

Views

Fake liveness/readiness probe in kubernetes

Is it possible to fake a container to always be ready/live in kubernetes so that kubernetes thinks that the container is live and doesn't try to kill/recreate the container? I am looking for a quick and hacky solution, preferably.
user674669
1

votes
2

answer
66

Views

Cluster Autoscaler not scaling up with nodeSelector

I have a Kubernetes cluster running various apps with different machine types (ie. cpu-heavy, gpu, ram-heavy) and installed cluster-autoscaler (CA) to manage the Auto Scaling Groups (ASG) using auto-discovery. Kubernetes version: EKS 1.11 Cluster Autoscaler: v1.13.2 I have configured my ASGs such th...
Frank Yucheng Gu
1

votes
2

answer
41

Views

Load Balancing an application in Kubernetes

Lets say that I have two deployments which contain two instances of a backend application. (Instead of having one deployment with multiple replicas, as they need to be configured differently). How would you guys go about load balancing between the two? The classic approach would be to set up HAProxy...
Neekoy
1

votes
2

answer
79

Views

How to expose a headless service for a StatefulSet cassandra cluster externally in Kubernetes

I'm setting up multi node cassandra cluster in kubernetes (Azure AKS),Since this a headless service with statefull set pods without having a external IP. How can i connect my spark application with cassandra which is in kubernetes cluster We have tried with cluster ip,ingress ip also but only single...
suraj1287
1

votes
2

answer
72

Views

Trying to create pod with init container

Iam trying to play with init pods. I want to use init container to create file and default container to check if file exist and sleep for a while my yaml: apiVersion: v1 kind: Pod metadata: name: init-test-pod spec: containers: - name: myapp-container image: alpine command: ['sh', '-c', 'if [ -e /wo...
golang
1

votes
1

answer
37

Views

How to use TcpDiscoveryKubernetesIpFinder in Apache Ignite .Net

I am trying to deploy an Apache Ignite cluster in Kubernetes. The documentation suggests using TcpDiscoveryKubernetesIpFinder to facilitate the Ignite node discovery in a Kubernetes environment. However, I could not find this class in Apache Ignite for .Net. Is it migrated to .Net at all? If not, ho...
Alex Avrutin
1

votes
1

answer
56

Views

Dynamic namespace variable in helm chart

I work with four teams that are using exactly the same environments that are set up in kubernetes namespaces. I have created helm charts to install those environments. Everything works fine but I have to create ingresses by hand because of the following format in hostname: .. The thing is I would li...
Thomas
1

votes
3

answer
42

Views

Is there a way to do a load balancing between pod in multiple nodes?

I have a kubernetes cluster deployed with rke witch is composed of 3 nodes in 3 different servers and in those server there is 1 pod which is running yatsukino/healthereum which is a personal modification of ethereum/client-go:stable . The problem is that I'm not understanding how to add an externa...
yatsukino
1

votes
4

answer
155

Views

[“Shared connection closed.”], “stdout”: "sudo: a password is required\r\n while using ansible playbook

I am trying to run one ansible playbook for deploying kubernetes cluster using the tool kubespray on ubuntu 16.04 OS. I have one base machine which is installed with ansible and cloned kubespray git repository. And one master and two worker nodes containing in cluster. My host (Updated) file like t...
Jacob
1

votes
4

answer
61

Views

How to expose service outside k8s cluster?

I have run a Hello World application using the below command. kubectl run hello-world --replicas=2 --labels='run=load-balancer-example' --image=gcr.io/google-samples/node-hello:1.0 --port=8080 Created a service as below kubectl expose deployment hello-world --type=NodePort --name=example-service Th...
Sunil Gajula
1

votes
2

answer
40

Views

How to Horizontal Autoscaler a Kubernetes Deployment

EDIT: SOLUTION: I forgot to add target_cpu_utilization_percentage to autoscaler.tf file I want a web-service in Python (or other language) running on Kubernetes but with auto scaling. I created a Deployment and a Horizontal Autoscaler but is not working. I'm using Terraform to configure Kubernetes....
Rui Martins
1

votes
1

answer
28

Views

Access the interface of Zeppelin in Kubernetes cluster

I am trying to add Zeppelin to a Kubernetes cluster. So, using the Zeppelin (0.8.1) docker image from apache/zeppelin, I created a K8S Deployment and Service as follow : Deployment : kind: Deployment apiVersion: extensions/v1beta1 metadata: name: zeppelin-k8s spec: replicas: 1 selector: matchLabel...
Nakeuh
1

votes
1

answer
72

Views

Can I reach a container by it's hostname from another container running on another node in Kubernetes?

I believe my question is pretty straightforward. I'm doing my prerequisites to install Kubernetes cluster on bare metal. Let's say I have: master - hostname for Docker DB container which is fixed on first node slave - hostname for Docker DB container which is fixed on second node Can I communicate w...
Laimis
1

votes
2

answer
52

Views

Google Healthcare API on GKE with PubSub - INVALID_ARGUMENT

We have been testing out the Google Healthcare API specifically with HL7 and as I've run through the tutorials I've hit a roadblock. I should mention that I have a fair bit of experience with Kubernetes and AWS, but not so much Google Cloud. This step here is what is giving me trouble: https://cloud...
damianesteban
1

votes
1

answer
30

Views

Is it possible to start Self-Signed Docker Registry in Kubernetes and have other service use that as the registry to get its image?

Problem Statement I want to deliver a private registry which all the images I need for my product bundled in them ( Yes, It will be fat image, but I am fine with that) I would manually upload this image in some way I would run the docker private registry as a service in Kubernetes (probably in som...
Prateek Negi
1

votes
1

answer
27

Views

How to forward traffic from domain in route53 to a pod using nginx ingress?

I deployed grafana using helm and now it is running in pod. I can access it if I proxy port 3000 to my laptop. Im trying to point a domain grafana.something.com to that pod so I can access it externally. I have a domain in route53 that I can attach to a loadbalancer (Application Load Balancer, Net...
ag53

View additional questions