跳过正文
Background Image
  1. Posts/

kubectl清理资源命令

·103 字·1 分钟· loading · loading ·
yuzjing
作者
yuzjing
目录

检查残留:
#

1
2
3
kubectl get all -n efk -l app=kibana
kubectl get configmaps,secrets -n efk | grep kibana
kubectl get pvc -n efk | grep kibana

清理
#

1
2
3
4
5
6
7
kubectl delete configmap kibana-kibana-helm-scripts -n efk --force --grace-period=0 && \
kubectl delete serviceaccount pre-install-kibana-kibana -n efk --force --grace-period=0 && \
kubectl delete role pre-install-kibana-kibana -n efk --force --grace-period=0 && \
kubectl delete rolebinding pre-install-kibana-kibana -n efk --force --grace-period=0 && \
kubectl delete job pre-install-kibana-kibana -n efk --force --grace-period=0 && \
kubectl delete secret sh.helm.release.v1.kibana.v1 -n efk --force --grace-period=0 && \
kubectl delete secret kibana-kibana-es-token -n efk