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

使用kubekey安裝kubesphere

運維 系統(tǒng)運維
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 - 

 準備鏡像

如果您想讓安裝加快或者您的機房沒有外網(wǎng),可以使用公司內部的私有倉庫,預先把鏡像推送到私有倉庫中,我這里的倉庫使用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 

創(chuàng)建多節(jié)點集群

您可用使用 KubeKey 同時安裝 Kubernetes 和 KubeSphere,通過自定義配置文件中的參數(shù)創(chuàng)建多節(jié)點集群。

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

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

系統(tǒng)將創(chuàng)建默認的 config-sample.yaml 文件。您可以根據(jù)您的環(huán)境修改此文件。

  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 

 環(huán)境初始化

  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. 

 部署

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

  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。請在登錄后修改默認密碼。


登錄后如下圖

 現(xiàn)在就可以開始您的kubesphere之旅了,更多詳情請參見官網(wǎng)。

 

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

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

2022-08-08 07:05:36

KubeSphere分級管理

2023-01-06 07:55:44

外網(wǎng)IP部署

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

2017-06-09 14:22:31

AnsibleTiDB分布式數(shù)據(jù)庫

2010-01-18 10:07:07

Freebsdbash

2011-03-10 15:47:45

2011-06-21 17:45:27

Qt Creator

2025-06-30 09:20:02

Kafka開發(fā)Linux

2023-03-30 09:17:42

KubesprayKubernetesLinux

2020-10-10 20:30:05

Ansible自動化工具系統(tǒng)運維
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 亚洲精品中文字幕 | 精品一二区 | 欧美不卡网站 | 日本久久一区二区三区 | 国产极品车模吞精高潮呻吟 | 亚洲欧美一区二区在线观看 | 国产精品免费一区二区三区四区 | 国产专区在线 | 中文字幕在线观看一区 | 成人亚洲 | www.亚洲| 99色在线视频 | 精品国产乱码久久久久久闺蜜 | 久久久蜜桃 | 国产成人精品免费视频大全最热 | 精品久久伊人 | 亚洲精品美女视频 | 午夜视频一区二区 | 久久亚洲一区二区三区四区 | 男人的天堂视频网站 | 91午夜在线 | 99精品国产一区二区青青牛奶 | 婷婷福利 | 日韩一区二区三区视频 | 成人免费视频网站在线观看 | 色综合久久天天综合网 | 久久久久久蜜桃一区二区 | 中文字幕精品一区久久久久 | 免费播放一级片 | 午夜精品久久久久久久久久久久久 | 精品综合久久久 | 久久精品男人的天堂 | 国产三级精品三级在线观看四季网 | 国产精品一区二区久久 | 亚洲欧美日韩中文字幕一区二区三区 | 999国产视频 | 国产精品视频500部 a久久 | 91av小视频| 国产成人精品免费视频 | 一区二区中文字幕 | 精品国产一区二区三区免费 |