elk
Git Repository
eck install
kubectl create -f https://download.elastic.co/downloads/eck/2.1.0/crds.yaml
kubectl apply -f https://download.elastic.co/downloads/eck/2.1.0/operator.yaml
kubectl -n elastic-system logs -f statefulset.apps/elastic-operator
eck uninstall
kubectl get pod --all-namespaces | grep elk | awk '{print $2}' | xargs kubectl delete -n db pod
kubectl get rs --all-namespaces | grep elk | awk '{print $2}' | xargs kubectl delete -n db rs
# 删除所有es资源
kubectl get namespaces --no-headers -o custom-columns=:metadata.name | xargs -n1 kubectl delete elastic --all -n
# 删除 operator
kubectl delete -f https://download.elastic.co/downloads/eck/2.1.0/operator.yaml
kubectl delete -f https://download.elastic.co/downloads/eck/2.1.0/crds.yaml
login
# 获取elasticsearch https登录密码 账号为: elastic
kubectl -n big-data get secret cluster-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode; echo
# 9200 账号: admin 密码: elasticsearch