cd ../traefik microk8s.kubectl apply -f traefik_role.yaml microk8s.kubectl apply -f traefik_role.yaml microk8s.kubectl apply -f traefik_roleBind.yaml cd - sudo su // 准备 es 配置 microk8s.ctr image import ~/shared/powerssd/images/docker/x86/fluentd-x86-image.tar microk8s.ctr image import ~/shared/powerssd/images/docker/x86/elasticsearch-8-8-0.tar microk8s.ctr image import ~/shared/powerssd/images/docker/x86/kibana-8-8-0.tar // 创建 es 资源 microk8s.kubectl apply -f efk-namespace.yaml microk8s.kubectl apply -f elasticsearch-pvandpvc_incluster.yaml microk8s.kubectl apply -f elasticsearch-statefulSet.yaml microk8s.kubectl apply -f elasticsearch-service.yaml microk8s.kubectl apply -f elasticsearch-ingress.yaml sleep 30 ./createSecure_passwd_forES.sh ./createFluentdAccoutnIn.sh microk8s.kubectl apply -f fluentd-configMap.yaml microk8s.kubectl apply -f fluentd-daemonset.yaml microk8s.kubectl apply -f fluentd-service.yaml microk8s.kubectl apply -f fluentd-ingress.yaml microk8s.kubectl apply -f fluentd-service.yaml microk8s.kubectl apply -f kibana-deployment.yaml microk8s.kubectl apply -f kibana-ingress.yaml microk8s.kubectl apply -f kibana-service.yaml ./refreshTokenForKibana.sh