Skip to content

Instantly share code, notes, and snippets.

@mw866
Last active July 10, 2024 06:10
Show Gist options
  • Save mw866/ba118ac4102107da0cb3ba700893392e to your computer and use it in GitHub Desktop.
Save mw866/ba118ac4102107da0cb3ba700893392e to your computer and use it in GitHub Desktop.
#k8s #kubernetes
# https://helm.sh/docs/intro/using_helm/
helm list
helm list -Aa # all NS all filter
helm get values <releasename> -n <namespace>
helm repo update
helm version --short
helm repo add wiz.io https://xxxx
helm pull xxxx
helm install test xxx --values xxx.yaml
helm uninstall test
kubectl config view
kubectl config get-contexts
kubectl config current-context
kubectl config delete-context NAME
kubectl explain ingressclass
kubectl replace -f deployment.yaml --force
kubectl api-resources
kubectl api-versions
kubectl rollout restart deployment <deployment_name> -n <namespace>
# Enable dashboard https://microk8s.io/docs/addon-dashboard
# https://microk8s.io/docs/getting-started
# https://microk8s.io/docs/clustering
microk8s kubectl create token default
microk8s status
# Generate configuration for pasting into ~/.kube/config
microk8s config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment