按照官方提供的安装方式执行一遍
官方文档
https://github.com/kubeapps/kubeapps/blob/master/docs/user/getting-started.md
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install --name kubeapps --namespace kubeapps bitnami/kubeapps
直接执行这两步后得到提醒消息
NOTES:
** Please be patient while the chart is being deployed **
Tip:
Watch the deployment status using the command: kubectl get pods -w --namespace kubeapps
Kubeapps can be accessed via port 80 on the following DNS name from within your cluster:
kubeapps.kubeapps.svc.cluster.local
To access Kubeapps from outside your K8s cluster, follow the steps below:
1. Get the Kubeapps URL by running these commands:
echo "Kubeapps URL: http://127.0.0.1:8080"
export POD_NAME=$(kubectl get pods --namespace kubeapps -l "app=kubeapps" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace kubeapps $POD_NAME 8080:8080
2. Open a browser and access Kubeapps using the obtained URL.
kubectl get pods -w --namespace kubeapps
有一个部署的时候没有拉到image报错
Failed to pull image "docker.io/bitnami/kubeapps-dashboard:1.4.1": rpc error: code = Unknown desc = context canceled
查看所有deploy
kubectl get deploy --namespace kubeapps
查看dashboard 描述
kubectl describe deploy kubeapps-internal-dashboard --namespace kubeapps
如何重新部署这个失败的?
使用helm del --purge kubeapps 删除重新部署还是拉不了docker image
在拉不了的节点手工拉取, 卡在 Pulling fs layer
docker pull docker.io/bitnami/kubeapps-dashboard:1.4.1
1.4.1: Pulling from bitnami/kubeapps-dashboard
a905bcb05a87: Already exists
2e4e67ffeb9c: Pulling fs layer
但是第一个节点是可以pull 下来的
从A节点移动到B节点
A节点执行
docker save -o kubeapps-dashboard.tar bitnami/kubeapps-dashboard
复制文件 kubeapps-dashboard.tar 到B节点
scp kubeapps-dashboard.tar node1:~
在B节点执行
加载image
cd ~
docker load -i kubeapps-dashboard.tar
重装后都启动来了, 无法访问应用, 主要还是对网络映射理解不清楚
照着提醒的方法执行, 也卡在那里不动
1. Get the Kubeapps URL by running these commands:
echo "Kubeapps URL: http://127.0.0.1:8080"
export POD_NAME=$(kubectl get pods --namespace kubeapps -l "app=kubeapps" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace kubeapps $POD_NAME 8080:8080
下面开始寻找办法
kubectl get pods $POD_NAME --namespace kubeapps -o yaml |grep containerPort
8080端口是存在的
kubectl port-forward --namespace kubeapps $POD_NAME 8080:8080
看起来这个是只能让 127.0.0.1 进行访问, 外网无法访问呀