Last active
June 30, 2022 18:32
-
-
Save filipedfs/25952c76cf1179cb87afe90049d33413 to your computer and use it in GitHub Desktop.
Kubernetes commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List nodes | |
| kubectl get nodes | |
| # List pods | |
| kubectl get pods | |
| # List services | |
| kubectl get services | |
| # Apply a monifest file | |
| kubectl apply -f k8s/deployment.yaml | |
| # Forward a service port | |
| kubectl port-forward service/<service name> <port>:<port> | |
| # View kubernetes configuration on machine | |
| kubectl config view |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment