K8S DevOps
k8s forward port
kubectl port-forward <pod-name> <local-port>:<pod-port>
k8s get all
kubectl get all
k8s get logs
kubectl logs -f <pod-name>
k8s get shell access
kubectl exec -it <pod-name> -- /bin/bash
k8s delete cluster
eksctl delete cluster --name eks-cluster
k8s delete all resources
kubectl delete all --all
k8s delete all resources from a directory
kubectl delete -f ./k8s
k8s delete all resources from a file
kubectl delete -f deployment.yaml