kubee command
kubee is the main entry of the kubee platform
Extras
Section titled “Extras”Init a vault after installation with kubee-vault-init
PromTool
Section titled “PromTool”Validate and test PrometheusRules with kubee-promtool
Alert Manager
Section titled “Alert Manager”Query and send alert to the Prometheus Alert Manager with kubee-alertmanager
Kubee shell - get a shell from a busybox container or a pod
Ephemere KubeConfig stored in pass
Section titled “Ephemere KubeConfig stored in pass”Generate an Ephemere Kubeconfig from pass with kubeconfig-pass
List and documentation
Section titled “List and documentation”- kubee helmet - the kubee chart manager
- kubee app shell - get a shell from a busybox container or a pod
- kubee-kapply - apply a kustomize app (ie
kustomize apply) - kubee-events - shows the events of an app
- kubee-volume-explorer - Explore the files of an app via SCP/SFTP
- kubee-logs - print the logs of pods by app name
- kubee-pods - watch/list the pods of the cluster
- kubee-app-restart - execute a rollout restart
- kubee app top - shows the top processes of an app
- kubee cert - print the kubeconfig cert in plain text
- kubee-cidr - print the cidr by pods
- kubee-k3s - collection of k3s utilities
- kubee-ns - set or show the current namespace
- kubee-events - show the event of a namespace
- kube-pods-ip - show the ip of pods
- kube-pvc-move - move a pvc (Automation not finished)
What is an app name?
Section titled “What is an app name?”In all app scripts, you need to give an app name as argument.
The scripts will try to find resources for an app:
- via the
app.kubernetes.io/instance=$APP_NAMElabel - via the
app.kubernetes.io/name=$APP_NAMElabel - or via the
.envrcof an app directory
Problem: We need multiple apps in the same directory because an operator may ship multiple CRD definitions.
See: app.kubernetes.io/part-of: argocd
Example: the Prometheus Operator
- prometheus (Prometheus CRD)
- alertmanager (AlertManager CRD)
- pushgateway
- node exporter
What is Envrc App Definition?
Section titled “What is Envrc App Definition?”In this configuration:
- All apps are in a subdirectory of the
KUBEE_APP_HOMEdirectory (given by the$KUBEE_APP_HOMEenvironment variable). - The name of an app is the name of a subdirectory
- Each app expects a
kubeconfigfile located at~/.kube/config-<app name>with the default context set with the same app namespace
Kubectl Plugins
Section titled “Kubectl Plugins”To make these utilities Kubectl plugin,
you can rename them from kubee- to kubectl-
They should then show up in:
kubectl plugin listYou can discover other plugins at Krew