Kubernetes
Notes relating to Kubernetes!
Kubernetes
Tools
Super useful for easily switching contexts and namespaces
Great for live tailing logs from multiple pods/containers
Shows some nice Kubernetes output in the CLI
The ct command is great for testing Helm charts
Commands
Get pods
Create Service Account
ClusterRoleBinding
Rollout Restart
kubectl rollout restart -n $namespace deployment/$deployment-name
Running a one-off command against a pod
The below runs env within the pod without having the directly exec into it
Tail logs
Use stern for this!
Init Containers
To view logs from the init container, use the -c flag
Resources
Used to create Secret resources without needing to store credentials in source control!
AWS system manager (Parameter )
Basic Setup
Namespaces
Deleting namespaces
Namespaces can often get stuck in a Terminating process despite being completely empty
To fully delete the namespace, run the following
Last updated