apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.06k stars 1.1k forks source link

CKS Dashboard Issue #8684

Closed th3cod3r closed 8 months ago

th3cod3r commented 8 months ago

I make a latest version ISO with below command on a Single node server. /usr/share/cloudstack-common/scripts/util/create-kubernetes-binaries-iso.sh ./ 1.29.2 1.4.0 1.29.0 https://raw.githubusercontent.com/weaveworks/weave/master/prog/weave-kube/weave-daemonset-k8s-1.11.yaml https://raw.githubusercontent.com/kubernetes/dashboard/master/charts/kubernetes-dashboard.yaml setup-v1.29.2

With the above ISO, I onboard a cluster with that. After all configuration I am unable to hit the K8s dashboard, sharing snap for your reference and the version of cloudstack is 4.18.1

Screenshot 2024-02-21 at 12 37 02 PM

More info are as below for your reference

kubectl --kubeconfig kube.conf get all -A 
NAMESPACE              NAME                                                            READY   STATUS    RESTARTS      AGE
kube-system            pod/coredns-76f75df574-lfgzj                                    1/1     Running   0             45h
kube-system            pod/coredns-76f75df574-mtktc                                    1/1     Running   0             45h
kube-system            pod/etcd-kloudspot-app-control-18dc0a3d55e                      1/1     Running   0             45h
kube-system            pod/kube-apiserver-kloudspot-app-control-18dc0a3d55e            1/1     Running   0             45h
kube-system            pod/kube-controller-manager-kloudspot-app-control-18dc0a3d55e   1/1     Running   0             45h
kube-system            pod/kube-proxy-74zcb                                            1/1     Running   0             45h
kube-system            pod/kube-proxy-hts4p                                            1/1     Running   0             45h
kube-system            pod/kube-scheduler-kloudspot-app-control-18dc0a3d55e            1/1     Running   0             45h
kube-system            pod/weave-net-8j6j2                                             2/2     Running   0             45h
kube-system            pod/weave-net-mlv6t                                             2/2     Running   1 (45h ago)   45h
kubernetes-dashboard   pod/kubernetes-dashboard-api-645688966c-8xqjp                   1/1     Running   0             45h
kubernetes-dashboard   pod/kubernetes-dashboard-metrics-scraper-b847579df-tjw86        1/1     Running   0             45h
kubernetes-dashboard   pod/kubernetes-dashboard-web-648b489598-psn94                   1/1     Running   0             45h

NAMESPACE              NAME                                           TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                  AGE
default                service/kubernetes                             ClusterIP   10.96.0.1        <none>        443/TCP                  45h
kube-system            service/kube-dns                               ClusterIP   10.96.0.10       <none>        53/UDP,53/TCP,9153/TCP   45h
kubernetes-dashboard   service/kubernetes-dashboard-api               ClusterIP   10.102.124.59    <none>        9000/TCP                 45h
kubernetes-dashboard   service/kubernetes-dashboard-metrics-scraper   ClusterIP   10.111.159.255   <none>        8000/TCP                 45h
kubernetes-dashboard   service/kubernetes-dashboard-web               ClusterIP   10.108.135.214   <none>        8000/TCP                 45h

NAMESPACE     NAME                        DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE
kube-system   daemonset.apps/kube-proxy   2         2         2       2            2           kubernetes.io/os=linux   45h
kube-system   daemonset.apps/weave-net    2         2         2       2            2           <none>                   45h

NAMESPACE              NAME                                                   READY   UP-TO-DATE   AVAILABLE   AGE
kube-system            deployment.apps/coredns                                2/2     2            2           45h
kubernetes-dashboard   deployment.apps/kubernetes-dashboard-api               1/1     1            1           45h
kubernetes-dashboard   deployment.apps/kubernetes-dashboard-metrics-scraper   1/1     1            1           45h
kubernetes-dashboard   deployment.apps/kubernetes-dashboard-web               1/1     1            1           45h

NAMESPACE              NAME                                                             DESIRED   CURRENT   READY   AGE
kube-system            replicaset.apps/coredns-76f75df574                               2         2         2       45h
kubernetes-dashboard   replicaset.apps/kubernetes-dashboard-api-645688966c              1         1         1       45h
kubernetes-dashboard   replicaset.apps/kubernetes-dashboard-metrics-scraper-b847579df   1         1         1       45h
kubernetes-dashboard   replicaset.apps/kubernetes-dashboard-web-648b489598              1         1         1       45h
boring-cyborg[bot] commented 8 months ago

Thanks for opening your first issue here! Be sure to follow the issue template!

weizhouapache commented 8 months ago

@th3cod3r the kubernetes-dashboard does not exist in your CKS cluster.

Below is the k8s services in my CKS cluster

$ kubectl --kubeconfig cks-1292.kubeconfig get svc -A
NAMESPACE              NAME                        TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                  AGE
default                kubernetes                  ClusterIP   10.96.0.1       <none>        443/TCP                  24m
kube-system            kube-dns                    ClusterIP   10.96.0.10      <none>        53/UDP,53/TCP,9153/TCP   24m
kubernetes-dashboard   dashboard-metrics-scraper   ClusterIP   10.97.159.150   <none>        8000/TCP                 24m
kubernetes-dashboard   kubernetes-dashboard        ClusterIP   10.102.219.60   <none>        443/TCP                  24m

Please use the following yaml when you create the CKS ISO https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml We used it to build most of the CKS ISOs on https://download.cloudstack.org/cks/

th3cod3r commented 8 months ago

@weizhouapache

Thanks for the suggestion, It is resolved now.