Kubectl Cheat Sheet

Kubectl Cheat Sheet

This page provides a list of kubectl commands that can be used to manage Kubepass.

Keycloak admin credentials

Keycloak credentials are stored as a Kubernetes secret. To retrieve the credentials, run the following command:

username:

kubectl get secret keycloak -n kubepass -o jsonpath="{.data.username}" | base64 --decode; echo

password:

kubectl get secret keycloak -n kubepass -o jsonpath="{.data.password}" | base64 --decode; echo

Kubepass dashboard URL

To retrieve the Kubepass dashboard URL, run the following command:

If default ingress is used:

kubectl get ingress -n kubepass -o jsonpath="{.items[0].spec.rules[0].host}"

Kubepass License Key

To retrieve the Kubepass license key, run the following command:

kubectl get secret license -n kubepass -o jsonpath="{.data.license}" | base64 --decode; echo

Postgres credentials

To retrieve the Postgres credentials, run the following command:

username:

kubectl get secret postgres -n kubepass -o jsonpath="{.data.username}" | base64 --decode; echo

password:

kubectl get secret postgres -n kubepass -o jsonpath="{.data.password}" | base64 --decode; echo

host:

kubectl get secret postgres -n kubepass -o jsonpath="{.data.host}" | base64 --decode; echo

database:

kubectl get secret postgres -n kubepass -o jsonpath="{.data.database}" | base64 --decode; echo