The WCMS Kubernetes environment requires use of the kubectl
command. Details on installation/configuration are available from the WCMS team.
This document describes common kubectl
commands useful for administrative tasks.
Our environments are named:
dev02
test02
stage01
- TODO prod
To set the environment for the current Windows shell:
kubectl config use-context ocio-wcms-ENVNAME-eks
For the dev02
environment, for example:
> kubectl config use-context ocio-wcms-dev02-eks
All subsequent kubectl
commands will use the current context, until you change it.
To list all the pods in a environment context:
> kubectl get pods -o wide
To tail all the running pods:
> kubectl logs -f --selector app=arpa-ui
First, get a pod identifier by listing all the pods. The identifiers
are the first NAME
column and typically start with arpa-ui-
. You only need one them. Any one will do.
These identifiers change on every deployment.
Second, execute the bash command on one of the pods:
> kubectl exec -it :podidentifier: -- bash