Skip to main content

All Questions

Tagged with
3 votes
1 answer
2k views

Kubernetes: How to access a label value of the current running pod from code using K8's API?

Imagine I got a Kubernetes cluster which has 3 pods and each pod has its own value for the label 'name' and what I actually want is each time I run/open my app, I'd see the name of pod (so its label's ...
Aziz's user avatar
  • 953
0 votes
2 answers
1k views

Kubernetes node.js container keep crashing

I'm trying to create a pod with the following YAML, specifically on Google Cloud Platform: apiVersion: v1 kind: ReplicationController metadata: name: frontend spec: replicas: 2 template: ...
PLui's user avatar
  • 765
68 votes
11 answers
117k views

Can a Persistent Volume be resized?

I'm running a MySQL deployment on Kubernetes however seems like my allocated space was not enough, initially I added a persistent volume of 50GB and now I'd like to expand that to 100GB. I already ...
perrohunter's user avatar
  • 3,486
62 votes
5 answers
208k views

How to calculate containers' cpu usage in kubernetes with prometheus as monitoring?

I want to calculate the cpu usage of all pods in a kubernetes cluster. I found two metrics in prometheus may be useful: container_cpu_usage_seconds_total: Cumulative cpu time consumed per cpu in ...
Haoyuan Ge's user avatar
  • 3,619
5 votes
1 answer
264 views

How do I set up a Tensorflow cluster using Google Compute Engine Instances to train a model?

I understand can use docker images, but do I need Kubernetes to create a cluster? There are instructions available for model serving, but what about model training on Kubernetes?
chandler's user avatar
0 votes
1 answer
360 views

Setting Kubernetes DNS cluster addon for high availability

We're using Kubernetes 1.3.6 on AWS Currently we have a single DNS pod of the cluster addon on the system namespace. If the node which the pod runs on fails for some reason the cluster's DNS service ...
Erez Rabih's user avatar
  • 15.7k
0 votes
0 answers
303 views

No host binding

I do have setup a CoreOS single-node cluster and can access the API from my client without any issues. I did follow the guide. All deployed pods are running fine, and I can access those on the node ...
triplem's user avatar
  • 1,334
7 votes
1 answer
613 views

Forward HTTPS client ip from Google Container Engine

I'm running an nginx service in a docker container with Google Container Engine which forwards specific domain names to other services, like API, Frontend, etc. I have simple cluster for that with ...
sigrlami's user avatar
  • 1,832
1 vote
1 answer
2k views

kube-proxy: iptables-DNAT-rules for services missing

kube-proxy doesn't create DNAT-rules on nodes for services registered on master. everything works fine beside this service-ip-to-pod-ip NATing. my setup: kubernetes master: 10.98.99.176/24 (...
stefa ng's user avatar
  • 451
4 votes
2 answers
4k views

How to let Kubernetes PetSet use existing Persistent Volumes?

As part of the PetSet definition, the volumeClainTemplates are defined for Kubernetes to dynamically generate Persistent Volume Claims. For example: volumeClaimTemplates: - metadata: name: ...
k8s-in-action's user avatar
1 vote
2 answers
4k views

AutoScaling in Docker Containers

I have been looking into Docker containerization for a while now but few things are still confusing to me. I understand that all the containers are grouped into a cluster and cluster management tools ...
Ali's user avatar
  • 1,035
1 vote
2 answers
2k views

Kubernetes - delete all the pods from the node before reboot or shutdown using kubenetes API

I need a bash script to delete only pods on specific node before shutdown or reboot using Kubernetes API.
Camil's user avatar
  • 8,270
0 votes
1 answer
469 views

npm inodes issues in docker / kubernetes environment

we have a kubernetes cluster environment which at any given time has around 10~20 pods/containers running on a single node. Each node has around 200k ish inodes available. However our micro service (...
Eatdoku's user avatar
  • 6,837
0 votes
1 answer
198 views

"special device nount found" error occured when mounting AWS EBS volume to Kubernetes' pod

I am experiencing a "special device nount found" error when trying to mount a EBS volume to Kubernetes' pod. Here is the pod's yaml file: apiVersion: v1 kind: Pod metadata: name: test-ebs spec: ...
Mohan Yang's user avatar
5 votes
2 answers
4k views

Kubeadm why does my node not show up though kubelet says it joined?

I am setting up a Kubernetes deployment using auto-scaling groups and Terraform. The kube master node is behind an ELB to get some reliability in case of something going wrong. The ELB has the ...
Paul Becotte's user avatar
  • 9,899

15 30 50 per page