Skip to main content

Kubernetes | resources

Hoop could be configured to use the kubectl command line to manage resources or execute actions on workloads in Kubernetes.

Connection Configuration​

NameTypeDescription
KUBECONFIGfilesystemA kubeconfig file with permission to exec into pods in a namespace

Connection Command​

kubectl

How to Use​

# view pods in the default namespace
hoop exec my-conn-k8s -- get pods
# restart an app
hoop exec k8s -- rollout restart deployment/myapp
# scale up an app
hoop exec my-conn-k8s -- scale --replicas=3 deployment/myapp

It's possible to narrow down the commands in distinct connections, this gives a better user experience

  • Update the connection with the command bellow
kubectl --namespace prod rollout

Then it's possible

hoop exec my-conn-k8s -- restart deployment/myapp
hoop exec my-conn-k8s -- undo deployment/myapp