|
- 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
- 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 - how to configure ingress to direct traffic to an https . . .
I have a backend using https I want to separate load on that back-end based on URL path I decided to use ingress to do this url path based logic in order to move traffic to different back-ends (
- 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 expose a Kubernetes service on a specific Nodeport?
kubectl delete service kubernetes-dashboard -n kube-system Expose the Dashboard deployment as a NodePort kubectl expose deployment kubernetes-dashboard -n kube-system --type=NodePort The above will assign a random port >= 30000 So use the Patch command to assign the port to a known, unused and desired port >= 30000
- kubernetes - Execute bash command in pod with kubectl? - Stack Overflow
The double dash symbol "--" is used to separate the command you want to run inside the container from the kubectl arguments So the correct way is: kubectl exec -it --namespace=tools mongo-pod -- bash -c "mongo" You forgot a space between "--" and "bash" To execute multiple commands you may want: to create a script and mount it as a volume in your pod and execute it to launch a side container
- kubernetes - What is the best practice to have request and limit values . . .
An 8x difference between requests and limits "feels" very large to me Given your setup, the kubectl describe node output looks about right to me Notice that the resource requests are very close to 100%: Kubernetes will keep scheduling pods on a node until its resource requests get up to 100%, and whatever the corresponding limits are, they are
- kubernetes - How does kubectl port-forward create a connection? - Stack . . .
111 kubectl port-forward makes a specific Kubernetes API request That means the system running it needs access to the API server, and any traffic will get tunneled over a single HTTP connection
|
|
|