Monthly Archives For July 2023

Kubernetes Commands

, , Comment Closed

Pods How many pods? kubectl get pods or kubectl get pods –no-headers | wc -l How many pods are based on a particular label? kubectl get pods –selector key=value or kubectl get pods -l key=value…

Read Post →

Kubernetes Questions

, , Comment Closed

Expose a pod and create a node port service. Create a pod with a label. kubectl run my-app –image=nginx –port=80 –labels=”app=my-app” Create the node port service using a name to match the pod’s label. Otherwise,…

Read Post →