Questions tagged [kubernetes]

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions. Using the concepts of "labels" and "pods", it groups the containers which make up an application into logical units for easy management and discovery.

For more details, visit the official Kubernetes page.

2075 questions
1
vote
0 answers

Kubernetes : kube-dns service not accessible via ClusterIP

Following an upgrade to v1.19.7 with kubeadm, my pods are unable to request the kube-dns service via the service's ClusterIP. When using the kube-dns pod IP address instead, DNS resolution works. kube-dns pods are up and running: $ kubectl get pods…
sqw
  • 11
  • 3
1
vote
0 answers

nginx-ingress 400 error with websockets

Trying to host an app, specifically Foundry VTT, on my k8s cluster. It connects fine, but websockets (any url starting with /socket.io/ are giving me a 400 error. Googling how to enable websocket support, it seems I just need to add the proxy…
cclloyd
  • 583
  • 1
  • 13
  • 24
1
vote
1 answer

Schedule pod on a node and access pv on another node

I'm running a k3s cluster on RPi4, with heterogenous config (a node has a high capacity but slow hdd, another has a ssd drive, a third only has a sd card). I have persistent volumes & claims of kind "local-path", attached to nodes & pods depending…
spi
  • 113
  • 4
1
vote
1 answer

export gcsfuse mount so a third client can access files in a storage bucket

I mount a storage bucket to a local directory. /share Then I try to make this directory - now populated with contents of the object store - available to another machine. The goal is, that this other machine doesnt't have to use a gcsfuse-client…
1
vote
1 answer

kubectl logs error: You must be logged in to the server (the server has asked for the client to provide credentials

My k8s version v1.17.13 My certificate expired today , so I ran kubeadm alpha certs renew all systemctl restart kubelet on all my master servers. All the kubectl commands that I ran worked fine .. like kubectl get nodes , kubectl scale , kubectl…
bdaoud
  • 31
  • 1
  • 4
1
vote
1 answer

Deploy mysql release using helm

Hi I'm new to k8s and helm ecosystem. I constructed my own k8s cluster using kubespray with EC2 (I can use EKS but for the purpose of practice) and the next step is using helm. I'm trying to deploy mysql chart to my k8s cluster. My env k8s cluster…
bmy4415
  • 25
  • 2
1
vote
0 answers

Unable to connect to CloudSQL from GKE without CloudSQL Proxy - SQLSTATE[HY000] [2002] Operation timed out

I have GKE cluster created with following command: gcloud container clusters create stage1 \ --enable-ip-alias \ --release-channel stable \ --zone us-central1 \ --node-locations us-central1-a,us-central1-b Now I wanted to connect my PHP application…
1
vote
1 answer

What does kubectl store in the cache?

I see a cache directory in the .kube/ directory of my kubectl. I tried to find the purpose of this cache and how kubectl uses it in the kubernetes documentation here but couldn't find any clue. What does kubectl store in the .kube/cache directory?…
Akshay Hiremath
  • 141
  • 1
  • 5
1
vote
1 answer

Monitor the nginx deployed on GKE cluster

I want to monitor the nginx requests (5xx, 4xx, 3xx, 2xx) where multiple applications are running with different domain urls. Nginx is deployed as Kind : Deployment. Is there a way for real time monitoring ?
1
vote
1 answer

Define default container when using sidecar container

I use keycloak gatekeeper as a sidecar container for multiple pods on my cluster to enable SSO for those services. But when I try to exec, view logs, etc; it asks what container I want to use instead of just going into it. Is there a way to define…
cclloyd
  • 583
  • 1
  • 13
  • 24
1
vote
1 answer

How to export Kubernetes ports to macOS host?

I want to setup a local Kubernetes cluster for testing on macOS. I selected microk8s provided by Canonical. Kubernetes doesn't run native on macOS, but uses a Linux VM provided by multipass. Installation was smooth and deployment of the…
stwissel
  • 640
  • 2
  • 7
  • 21
1
vote
1 answer

KOPS Kubernetes cannot login to bastion host, ssh public key permission error

I am learning about Kubernetes and wanted to provision one such cluster in AWS via the KOPS tool. Followed official tutorial then for short this one too https://medium.com/andcloudio/kubernetes-kops-cluster-on-aws-f55d197d8304 I also made sure to…
1
vote
2 answers

How to automatically deploy new docker images from dockerhub to kubernetes?

I'm looking for a CD solution for my k8s cluster. Now after pushing a commit with dev-* tag, dockerhub creates new image tagged as dev-latest. Here's my deployment config: apiVersion: apps/v1 kind: Deployment metadata: name:…
Vassily
  • 85
  • 2
  • 11
1
vote
1 answer

How to block/allow a country in Nginx ingress

Hello is it possible to block or allow certain countries in Nginx Ingress (community). It seems possible on Nginx installed on servers (link) But I want to apply similarly to this on Nginx Ingress.
1
vote
1 answer

Are Kubernetes updates an atomic transaction?

I wonder how Kubernetes executes updates. Let's say that two entities perform an update at the same time. How will the configuration be applied? Is applying/deleting configuration and in general performing mutations over K8S API an atomic operation?…
xpepermint
  • 267
  • 3
  • 9