You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl get pods -o wide # System-wide pods
kubectl get svc <SERVICE_NAME> -o yaml # Show output in json/yaml
kubectl get pods --show-labels # Show Labels
kubectl delete pod <POD_NAME> # Delete pod
kubectl scale --replicas=5 rc <RC_NAME> # Scale up or down no. of replicas of pods
kubectl exec -it <POD_NAME> -c <1st_Container> -- bash # Get into the container within a pod
kubectl expose pod mc3 --type=NodePort --port=80 # Create a service by exposing pods
Troubleshooting
# In case service is to be created
kubectl create svc nodeport sample --tcp=8080:8080