wuqiang0720 / blogs

0 stars 0 forks source link

helm install k8s-dashboard unable to download the iamges. #9

Open wuqiang0720 opened 3 months ago

wuqiang0720 commented 3 months ago

NAME: kubernetes-dashboard
LAST DEPLOYED: Thu Aug  8 03:21:33 2024
NAMESPACE: kubernetes-dashboard
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
*************************************************************************************************
*** PLEASE BE PATIENT: Kubernetes Dashboard may need a few minutes to get up and become ready ***
*************************************************************************************************

Congratulations! You have just installed Kubernetes Dashboard in your cluster.

To access Dashboard run:
  kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443

NOTE: In case port-forward command does not work, make sure that kong service name is correct.
      Check the services in Kubernetes Dashboard namespace using:
        kubectl -n kubernetes-dashboard get svc

Dashboard will be available at:
  https://localhost:8443
ubuntu@master:~$ kubectl get pod -A
NAMESPACE              NAME                                                    READY   STATUS                  RESTARTS        AGE
kube-system            calico-kube-controllers-57b57c56f-jfxxf                 1/1     Running                 0               23h
kube-system            calico-node-2gswg                                       1/1     Running                 0               23h
kube-system            calico-node-4z84z                                       1/1     Running                 1 (3h33m ago)   23h
kube-system            calico-node-zb2nm                                       1/1     Running                 0               23h
kube-system            coredns-5bbd96d687-hhl6t                                1/1     Running                 0               25h
kube-system            coredns-5bbd96d687-wkkd4                                1/1     Running                 0               25h
kube-system            etcd-master                                             1/1     Running                 1               25h
kube-system            kube-apiserver-master                                   1/1     Running                 1               25h
kube-system            kube-controller-manager-master                          1/1     Running                 4 (3h33m ago)   25h
kube-system            kube-proxy-hrkvq                                        1/1     Running                 0               24h
kube-system            kube-proxy-kvnfl                                        1/1     Running                 0               24h
kube-system            kube-proxy-wn9pn                                        1/1     Running                 0               25h
kube-system            kube-scheduler-master                                   1/1     Running                 4 (3h33m ago)   25h
kube-system            metrics-server-8696857f8b-78hvq                         1/1     Running                 1 (9h ago)      22h
kubernetes-dashboard   kubernetes-dashboard-api-6c56f5c7f9-86lmv               1/1     Running                 0               68s
kubernetes-dashboard   kubernetes-dashboard-auth-7d8bcdf75b-6z8ds              0/1     ImagePullBackOff        0               68s
kubernetes-dashboard   kubernetes-dashboard-kong-65476f87d4-pnfpj              0/1     Init:ImagePullBackOff   0               68s
kubernetes-dashboard   kubernetes-dashboard-metrics-scraper-6c9485498f-fpc88   0/1     ContainerCreating       0               68s
kubernetes-dashboard   kubernetes-dashboard-web-776c544cfb-x6dql               0/1     ContainerCreating       0               68s```
wuqiang0720 commented 3 months ago

I think the following command can specify url to download the images,but I don't know how to define this file values.yaml.can anyone help me explain this , thanks many helm install kubernetes-dashboard/kubernetes-dashboard --name kubernetes-dashboard -f values.yaml

wuqiang0720 commented 3 months ago

解压pull下来的tgz文件,然后修改value.yaml里面的repository地址并打包成gzip 格式

helm install kubernetes-dashboard kubernetes-dashboard202408081455.gzip --namespace kubernetes-dashboard-helm

ubuntu@master:~$ helm show values kubernetes-dashboard/kubernetes-dashboard | grep repository:
    repository: docker.io/kubernetesui/dashboard-auth
    repository: docker.io/kubernetesui/dashboard-api
    repository: docker.io/kubernetesui/dashboard-web
    repository: docker.io/kubernetesui/dashboard-metrics-scraper
ubuntu@master:~$
ubuntu@master:~$ helm pull kubernetes-dashboard/kubernetes-dashboard
ubuntu@master:~$ date
Thu 08 Aug 2024 07:03:48 AM UTC
ubuntu@master:~$ ls -ltr | tail -1
-rw-r--r-- 1 ubuntu ubuntu     371040 Aug  8 07:03 kubernetes-dashboard-7.5.0.tgz
wuqiang0720 commented 3 months ago
release "kubernetes-dashboard-helm" uninstalled
ubuntu@master:~$ helm install kubernetes-dashboard-helm kubernetes-dashboard202408081724.gzip --namespace kubernetes-dashboard-helm
NAME: kubernetes-dashboard-helm
LAST DEPLOYED: Fri Aug  9 04:36:12 2024
NAMESPACE: kubernetes-dashboard-helm
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
*************************************************************************************************
*** PLEASE BE PATIENT: Kubernetes Dashboard may need a few minutes to get up and become ready ***
*************************************************************************************************

Congratulations! You have just installed Kubernetes Dashboard in your cluster.

To access Dashboard run:
  kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443

NOTE: In case port-forward command does not work, make sure that kong service name is correct.
      Check the services in Kubernetes Dashboard namespace using:
        kubectl -n kubernetes-dashboard-helm get svc

Dashboard will be available at:
  https://localhost:8443/
ubuntu@master:~$ helm list
NAME    NAMESPACE       REVISION        UPDATED STATUS  CHART   APP VERSION
ubuntu@master:~$ helm list
NAME    NAMESPACE       REVISION        UPDATED STATUS  CHART   APP VERSION
ubuntu@master:~$ helm list --n
--namespace   (namespace scope for this request)                          --no-headers  (don't print headers when using the default output format)
ubuntu@master:~$ helm list --namespace kubernetes-dashboard-helm
NAME                            NAMESPACE                       REVISION        UPDATED                                 STATUS          CHART                           APP VERSION
kubernetes-dashboard-helm       kubernetes-dashboard-helm       1               2024-08-09 04:36:12.860242381 +0000 UTC deployed        kubernetes-dashboard-7.5.0
ubuntu@master:~$ kubectl get pod -n kubernetes-dashboard-helm
NAME                                                         READY   STATUS    RESTARTS   AGE
kubernetes-dashboard-helm-api-5b69b599cf-s6cgk               1/1     Running   0          29s
kubernetes-dashboard-helm-auth-6fdb9cd95c-6tzfh              1/1     Running   0          29s
kubernetes-dashboard-helm-kong-7896c66866-sk6xw              1/1     Running   0          29s
kubernetes-dashboard-helm-metrics-scraper-6947c54b56-gff2k   1/1     Running   0          29s
kubernetes-dashboard-helm-web-6c58dbcb4f-s88lq               1/1     Running   0          29s
ubuntu@master:~$