k8 - kanuku/misc GitHub Wiki
Create deployment
kube apply -f deployment/k8s-deployment.yaml
Show logs of all pods with given label
# Show logs of all pods with given label
kubectl --namespace=backend logs -l component=send-plan
# Show logs for single pod
kubectl -n hhh logs -f my-service-567a293045-fa2b7
Filter kubctl get events Result
kubectl --namespace=backend get events --field-selector type=Warning
List eks clusters on AWS
export AWS_PROFILE=madteam
export AWS_REGION="eu-north-1"
aws eks list-clusters
Select given cluster for usage
aws eks update-kubeconfig --name k8s-test
List local configured clusters
kb config get-clusters
Use local configured clusters
kb config use-context arn:aws:eks:eu-south-1:991828713991:cluster/k8s-dev