AUth in proxy:
kubectl exec -n monitoring -it $(kubectl get pods -n monitoring | grep -Eo "zabbix.*proxy\S+") -- /bin/bash
# list all namespaces
helm list --all-namespaces
# list running pods, here will be proxy and agent
kubectl get pods
# list proxy log
kubectl logs zabbix-proxy-865dc6b64c-lcw6n | tail -3
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client
cd
wget https://github.com/digitalocean/doctl/releases/download/v1.119.0/doctl-1.119.0-linux-amd64.tar.gz
tar xf ~/doctl-1.119.0-linux-amd64.tar.gz
sudo mv ~/doctl /usr/local/bin
doctl auth init --context helloworld
doctl auth list
doctl auth switch --context helloworld
doctl account get
doctl compute droplet create --region sfo2 --image ubuntu-24-04-x64 --size s-1vcpu-1gb blablabla
doctl compute droplet delete 463916240
kubectl config get-contexts
doctl kubernetes cluster kubeconfig save e629732d-cd41-459f-8569-345ce8fde692
kubectl config get-contexts
kubectl get nodes
doctl kubernetes cluster kubeconfig save k8s-dec
kubectl get nodes
wget https://get.helm.sh/helm-v3.16.3-linux-amd64.tar.gz
tar -zxvf helm-v3.16.3-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/
chmod +x /usr/local/bin/helm
cd kubernetes-helm/
# install helm chart
helm install my-release -f values.yaml ./
# remove and install with specific version
sed -i 's|alpine-7.0.*$|alpine-7.0.7|' values.yaml && helm uninstall my-release && helm install my-release -f values.yaml ./
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm dependency build
# get token
kubectl get secret zabbix-service-account -n default -o jsonpath={.data.token} | base64 -d
Source:
https://github.com/helm/helm/releases
https://helm.sh/docs/intro/install/
https://www.youtube.com/watch?v=2dPFvJrK9Mw
https://git.zabbix.com/projects/ZT/repos/kubernetes-helm/browse?at=refs%2Fheads%2Fmaster
No comments:
Post a Comment