Skip to content

Kubernetes

Brent Kulwicki edited this page Jun 12, 2023 · 1 revision

Here are some of the most used Kube commands

# list out your profiles:
kubectl config get-contexts

kubectl config use-context FFProd
# outputs -> Switched to context "FFProd"

# get your current context:
kubectl config current-context
# outputs -> FFProd

# examine the cluster resources:
kubectl get all

# examine the ingress:
kubectl get ingress # or kubectl get ing

# examine namespaces:
kubectl get namespaces

# ingress for a specific namespace:
kubectl get ing -n n8n

# describe the ingress:
kubectl describe ing/n8n -n n8n

# edit an ingress:
kubectl describe edit ing/n8n -n n8n

# or instead of typing a namespace a hundred times:
kubectl config set-context --current --namespace=n8n

AWS profile stuff for kubectl use

  • aws --profile FFProd eks update-kubeconfig --name production-eks-CkYDOOIe --alias FFProd When setting up the specific service, like EKS, you will need to copy the production name (as seen just after --name above) to use the proper environment.

Clone this wiki locally