Category "kubernetes"

How do I get logs from all pods of a Kubernetes replication controller?

Running kubectl logs shows me the stderr/stdout of one Kubernetes container. How can I get the aggregated stderr/stdout of a set of pods, preferably those cr

How to pass command and argument to a container in deployment file of kubernetes

I have to write a deployment file for my application which takes run time commands and arguments at runtime. e.g. ./foo bar -a=A -b=B This is my deployment file

How can I upgrade the AKS cluster using terraform without downtime

I want to upgrade my AKS cluster using terraform without or with minimal downtime. What happens to the workloads during the cluster upgrade. Can i do the AKS cl

Kube-apiserver complains about remote error bad certificate

I reinstalled some nodes and a master. Now on the master I am getting: Sep 15 04:53:58 master kube-apiserver[803]: I0915 04:53:58.413581 803 logs.go:41] h

virtctl works when executed via command line but not from php exec()

I am trying to run kubectl virt commands to manage my virtual machine via PHP. First, I log in to my server with phpseclib with the following code: $ssh = new S

How to create more than one cluster in minikube

I need to create additional cluster in minikube. I searched for a while I haven't got any resource on this.How to create a cluster in minikube?

Docker for Desktop runs the Kubernetes - Ip address is not working

kubectl describe node docker-for-desktop This gets the IP address of Docker desktop for Windows. But we run it on browser with ip:nodeport it is not working.

Kubernetes - MountVolume.NewMounter initialization failed for volume "<volume-name>" : path does not exist

I am trying to setup a Local Persistent volume using local storage using WSL. But the pod STATUS stops at Pending. The kubectl describe pod <pod-name> giv

How do I elegantly and safely maximize the amount of heap space allocated to a Java application in Kubernetes?

I have a Kubernetes deployment that deploys a Java application based on the anapsix/alpine-java image. There is nothing else running in the container expect for

Why a pod can't connect to on-premise network

I'm setting up a Kubernetes engine (cluster-version: "1.11") on GCP with Kubeflow installation script that deploy on "default" network and I setting up a Google

k8s - Nested Firecracker Environments

Sorry if this question might sound "convoluted" but here it goes... I'm currently designing a k8s solution based on Firecracker and Kata-containers. I'd like th

Renew kubernetes pki after expired

My kubernetes PKI expired (API server to be exact) and I can't find a way to renew it. The error I get is May 27 08:43:51 node1 kubelet[8751]: I0527 08:43:51.9

kubectl : Unable to connect to the server : dial tcp 192.168.214.136:6443: connect: no route to host

I recently installed kubernetes on VMware and also configured few pods , while configuring those pods , it automatically used IP of the VMware and configured. I

Kubernetes sort pods by age

I can sort my Kubernetes pods by name using: kubectl get pods --sort-by=.metadata.name How can I sort them (or other resoures) by age using kubectl?

How to make ArgoCD Non-HA to HA setup?

I have currently implemented ArgoCD for my K8's deployment. I installed it as a Non-HA setup. Moving forward, the number of application in ArgoCD will get incre

Unable to register node "node-name" with API server: Unauthorized

I am using kubernetes 1.13.2 on bare metals (No Provider). I already have a master and a worker node set up while ago, but now my new worker node cannot join t

Airflow 2.0.1: Pod Template Override not working as expected for KubernetesExecutor

Setup: Airflow 2.0.1 with Kubernetes 1.18 and Python 3.8, Kubernetes Client: 18.17.x Pod template file: apiVersion: v1 kind: Pod metadata: name: workerPod sp

Kubernetes Container runtime network not ready

I installed a Kubernetes cluster of three nodes, the control node looked ok, when I tried to join the other two nodes the status for both of is: Not Ready On co

Time Zone in Kubernetes Pods Using Environment Variable

I am trying to update my pod time to Asia/Kolkata zone as per kubernetes timezone in POD with command and argument. However, the time still remains the same UTC

cert-manager HTTP01 certificate challenge is inaccessible when rewrite-target is enabled

We have a dozen of services exposed using a ingress-nginx controller in GKE. In order to route the traffic correctly on the same domain name, we need to use a r