成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

使用kubekey安裝kubesphere

運維 系統運維
KubeKey 是新一代 Kubernetes 和 KubeSphere 安裝器,可幫助您以簡單、快速、靈活的方式安裝 Kubernetes 和 KubeSphere。

[[380964]]

 下載 KubeKey

KubeKey 是新一代 Kubernetes 和 KubeSphere 安裝器,可幫助您以簡單、快速、靈活的方式安裝 Kubernetes 和 KubeSphere。

  1. export KKZONE=cn 
  2. curl -sfL https://get-kk.kubesphere.io | VERSION=v1.0.1 sh - 

 準備鏡像

如果您想讓安裝加快或者您的機房沒有外網,可以使用公司內部的私有倉庫,預先把鏡像推送到私有倉庫中,我這里的倉庫使用harbor

下載離線安裝工具,我這里只是用這個腳本來下載和推送鏡像

  1. curl -L -O https://github.com/kubesphere/ks-installer/releases/download/v3.0.0/offline-installation-tool.sh 
  2. curl -L -O https://github.com/kubesphere/ks-installer/releases/download/v3.0.0/images-list.txt 

 拉取鏡像

  1. ./offline-installation-tool.sh -s -l images-list.txt -d ./kubesphere-images 
  2. 在./kubesphere-images目錄下能看到以下壓縮包 
  3. # ll 
  4. total 8606088 
  5. -rw-r--r-- 1 root root  454465957 Feb  2 15:37 csi-images.tar.gz 
  6. -rw-r--r-- 1 root root 1231853258 Feb  2 15:33 example-images.tar.gz 
  7. -rw-r--r-- 1 root root  445244294 Feb  2 14:50 istio-images.tar.gz 
  8. -rw-r--r-- 1 root root  762326634 Feb  2 14:27 k8s-images.tar.gz 
  9. -rw-r--r-- 1 root root 1297767607 Feb  2 14:40 ks-core-images.tar.gz 
  10. -rw-r--r-- 1 root root 3439146357 Feb  2 15:19 ks-devops-images.tar.gz 
  11. -rw-r--r-- 1 root root  733165078 Feb  2 14:46 ks-logging-images.tar.gz 
  12. -rw-r--r-- 1 root root  448651153 Feb  2 15:23 openpitrix-images.tar.gz 

 推送鏡像到私有倉庫,待腳本完成即可

  1. ./offline-installation-tool.sh -l images-list.txt -d ./kubesphere-images -r hub.evbj.easou.com 

創建多節點集群

您可用使用 KubeKey 同時安裝 Kubernetes 和 KubeSphere,通過自定義配置文件中的參數創建多節點集群。

創建安裝有 KubeSphere 的 Kubernetes 集群(例如 --with-kubesphere v3.0.0)

  1. ./kk create config --with-kubernetes v1.17.9 --with-kubesphere v3.0.0 

系統將創建默認的 config-sample.yaml 文件。您可以根據您的環境修改此文件。

  1. apiVersion: kubekey.kubesphere.io/v1alpha1 
  2. kind: Cluster 
  3. metadata: 
  4.   name: ESCloud 
  5. spec: 
  6.   hosts: 
  7.   - {name: kubesphere001, address: 10.26.31.34, internalAddress: 10.26.31.34, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  8.   - {name: kubesphere002, address: 10.26.31.36, internalAddress: 10.26.31.36, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  9.   - {name: kubesphere003, address: 10.26.31.42, internalAddress: 10.26.31.42, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  10.   - {name: kubesphere004, address: 10.26.31.46, internalAddress: 10.26.31.46, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  11.   - {name: kubesphere005, address: 10.26.31.118, internalAddress: 10.26.31.118, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  12.   - {name: kubesphere006, address: 10.26.31.119, internalAddress: 10.26.31.119, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  13.   - {name: kubesphere007, address: 10.26.31.120, internalAddress: 10.26.31.120, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  14.   - {name: kubesphere008, address: 10.26.31.121, internalAddress: 10.26.31.121, privateKeyPath: "~/.ssh/id_dsa", port: 20755} 
  15.   roleGroups: 
  16.     etcd: 
  17.     - kubesphere001 
  18.     - kubesphere002 
  19.     - kubesphere003 
  20.     master:  
  21.     - kubesphere001 
  22.     - kubesphere002 
  23.     - kubesphere003 
  24.     worker: 
  25.     - kubesphere004 
  26.     - kubesphere005 
  27.     - kubesphere006 
  28.     - kubesphere007 
  29.     - kubesphere008 
  30.   controlPlaneEndpoint: 
  31.     domain: lb.kubesphere.local 
  32.     address: "" 
  33.     port: "6443" 
  34.   kubernetes: 
  35.     version: v1.17.9 
  36.     imageRepo: kubesphere 
  37.     clusterName: cluster.local 
  38.   network: 
  39.     plugin: calico 
  40.     kubePodsCIDR: 10.233.64.0/18 
  41.     kubeServiceCIDR: 10.233.0.0/18 
  42.   registry: 
  43.     registryMirrors: [] 
  44.     insecureRegistries: ["hub.kubeops.net"
  45.     privateRegistry: "hub.kubeops.net" 
  46.   addons: [] 
  47.  
  48.  
  49. --- 
  50. apiVersion: installer.kubesphere.io/v1alpha1 
  51. kind: ClusterConfiguration 
  52. metadata: 
  53.   name: ks-installer 
  54.   namespace: kubesphere-system 
  55.   labels: 
  56.     version: v3.0.0 
  57. spec: 
  58.   local_registry: "hub.kubeops.net" 
  59.   persistence: 
  60.     storageClass: "" 
  61.   authentication: 
  62.     jwtSecret: "" 
  63.   etcd: 
  64.     monitoring: true 
  65.     endpointIps: localhost 
  66.     port: 2379 
  67.     tlsEnable: true 
  68.   common: 
  69.     es: 
  70.       elasticsearchDataVolumeSize: 20Gi 
  71.       elasticsearchMasterVolumeSize: 4Gi 
  72.       elkPrefix: logstash 
  73.       logMaxAge: 7 
  74.     mysqlVolumeSize: 20Gi 
  75.     minioVolumeSize: 20Gi 
  76.     etcdVolumeSize: 20Gi 
  77.     openldapVolumeSize: 2Gi 
  78.     redisVolumSize: 2Gi 
  79.   console: 
  80.     enableMultiLogin: true  # enable/disable multi login 
  81.     port: 30880 
  82.   alerting: 
  83.     enabled: false 
  84.   auditing: 
  85.     enabled: false 
  86.   devops: 
  87.     enabled: false 
  88.     jenkinsMemoryLim: 2Gi 
  89.     jenkinsMemoryReq: 1500Mi 
  90.     jenkinsVolumeSize: 8Gi 
  91.     jenkinsJavaOpts_Xms: 512m 
  92.     jenkinsJavaOpts_Xmx: 512m 
  93.     jenkinsJavaOpts_MaxRAM: 2g 
  94.   events: 
  95.     enabled: false 
  96.     ruler: 
  97.       enabled: true 
  98.       replicas: 2 
  99.   logging: 
  100.     enabled: false 
  101.     logsidecarReplicas: 2 
  102.   metrics_server: 
  103.     enabled: true 
  104.   monitoring: 
  105.     prometheusMemoryRequest: 400Mi 
  106.     prometheusVolumeSize: 20Gi 
  107.   multicluster: 
  108.     clusterRole: none  # host | member | none 
  109.   networkpolicy: 
  110.     enabled: false 
  111.   notification: 
  112.     enabled: false 
  113.   openpitrix: 
  114.     enabled: false 
  115.   servicemesh: 
  116.     enabled: false 

 環境初始化

  1. ./kk init os -f config-sample.yaml 
  2. INFO[14:04:19 CST] Init operating system 
  3. INFO[14:04:20 CST] Start initializing kubesphere008 [10.26.31.121]  node=10.26.31.121 
  4. INFO[14:04:20 CST] Start initializing kubesphere001 [10.26.31.34]  node=10.26.31.34 
  5. INFO[14:04:20 CST] Start initializing kubesphere003 [10.26.31.42]  node=10.26.31.42 
  6. INFO[14:04:20 CST] Start initializing kubesphere005 [10.26.31.118]  node=10.26.31.118 
  7. INFO[14:04:20 CST] Start initializing kubesphere006 [10.26.31.119]  node=10.26.31.119 
  8. INFO[14:04:20 CST] Start initializing kubesphere004 [10.26.31.46]  node=10.26.31.46 
  9. INFO[14:04:20 CST] Start initializing kubesphere007 [10.26.31.120]  node=10.26.31.120 
  10. INFO[14:04:20 CST] Start initializing kubesphere002 [10.26.31.36]  node=10.26.31.36 
  11. INFO[14:06:34 CST] Complete initialization kubesphere005 [10.26.31.118]  node=10.26.31.118 
  12. INFO[14:06:56 CST] Complete initialization kubesphere002 [10.26.31.36]  node=10.26.31.36 
  13. INFO[14:07:04 CST] Complete initialization kubesphere006 [10.26.31.119]  node=10.26.31.119 
  14. INFO[14:07:04 CST] Complete initialization kubesphere007 [10.26.31.120]  node=10.26.31.120 
  15. INFO[14:07:07 CST] Complete initialization kubesphere003 [10.26.31.42]  node=10.26.31.42 
  16. INFO[14:07:11 CST] Complete initialization kubesphere004 [10.26.31.46]  node=10.26.31.46 
  17. INFO[14:08:23 CST] Complete initialization kubesphere001 [10.26.31.34]  node=10.26.31.34 
  18. INFO[14:10:57 CST] Complete initialization kubesphere008 [10.26.31.121]  node=10.26.31.121 
  19. INFO[14:10:57 CST] Init operating system successful. 

 部署

以上準備工作完成且再次檢查配置文件無誤后,執行安裝。

  1. ./kk create cluster -f config-sample.yaml 
  2. +-------------------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+ 
  3. name                    | sudo | curl | openssl | ebtables | socat | ipset | conntrack | docker | nfs client | ceph client | glusterfs client | time         | 
  4. +-------------------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+ 
  5. | kubesphere005 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  6. | kubesphere006 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  7. | kubesphere007 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  8. | kubesphere004 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  9. | kubesphere001 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  10. | kubesphere003 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  11. | kubesphere002 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  12. | kubesphere008 | y    | y    | y       | y        | y     | y     | y         | y      | y          | y           | y                | CST 14:16:55 | 
  13. +-------------------------+------+------+---------+----------+-------+-------+-----------+--------+------------+-------------+------------------+--------------+ 
  14.  
  15. This is a simple check of your environment. 
  16. Before installation, you should ensure that your machines meet all requirements specified at 
  17. https://github.com/kubesphere/kubekey#requirements-and-recommendations 
  18.  
  19. Continue this installation? [yes/no]: yes 
  20. INFO[14:17:25 CST] Downloading Installation Files 
  21. INFO[14:17:25 CST] Downloading kubeadm ... 
  22.  
  23. ************************************************** 
  24. ##################################################### 
  25. ###              Welcome to KubeSphere!           ### 
  26. ##################################################### 
  27.  
  28. Console: http://10.26.31.34:30880 
  29. Account: admin 
  30. Password: P@88w0rd 
  31.  
  32. NOTES: 
  33.   1. After logging into the console, please check the 
  34.      monitoring status of service components in 
  35.      the "Cluster Management". If any service is not 
  36.      ready, please wait patiently until all components  
  37.      are ready. 
  38.   2. Please modify the default password after login. 
  39.  
  40. ##################################################### 
  41. https://kubesphere.io             2021-02-05 15:47:21 
  42. ##################################################### 

 至此kubesphere安裝成功,可以通過瀏覽器訪問http://10.26.31.34:30880 驗證

驗證

您可以使用默認的帳戶和密碼 admin/P@88w0rd 登錄 KubeSphere 控制臺并開始使用 KubeSphere。請在登錄后修改默認密碼。


登錄后如下圖

 現在就可以開始您的kubesphere之旅了,更多詳情請參見官網。

 

責任編輯:姜華 來源: 今日頭條
相關推薦

2021-10-08 08:59:32

CentOSAll-in-One KubeSphere

2022-07-13 08:49:27

DevOpsKubeSphere

2024-05-31 08:53:40

2022-06-30 11:36:10

KubeSphereGitOpsLinux

2023-01-06 07:55:44

外網IP部署

2022-08-08 07:05:36

KubeSphere分級管理

2024-08-30 09:21:28

2011-01-21 14:03:35

Thunderbird安裝

2021-11-26 15:07:53

FreeDOSLinux

2011-01-21 09:00:21

sendmail

2014-03-18 09:27:30

2022-04-08 09:53:56

TektonJenkinsKubesphere

2024-05-21 13:03:45

2023-03-30 09:17:42

KubesprayKubernetesLinux

2020-10-10 20:30:05

Ansible自動化工具系統運維

2022-02-11 09:24:05

樹莓派OpenWrt固定IP服務

2023-04-02 21:45:46

Vim文本編輯器

2017-06-09 14:22:31

AnsibleTiDB分布式數據庫

2010-01-18 10:07:07

Freebsdbash

2011-03-10 15:47:45

點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 亚洲精品成人 | 狠狠干网站 | 免费的日批视频 | 午夜免费电影 | www.99热.com| 国产精品视频在线观看 | 亚洲第一在线 | www.天天干.com | 久久高清 | 最新av在线播放 | 亚洲av毛片成人精品 | 日日夜夜91 | 天堂在线一区 | 亚洲一区二区三区四区五区中文 | 毛片a级毛片免费播放100 | 99tv| 国产精品久久久久久婷婷天堂 | 久久久久久999 | 亚洲高清视频在线观看 | 日日操夜夜操天天操 | 中文字幕电影在线观看 | 午夜成人免费视频 | 99爱在线观看 | 伊人色综合久久天天五月婷 | 成人在线免费视频 | 久久人人网 | 国产一级一级毛片 | 国产精彩视频 | 人人澡人人射 | 国产在线观看av | 狠狠操av | 亚洲精品天堂 | 亚洲福利一区二区 | 在线观看中文字幕 | 亚洲午夜av | 一本一道久久a久久精品蜜桃 | 亚洲综合在线一区二区 | 高清国产一区二区 | 在线观看电影av | 欧美女优在线观看 | 日本午夜一区二区三区 |