Skip to main content

kubetail部署和使用

Sample Editor Command

helm repo add kubetail https://kubetail-org.github.io/helm-charts/

因为国内镜像拉不起来

先自己 cache 镜像

➜  foldspace-containers git:(main) ✗ ./cache_docker_hub.sh kubetail/kubetail-dashboard:0.6.2
cache kubetail/kubetail-dashboard:0.6.2 => registry.dafengstudio.cn/kubetail/kubetail-dashboard:0.6.2
docker pull kubetail/kubetail-dashboard:0.6.2
0.6.2: Pulling from kubetail/kubetail-dashboard
9d2a16342603: Pull complete
3fb2f2700ca3: Pull complete
326c82fd06ea: Pull complete
Digest: sha256:bd6da0026d987a7cf43b6e7d4c50e0eb16091d26d33d7b87dce45e01953f1349
Status: Downloaded newer image for kubetail/kubetail-dashboard:0.6.2
docker.io/kubetail/kubetail-dashboard:0.6.2
The push refers to repository [registry.dafengstudio.cn/kubetail/kubetail-dashboard]

可以替换镜像为 registry.dafengstudio.cn/kubetail/kubetail-dashboard:0.6.2

helm show values kubetail/kubetail|head

WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: ./kube-config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: ./kube-config
# Default values for kubetail chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# -- Override the chart's computed fullname
fullnameOverride: null

# -- Overrides the chart's name
nameOverride: null

helm show values https://kubetail-org.github.io/helm-charts/ | \
yq eval '.. | select(tag == "!!map" or tag == "!!seq") | path | join(".")' -

再创建

helm install kubetail kubetail/kubetail \
--set kubetail.image.registry=docker.1ms.run \
--namespace kubetail-system \
--create-namespace