参考文档
https://kubesphere.io/zh/docs/v3.3/installing-on-kubernetes/on-prem-kubernetes/install-ks-on-linux-airgapped/
版本选择
- Kubernetes: v1.24.13+k3s1
- KubeSphere: v3.3.1
导入镜像
使用dockemon
工具将镜像离线导入Harbor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| kubesphere/ks-installer:v3.3.1 kubesphere/ks-apiserver:v3.3.1 kubesphere/ks-console:v3.3.1 kubesphere/ks-controller-manager:v3.3.1 kubesphere/ks-upgrade:v3.3.1 kubesphere/kubectl:v1.22.0 kubesphere/kubectl:v1.21.0 kubesphere/kubectl:v1.20.0 kubesphere/kubefed:v0.8.1 kubesphere/tower:v0.2.0 minio/minio:RELEASE.2019-08-07T01-59-21Z minio/mc:RELEASE.2019-08-07T23-14-43Z csiplugin/snapshot-controller:v4.0.0 kubesphere/nginx-ingress-controller:v1.1.0 mirrorgooglecontainers/defaultbackend-amd64:1.4 kubesphere/metrics-server:v0.4.2 redis:5.0.14-alpine haproxy:2.0.25-alpine alpine:3.14 osixia/openldap:1.3.0 kubesphere/netshoot:v1.0 jimmidyson/configmap-reload:v0.5.0 prom/prometheus:v2.34.0 kubesphere/prometheus-config-reloader:v0.55.1 kubesphere/prometheus-operator:v0.55.1 kubesphere/kube-rbac-proxy:v0.11.0 kubesphere/kube-state-metrics:v2.5.0 prom/node-exporter:v1.3.1 prom/alertmanager:v0.23.0 thanosio/thanos:v0.25.2 grafana/grafana:8.3.3 kubesphere/kube-rbac-proxy:v0.8.0 kubesphere/notification-manager-operator:v1.4.0 kubesphere/notification-manager:v1.4.0 kubesphere/notification-tenant-sidecar:v3.2.0 kubesphere/elasticsearch-curator:v5.7.6 kubesphere/elasticsearch-oss:6.8.22 kubesphere/fluentbit-operator:v0.13.0 docker:19.03 kubesphere/fluent-bit:v1.8.11 kubesphere/log-sidecar-injector:1.1 elastic/filebeat:6.7.0 kubesphere/kube-events-operator:v0.4.0 kubesphere/kube-events-exporter:v0.4.0 kubesphere/kube-events-ruler:v0.4.0 kubesphere/kube-auditing-operator:v0.2.0 kubesphere/kube-auditing-webhook:v0.2.0 kubesphere/devops-tools:v3.3.1 kubesphere/devops-controller:v3.3.1 kubesphere/devops-apiserver:v3.3.1 kubesphere/ks-jenkins:v3.3.0-2.319.1 kubesphere/s2ioperator:v3.2.1 redis:6.2.6-alpine quay.io/argoproj/argocd:v2.3.3 quay.io/argoproj/argocd-applicationset:v0.4.1 ghcr.io/dexidp/dex:v2.30.2 kubesphere/builder-nodejs:v3.2.0-podman kubesphere/builder-maven:v3.2.0-podman jenkins/inbound-agent:4.10-2
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| harbor.dubhe:30002/library/alpine:3.14 harbor.dubhe:30002/library/redis:5.0.14-alpine harbor.dubhe:30002/kubesphere/ks-console:v3.3.1 harbor.dubhe:30002/kubesphere/ks-controller-manager:v3.3.1 harbor.dubhe:30002/kubesphere/ks-installer:v3.3.1 harbor.dubhe:30002/kubesphere/ks-apiserver:v3.3.1 harbor.dubhe:30002/kubesphere/ks-upgrade:v3.3.1 harbor.dubhe:30002/kubesphere/kube-state-metrics:v2.5.0 harbor.dubhe:30002/kubesphere/fluent-bit:v1.8.11 harbor.dubhe:30002/kubesphere/prometheus-config-reloader:v0.55.1 harbor.dubhe:30002/kubesphere/prometheus-operator:v0.55.1 harbor.dubhe:30002/thanosio/thanos:v0.25.2 harbor.dubhe:30002/prom/prometheus:v2.34.0 harbor.dubhe:30002/kubesphere/fluentbit-operator:v0.13.0 harbor.dubhe:30002/kubesphere/kube-events-ruler:v0.4.0 harbor.dubhe:30002/kubesphere/kube-events-operator:v0.4.0 harbor.dubhe:30002/kubesphere/kube-events-exporter:v0.4.0 harbor.dubhe:30002/kubesphere/elasticsearch-oss:6.8.22 harbor.dubhe:30002/grafana/grafana:8.3.3 harbor.dubhe:30002/prom/node-exporter:v1.3.1 harbor.dubhe:30002/library/haproxy:2.0.25-alpine harbor.dubhe:30002/kubesphere/nginx-ingress-controller:v1.1.0 harbor.dubhe:30002/kubesphere/kubectl:v1.22.0 harbor.dubhe:30002/kubesphere/kubectl:v1.21.0 harbor.dubhe:30002/kubesphere/notification-manager:v1.4.0 harbor.dubhe:30002/kubesphere/notification-tenant-sidecar:v3.2.0 harbor.dubhe:30002/kubesphere/notification-manager-operator:v1.4.0 harbor.dubhe:30002/kubesphere/kubefed:v0.8.1 harbor.dubhe:30002/prom/alertmanager:v0.23.0 harbor.dubhe:30002/kubesphere/kube-auditing-operator:v0.2.0 harbor.dubhe:30002/kubesphere/kube-auditing-webhook:v0.2.0 harbor.dubhe:30002/kubesphere/kube-rbac-proxy:v0.11.0 harbor.dubhe:30002/kubesphere/kubectl:v1.20.0 harbor.dubhe:30002/kubesphere/tower:v0.2.0 harbor.dubhe:30002/library/docker:19.03 harbor.dubhe:30002/kubesphere/metrics-server:v0.4.2 harbor.dubhe:30002/jimmidyson/configmap-reload:v0.5.0 harbor.dubhe:30002/csiplugin/snapshot-controller:v4.0.0 harbor.dubhe:30002/kubesphere/kube-rbac-proxy:v0.8.0 harbor.dubhe:30002/kubesphere/log-sidecar-injector:1.1 harbor.dubhe:30002/osixia/openldap:1.3.0 harbor.dubhe:30002/kubesphere/elasticsearch-curator:v5.7.6 harbor.dubhe:30002/minio/mc:RELEASE.2019-08-07T23-14-43Z harbor.dubhe:30002/minio/minio:RELEASE.2019-08-07T01-59-21Z harbor.dubhe:30002/elastic/filebeat:6.7.0 harbor.dubhe:30002/kubesphere/netshoot:v1.0 harbor.dubhe:30002/mirrorgooglecontainers/defaultbackend-amd64:1.4
|
部署
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| curl -L -O https://github.com/kubesphere/ks-installer/releases/download/v3.3.1/offline-installation-tool.sh
curl -L -O https://github.com/kubesphere/ks-installer/releases/download/v3.3.1/cluster-configuration.yaml curl -L -O https://github.com/kubesphere/ks-installer/releases/download/v3.3.1/kubesphere-installer.yaml
vi cluster-configuration.yaml spec.local_registry: "harbor.dubhe:30002" sed -i "s#^\s*image: kubesphere.*/ks-installer:.*# image: harbor.dubhe:30002/kubesphere/ks-installer:v3.0.0#" kubesphere-installer.yaml
kubectl apply -f kubesphere-installer.yaml kubectl apply -f cluster-configuration.yaml
|