kubernetes demo, cheat sheet, helm etc.
kubectl get all --all-namespaces
kubectl get namespaces
kubectl get nodes
kubectl get all -n namespace_name
kubectl get deployment -n namespace_name
kubectl get svc --all-namespaces
kubectl get pods
kubectl get pods -l "release=metricbeat"
kubectl logs pod-name
Getting a shell to a Container
kubectl exec -it pod-name -- /bin/bash
#Helm (Helm)[https://helm.sh/] helps you manage Kubernetes applications.
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
- Install filebeat
helm install --name elastic-search -f filebeat.yaml stable/filebeat