Category "kubernetes"

How to check what port a pod is listening on with kubectl and not looking at the dockerFile?

I have a pod running and want to port forward so i can access the pod from the internal network. I don't know what port it is listening on though, there is no s

How to check what port a pod is listening on with kubectl and not looking at the dockerFile?

I have a pod running and want to port forward so i can access the pod from the internal network. I don't know what port it is listening on though, there is no s

telepresence: error: connector.Connect: kubeconfig has no context definition

Unable to connect to k8s with telepresence. I using minikube as my util to manage k8s and using telepresence to develop my code with k8s. Sometimes it will work

How to have multiple object types in a single openshift yaml template?

Here is the sample template for single PersistentVolumeClaim with name : claim1 apiVersion: "v1" kind: "PersistentVolumeClaim" metadata: name: "claim1" spec:

How to access Kubernetes API when using minkube?

What is correct way to kubernetes cluster setup using minikube through the kubernetes api ? At the moment, I can't find a port through which the kubernetes clus

Get environment variable from kubernetes pod?

What's the best way to list out the environment variables in a kubernetes pod? (Similar to this, but for Kube, not Docker.)

Why is kubectl not asking for a password?

Why is kubectl not asking for a password? I have created a kubernetes cluster on my server with kubeadm than I installed kubectl on my local machine and copied

Alluxio on kubernetes(EKS) supports s3 connection without aws accessKey and secretKey? Is the s3 connection configurable with role arn alone?

We are installing Alluxio on EKS using s3 as a underlaying storage layer. Alluxio cluster is up and running with s3 storage when configurations are done like be

How to turn off autoscaling in Kubernetes with the kubectl command?

If I set to autoscale a deployment using the kubectl autoscale command (http://kubernetes.io/docs/user-guide/kubectl/kubectl_autoscale/), how can I turn it off

Adding time stamp to Kubernetes deployment with latest tag

I am trying to implement Kubernetes resource deployment. For this I created deployment.yaml and service.yaml as my Kubernetes reources. And refering the dockerh

oauth2-proxy returns a white webpage with "Found" link instead of the provider authentication page

I am using oauth2-proxy (v7.2.0) for authentication NB: i use traefik v2 to redirect the requests to oauth2-proxy which is deployed via helm chart. below, the o

AKS - creating clusters is broken?

When I go to the "Networking" page of an existing AKS cluster, I get an error: Extension: Microsoft_Azure_ContainerService Content: ManagedClustersNetworkingBla

Volume not persistent in Google Cloud

I'm trying to build a mysql pod on Google Cloud. However, when I create a database and then restart the pod, the database that I created is not persisted. I fol

Kubernetes Dashboard CrashLoopBackOff: timeout error on Raspberry Pi cluster

Should be a simple task, I simply want to run the Kubernetes Dashboard on a clean install of Kubernetes on a Raspberry Pi cluster. What I've done: Setup the ini

Prometheus and nfs storage

As per prometheus storage.md , the recommendation is not to use nfs storage as persistent volume for prometheus. But solutions like prometheus operator and ope

How to sum prometheus counters when k8s pods restart

I'm running Prometheus in a kubernetes cluster. All is running find and my UI pods are counting visitors. Please ignore the title, what you see here is the

how to run a job in each node of kubernetes instead of daemonset

There is a kubernetes cluster with 100 nodes, I have to clean the specific images manually, I know the kubelet garbage collect may help, but it isn't applied in

Kubernetes: how to scale my pods

I'm new to Kubernetes. I try to scale my pods. First I started 3 pods: ./cluster/kubectl.sh run my-nginx --image=nginx --replicas=3 --port=80 There were star

Which API Group in k8s

How do I determine which apiGroup any given resource belongs in? kind: Role apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: namespace: default nam

Deploying a Keycloak HA cluster to kubernetes | Pods are not discovering each other

I'm trying to deploy a HA Keycloak cluster (2 nodes) on Kubernetes (GKE). So far the cluster nodes (pods) are failing to discover each other in all the cases as