After setting up the tools listed below you will have a nice initial shell setup along with environment/version management for java and nodejs.
Install the following tools in the below order:
- iterm2: https://iterm2.com/downloads.html
- homebrew: https://brew.sh/
- oh-my-zsh: https://ohmyz.sh/#install
- powerlevel10k theme for omz: https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#oh-my-zsh
- restart iterm2
> p10k configure
- confirm the initial promptinstall meslo nerd font (y)
withy
- sdkman: https://sdkman.io/
- restart iterm2
> sdk install java
to install current java lts (temurin)- to register exisiting local java installations to sdkman use: https://sdkman.io/usage#localversion
- set desired default java version via https://sdkman.io/usage#default
- nvm: https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
- restart iterm2
> nvm install lts
to install latest nodejs> nvm default lts
- azure cli: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-macos#install-with-homebrew
- restart iterm2
- kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/#install-with-homebrew-on-macos
- kube-login: https://azure.github.io/kubelogin/install.html#homebrew
- krew: https://krew.sigs.k8s.io/docs/user-guide/setup/install/
- restart iterm2
> kubectl krew install stern
> kubectl krew install ctx
> kubectl krew install ns
brew install fzf (https://github.com/junegunn/fzf)
- add following alias to your .zshrc:
alias k='kubectl' alias ks='k stern'
https://github.com/danarth/azure-cli.zsh
Cluster login:
- az login
- az aks get-credentials -n k8s-weftr-int -g rg-aks-weftr-int
- kubelogin convert-kubeconfig -l azurecli
- kubectl get nodes
Tail all pod logs, showing the last 1000 lines for each one and storing the output in the file "log-sessio1.log"
ks --tail 1000 ticket-tagging | tee log-session1.log
Scale down/up deployment
k scale --replicas=1 deployment/webhook-message-processor
Inspect container:
k exec -it zendesk-message-processor-65bb77c4f9-9hdk8 -- sh