在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:kube-ansible开源软件地址:https://gitee.com/buxiaomo/kube-ansible开源软件介绍:kube-ansibleThis project will used ansible to deployment kubernetes. Read the documentation to see how the project is used then return here. Cloud Support
Architecture Support
OS SupportAll node please install python3.
Version of the relationship
How to usePreparation workClone codeGitee: https://gitee.com/buxiaomo/kube-ansible.git Gitlab: https://gitlab.com/buxiaomo/kube-ansible.git Github: https://github.com/buxiaomo/kube-ansible.git # ubuntuapt-get updateapt-get install git make -y# centosyum install git make vim -y# clone codegit clone https://github.com/buxiaomo/kube-ansible.git /usr/local/src/kube-ansiblecd /usr/local/src/kube-ansible Install ansibleif python3 not install on other node, please run command make runtime Download the way
about Makefile parameter
Download the default version using official# 1.13make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.13.12 ETCD_VERSION=3.2.24 CNI_VERSION=0.6.0 DOCKER_VERSION=18.09.0# 1.14make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.14.10 ETCD_VERSION=3.3.10 CNI_VERSION=0.7.5 DOCKER_VERSION=18.09.0# 1.15make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.15.12 ETCD_VERSION=3.3.10 CNI_VERSION=0.7.5 DOCKER_VERSION=18.09.0# 1.16make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.16.15 ETCD_VERSION=3.3.15 CNI_VERSION=0.7.5 DOCKER_VERSION=18.09.0# 1.17make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.17.17 ETCD_VERSION=3.4.3 CNI_VERSION=0.7.5 DOCKER_VERSION=18.09.0# 1.18make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.18.20 ETCD_VERSION=3.4.3 CNI_VERSION=0.8.5 DOCKER_VERSION=18.09.0# 1.19make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.19.16 ETCD_VERSION=3.4.9 CNI_VERSION=0.8.6 DOCKER_VERSION=18.09.0# 1.20make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.20.15 ETCD_VERSION=3.4.13 CNI_VERSION=0.8.7 DOCKER_VERSION=18.09.0# 1.21make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.21.10 ETCD_VERSION=3.4.13 CNI_VERSION=0.8.7 DOCKER_VERSION=18.09.0# 1.22make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.22.7 ETCD_VERSION=3.5.0 CNI_VERSION=0.9.1 DOCKER_VERSION=18.09.0# 1.23make deploy DOWNLOAD_WAY=official KUBE_VERSION=1.23.4 ETCD_VERSION=3.5.0 CNI_VERSION=0.9.1 DOCKER_VERSION=18.09.0 Download the default version using Nexuspip3 install requests./scripts/upload-to-nexus.py --url http://nexus.example.com \--repository kube-ansible --username admin --password admin123 \--docker 20.10.12 \--etcd 3.5.2 \--kubernetes 1.23.4 \--cni 1.1.0 \--containerd 1.6.0 \--runc 1.1.0 \--crictl 1.23.0make deploy DOWNLOAD_WAY=nexus \NEXUS_DOMAIN_NAME=http://nexus.example.com \NEXUS_REPOSITORY=kube-ansible \NEXUS_USERNAME=admin \NEXUS_PASSWORD=admin123 Kubernetes managementDeployca save to deployment server# default version## docker runtimemake deploy DOWNLOAD_WAY=official RUNTIME=docker## containerd runtimemake deploy DOWNLOAD_WAY=official RUNTIME=containerd# custom version## docker runtimemake deploy DOWNLOAD_WAY=official \RUNTIME=docker \KUBE_VERSION=1.14.4 \DOCKER_VERSION=19.03.8 \ETCD_VERSION=3.4.5## containerd runtimemake deploy DOWNLOAD_WAY=official \RUNTIME=containerd \KUBE_VERSION=1.14.4 \DOCKER_VERSION=19.03.8 \ETCD_VERSION=3.4.5 ca use to PKI serverabout pki server, you can reference here make deploy DOWNLOAD_WAY=official \PKI_URL=http://pki.example.com/v1/pki/projectPROJECT_NAME=demoPROJECT_ENV=dev Scale# default versionmake scale# custom versionmake scale KUBE_VERSION=1.16.8 DOCKER_VERSION=19.03.8 FLANNEL_VERSION=0.12.0 ETCD_VERSION=3.4.5 UpgradeDownload new kubernetes binaries, Reference here. make upgrade KUBE_VERSION=1.18.5 Kubernetes Extended applicationThis repo only deploy a kubernetes cluster and core application like 'coredns', 'calico', 'canal', 'flannel', not support extended application, like 'jenkins', 'ingress'... if you want to deploy extended application, please reference here. Known Issues
knowledge |
请发表评论