|
- Kubernetes: list all pods and its nodes - Stack Overflow
I have 3 nodes, running all kinds of pods I would like to have a list of nodes and pods, for an example: NODE1 POD1 NODE1 POD2 NODE2 POD3 NODE3 POD4 How can this please be achieved?
- How to set dynamic values with Kubernetes yaml file
There is a ConfigMap feature with Kubernetes, but that's also write the key value to the yaml file Is there a way to set the key to environment variables?
- What is the meaning of CPU and core in Kubernetes?
To clarify what's described here in the Kubernetes context, 1 CPU is the same as a core (Also more information here) 1000m (milicores) = 1 core = 1 vCPU = 1 AWS vCPU = 1 GCP Core 100m (milicores) = 0 1 core = 0 1 vCPU = 0 1 AWS vCPU = 0 1 GCP Core For example, an Intel Core i7-6700 has four cores, but it has Hyperthreading which doubles what the system sees in terms of cores So in essence
- kubernetes - kubectl ls -- or some other way to see into a POD - Stack . . .
You can execute commands in a container using kubectl exec command For example: to check files in any folder: kubectl exec <pod_name> -- ls -la or to calculate md5sum of any file: kubectl exec <pod_name> -- md5sum some_file
- kubernetes - How to list all containers running in a pod, including . . .
A solution to retrieve all containers running in a pod is to run kubectl get pods POD_NAME_HERE -o jsonpath= { spec containers [*] name}, however this command line does not provide the init container
- How to switch namespace in kubernetes - Stack Overflow
Say, I have two namespaces k8s-app1 and k8s-app2 I can list all pods from specific namespace using the below command kubectl get pods -n lt;namespace gt; We need to append namespace to all comma
- kubernetes - How to schedule pods restart - Stack Overflow
Is it possible to restart pods automatically based on the time? For example, I would like to restart the pods of my cluster every morning at 8 00 AM
- kubernetes - Kubectl error: memcache. go:265] couldn’t get current . . .
In Kubernetes, the KUBECONFIG environment variable designates the location of the Kubernetes configuration file This file holds details about clusters, contexts, and user credentials, enabling tools such as kubectl to communicate with Kubernetes clusters effectively
|
|
|