Welcome to this repository that contains hands-on guides to get started with different aspects of working with Gravitee on Kubernetes.
For example on zsh:
source <(kubectl completion zsh)Add that command to your ~/.zshrc file (create it if it doesn't exist).
Make sure you also have these two commands early in your .zshrc file:
autoload -Uz compinit
compinitYou can now hit TAB to autocomplete on everything with kubectl, can't live without it.
This makes it very easy to list the namespaces available:
% kubens
default
gravitee
ingress-nginx
kube-node-lease
kube-public
kube-systemAnd change namespace:
% kubens default
Context "minikube" modified.
Active namespace is "default".Install it like this:
brew install kubectxWith brew install, tab-autocompletion should work out of the box.
If at any point you want to restart a pod during troubleshoot, you can do this by referencing the associated deployment:
k rollout restart deployment <deployment name>