代码拉取完成,页面将自动刷新
#!/bin/bash
set -eu
# Simple script to deploy Elastic to a Kubernetes cluster with context already set
ES_NAMESPACE=${ES_NAMESPACE:-elastic}
if [[ "${INSTALL_HELM:-no}" == "yes" ]]; then
# See https://helm.sh/docs/intro/install/
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
fi
helm repo add elasticsearch https://helm.elastic.co || helm repo add elasticsearch https://helm.elastic.co/
helm repo update
helm upgrade --install --namespace="$ES_NAMESPACE" --create-namespace --wait elasticsearch elasticsearch/elasticsearch \
--set replicas=1,minMasterNodes=1
# Kibana is provided primarily for visualisation
helm upgrade --install --namespace="$ES_NAMESPACE" --create-namespace --wait kibana elasticsearch/kibana
echo "Kibana deployed, now set up indexes by going to http://localhost:5601/app/management/kibana/indexPatterns after running:"
echo "kubectl port-forward -n elastic svc/kibana-kibana 5601"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。