English | 简体中文
Users can quickly experience KDP functions on a stand-alone environment.
go install
at project root# > specify "--debug" to enable verbose logging
# > if the install breaks, you may re-run the command to continue the install
kdp install --local-mode --set dnsService.name=kube-dns
All components running on the KDP are exposed to external access through the K8s Ingress. We used a self-defined root domain kdp-e2e.io
for the quick start, therefore, local domain resolution must be configured in order to visit those services:
# 1. set env `KDP_HOST` to the private IP of the stand-alone host, e.g. `export KDP_HOST=192.168.1.100`
# 2. modify /etc/hosts requires sudo priviledge
kdpHost=${KDP_HOST:-127.0.0.1}
kdpDomain="kdp-e2e.io"
kdpPrefix=("kdp-ux" "grafana" "prometheus" "alertmanager" "cloudtty" "flink-session-cluster-kdp-data" "hdfs-namenode-0-kdp-data" "hdfs-namenode-1-kdp-data" "hue-kdp-data" "kafka-manager-kdp-data" "minio-kdp-data-api" "spark-history-server-kdp-data" "streampark-kdp-data")
etcHosts="/etc/hosts"
for prefix in "${kdpPrefix[@]}"; do
domain="$prefix.$kdpDomain"
if ! grep -q "$domain" ${etcHosts}; then
echo "$kdpHost $domain" | sudo tee -a ${etcHosts}
fi
done
After the installation is completed successfully, you may visit KDP UX by the default URL:http://kdp-ux.kdp-e2e.io
# 1. destroy KDP kind cluster, all data will be erased
# 2. clean up /etc/hosts
kind delete cluster -n kdp-e2e
for prefix in "${kdpPrefix[@]}"; do
sudo sed -i"" "/$prefix.$kdpDomain/d" ${etcHosts}
done