Skip to content

Instantly share code, notes, and snippets.

@shrink0r
Last active July 16, 2024 09:52
Show Gist options
  • Save shrink0r/46373d5717b746d954403e0e2c6ef4e0 to your computer and use it in GitHub Desktop.
Save shrink0r/46373d5717b746d954403e0e2c6ef4e0 to your computer and use it in GitHub Desktop.

MacOS dev tooling

After setting up the tools listed below you will have a nice initial shell setup along with environment/version management for java and nodejs.

Installation

Install the following tools in the below order:

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

Examples:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment