自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

使用kubekey安裝kubesphere

運(yùn)維 系統(tǒng)運(yùn)維
KubeKey 是新一代 Kubernetes 和 KubeSphere 安裝器,可幫助您以簡(jiǎn)單、快速、靈活的方式安裝 Kubernetes 和 KubeSphere。

[[380964]]

 下載 KubeKey

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

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

 準(zhǔn)備鏡像

如果您想讓安裝加快或者您的機(jī)房沒有外網(wǎng),可以使用公司內(nèi)部的私有倉(cāng)庫(kù),預(yù)先把鏡像推送到私有倉(cāng)庫(kù)中,我這里的倉(cāng)庫(kù)使用harbor

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

  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 

 推送鏡像到私有倉(cāng)庫(kù),待腳本完成即可

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

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

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

創(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)建默認(rèn)的 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ǔn)備工作完成且再次檢查配置文件無誤后,執(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 驗(yàn)證

驗(yàn)證

您可以使用默認(rèn)的帳戶和密碼 admin/P@88w0rd 登錄 KubeSphere 控制臺(tái)并開始使用 KubeSphere。請(qǐng)?jiān)诘卿浐笮薷哪J(rèn)密碼。


登錄后如下圖

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

 

責(zé)任編輯:姜華 來源: 今日頭條
相關(guān)推薦

2021-10-08 08:59:32

CentOSAll-in-One KubeSphere

2022-07-13 08:49:27

DevOpsKubeSphere

2024-05-31 08:53:40

2023-01-06 07:55:44

外網(wǎng)IP部署

2022-06-30 11:36:10

KubeSphereGitOpsLinux

2022-08-08 07:05:36

KubeSphere分級(jí)管理

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

2020-06-30 15:39:36

青云容器集群

2017-06-09 14:22:31

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

2011-06-21 17:45:27

Qt Creator

2011-03-10 15:47:45

2010-01-18 10:07:07

Freebsdbash

2020-10-10 20:30:05

Ansible自動(dòng)化工具系統(tǒng)運(yùn)維

2023-04-02 21:45:46

Vim文本編輯器
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)