使用kubeKey安裝kubeSphere。如果你和作者一樣在部署時(shí)下載遇到了約束可用參考該文章,該文檔主要使用代理方案將包給提前下載了有些腳本更改了代理路徑,希望對(duì)您有所幫助!
網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、成都微信小程序、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了貢井免費(fèi)建站歡迎大家使用!下載安裝工具kubeKey 下載腳本wget https://get-kk.kubesphere.io
編輯腳本替換成代理URL#!/bin/sh
# Copyright 2020 The KubeSphere Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ISLINUX=true
OSTYPE="linux"
if [ "x$(uname)" != "xLinux" ]; then
echo ""
echo 'Warning: Non-Linux operating systems are not supported! After downloading, please copy the tar.gz file to linux.'
ISLINUX=false
fi
# Fetch latest version
if [ "x${VERSION}" = "x" ]; then
VERSION="$(curl -sL https://ghproxy.com/https://api.github.com/repos/kubesphere/kubekey/releases |
grep -o 'download/v[0-9]*.[0-9]*.[0-9]*/' |
sort --version-sort |
tail -1 | awk -F'/' '{ print $2}')"
VERSION="${VERSION##*/}"
fi
if [ -z "${ARCH}" ]; then
case "$(uname -m)" in
x86_64)
ARCH=amd64
;;
armv8*)
ARCH=arm64
;;
aarch64*)
ARCH=arm64
;;
*)
echo "${ARCH}, isn't supported"
exit 1
;;
esac
fi
if [ "x${VERSION}" = "x" ]; then
echo "Unable to get latest Kubekey version. Set VERSION env var and re-run. For example: export VERSION=v1.0.0"
echo ""
exit
fi
DOWNLOAD_URL="https://ghproxy.com/https://github.com/kubesphere/kubekey/releases/download/${VERSION}/kubekey-${VERSION}-${OSTYPE}-${ARCH}.tar.gz"
if [ "x${KKZONE}" = "xcn" ]; then
DOWNLOAD_URL="https://ghproxy.com/https://kubernetes.pek3b.qingstor.com/kubekey/releases/download/${VERSION}/kubekey-${VERSION}-${OSTYPE}-${ARCH}.tar.gz"
fi
echo ""
echo "Downloading kubekey ${VERSION} from ${DOWNLOAD_URL} ..."
echo ""
curl -fsLO "$DOWNLOAD_URL"
if [ $? -ne 0 ]; then
echo ""
echo "Failed to download Kubekey ${VERSION} !"
echo ""
echo "Please verify the version you are trying to download."
echo ""
exit
fi
if [ ${ISLINUX} = true ]; then
filename="kubekey-${VERSION}-${OSTYPE}-${ARCH}.tar.gz"
ret='0'
command -v tar >/dev/null 2>&1 || { ret='1'; }
if [ "$ret" -eq 0 ]; then
tar -xzf "${filename}"
else
echo "Kubekey ${VERSION} Download Complete!"
echo ""
echo "Try to unpack the ${filename} failed."
echo "tar: command not found, please unpack the ${filename} manually."
exit
fi
fi
echo ""
echo "Kubekey ${VERSION} Download Complete!"
echo ""
執(zhí)行腳本export VERSION=v1.1.1 & sh downloadKubekey.sh
使用kk安裝k8s集群./kk create config --with-kubernetes v1.20.4 --with-kubesphere v3.1.1
curl -L -o /opt/share/k8s/kubekey/kubekey/v1.20.4/amd64/cni-plugins-linux-amd64-v0.8.6.tgz https://ghproxy.com/https://github.com/containernetworking/plugins/releases/download/v0.8.6/cni-plugins-linux-amd64-v0.8.6.tgz
curl -L -o addons.md https://ghproxy.com/https://raw.githubusercontent.com/kubesphere/kubekey/master/docs/addons.md
kind: Cluster
metadata:
name: sample
spec:
hosts:
- {name: k8smaster, address: 192.168.122.110, internalAddress: 192.168.122.110, user: root, password:yourServerPassword}
- {name: k8snode1, address: 192.168.122.111, internalAddress: 192.168.122.111, user: root, password: yourServerPassword}
- {name: k8snode2, address: 192.168.122.112, internalAddress: 192.168.122.112, user: root, password: yourServerPassword}
roleGroups:
etcd:
- k8smaster
master:
- k8smaster
worker:
- k8snode1
- k8snode2
controlPlaneEndpoint:
domain: lb.kubesphere.local
address: ""
port: 6443
kubernetes:
version: v1.20.4
imageRepo: kubesphere
clusterName: cluster.local
network:
plugin: calico
kubePodsCIDR: 10.233.64.0/18
kubeServiceCIDR: 10.233.0.0/18
registry:
registryMirrors: []
insecureRegistries: []
addons:
- name: nfs-client
namespace: kube-system
sources:
chart:
name: nfs-client-provisioner
repo: https://charts.kubesphere.io/main
valuesFile: custom-nfs-client-values.yaml # or https://raw.githubusercontent.com/kubesphere/helm-charts/master/src/main/nfs-client-provisioner/values.yaml
# values also supports parameter lists
values:
- storageClass.defaultClass=true
- nfs.server=192.168.122.1
- nfs.path=/home/nfs/k8s
---
apiVersion: installer.kubesphere.io/v1alpha1
kind: ClusterConfiguration
metadata:
name: ks-installer
namespace: kubesphere-system
labels:
version: v3.1.1
spec:
persistence:
storageClass: ""
authentication:
jwtSecret: ""
zone: ""
local_registry: ""
etcd:
monitoring: true
endpointIps: localhost
port: 2379
tlsEnable: true
common:
redis:
enabled: true
redisVolumSize: 2Gi
openldap:
enabled: true
openldapVolumeSize: 2Gi
minioVolumeSize: 20Gi
monitoring:
endpoint: http://prometheus-operated.kubesphere-monitoring-system.svc:9090
es:
elasticsearchMasterVolumeSize: 4Gi
elasticsearchDataVolumeSize: 20Gi
logMaxAge: 7
elkPrefix: logstash
basicAuth:
enabled: false
username: ""
password: ""
externalElasticsearchUrl: ""
externalElasticsearchPort: ""
console:
enableMultiLogin: true
port: 30880
alerting:
enabled: true
# thanosruler:
# replicas: 1
# resources: {}
auditing:
enabled: true
devops:
enabled: true
jenkinsMemoryLim: 2Gi
jenkinsMemoryReq: 1500Mi
jenkinsVolumeSize: 8Gi
jenkinsJavaOpts_Xms: 512m
jenkinsJavaOpts_Xmx: 512m
jenkinsJavaOpts_MaxRAM: 2g
events:
enabled: true
ruler:
enabled: true
replicas: 2
logging:
enabled: true
logsidecar:
enabled: true
replicas: 2
metrics_server:
enabled: true
monitoring:
storageClass: ""
prometheusMemoryRequest: 400Mi
prometheusVolumeSize: 20Gi
multicluster:
clusterRole: host
network:
networkpolicy:
enabled: true
ippool:
type: none
topology:
type: none
openpitrix:
store:
enabled: true
servicemesh:
enabled: true
kubeedge:
enabled: true
cloudCore:
nodeSelector: {"node-role.kubernetes.io/worker": ""}
tolerations: []
cloudhubPort: "10000"
cloudhubQuicPort: "10001"
cloudhubHttpsPort: "10002"
cloudstreamPort: "10003"
tunnelPort: "10004"
cloudHub:
advertiseAddress:
- ""
nodeLimit: "100"
service:
cloudhubNodePort: "30000"
cloudhubQuicNodePort: "30001"
cloudhubHttpsNodePort: "30002"
cloudstreamNodePort: "30003"
tunnelNodePort: "30004"
edgeWatcher:
nodeSelector: {"node-role.kubernetes.io/worker": ""}
tolerations: []
edgeWatcherAgent:
nodeSelector: {"node-role.kubernetes.io/worker": ""}
tolerations: []
./kk create cluster -f config-sample.yaml
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購,新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧
本文名稱:使用kubeKey安裝kubeSphere-創(chuàng)新互聯(lián)
網(wǎng)頁URL:http://jinyejixie.com/article2/deppic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、用戶體驗(yàn)、網(wǎng)站建設(shè)、網(wǎng)站策劃、App設(shè)計(jì)、響應(yīng)式網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容