VMware Tanzu社区版初体验

VMware Tanzu社区版

VMware Tanzu Community Edition 是一个功能齐全、易于管理的 Kubernetes 平台,供学习者和用户使用。 它是一个免费的、社区支持的、开源的 VMware Tanzu 发行版,可以在几分钟内在您的本地工作站或您喜欢的云上安装和配置。

Linux Local Bootstrap Machine Prerequisites

1、检查cgroup

linux-mint-002@linux-mint-002:~/tanzu$ sudo docker info | grep -i cgroup Cgroup Driver: cgroupfs Cgroup Version: 1

如果 cgroups v2,需要设置 system.unified_cgroup_hierarchy=0

2、下载tanzu CLI

linux-mint-002@linux-mint-002:~/tanzu$ wget :1234/tce-linux-amd64-v0.9.1.tar.gz linux-mint-002@linux-mint-002:~/tanzu$ tar -zxf tce-linux-amd64-v0.9.1.tar.gz linux-mint-002@linux-mint-002:~/tanzu$ ls tce-linux-amd64-v0.9.1 tce-linux-amd64-v0.9.1.tar.gz linux-mint-002@linux-mint-002:~/tanzu$ cd tce-linux-amd64-v0.9.1/ linux-mint-002@linux-mint-002:~/tanzu/tce-linux-amd64-v0.9.1$ ls bin install.sh uninstall.sh

3、运行install.sh安装

linux-mint-002@linux-mint-002:~/tanzu/tce-linux-amd64-v0.9.1$ ./install.sh + ALLOW_INSTALL_AS_ROOT= + [[ 1000 -eq 0 ]] +++ dirname ./install.sh ++ cd . ++ pwd + MY_DIR=http://www.likecs.com/home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1 ++ uname + BUILD_OS=Linux + case "${BUILD_OS}" in + XDG_DATA_HOME=http://www.likecs.com/home/linux-mint-002/.local/share + echo /home/linux-mint-002/.local/share /home/linux-mint-002/.local/share ++ command -v tanzu + TANZU_BIN_PATH= + [[ -n '' ]] + TANZU_BIN_PATH=http://www.likecs.com/usr/local/bin + [[ :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: == *\:\/\h\o\m\e\/\l\i\n\u\x\-\m\i\n\t\-\0\0\2\/\b\i\n\:* ]] + echo Installing tanzu cli to /usr/local/bin Installing tanzu cli to /usr/local/bin + sudo install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu /usr/local/bin + mkdir -p /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-builder /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-cluster /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-conformance /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-diagnostics /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-kubernetes-release /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-login /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-management-cluster /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-package /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-pinniped-auth /home/linux-mint-002/.local/share/tanzu-cli + for plugin in "${MY_DIR}"/bin/tanzu-plugin* + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/bin/tanzu-plugin-standalone-cluster /home/linux-mint-002/.local/share/tanzu-cli + mkdir -p /home/linux-mint-002/.local/share/tce + install /home/linux-mint-002/tanzu/tce-linux-amd64-v0.9.1/uninstall.sh /home/linux-mint-002/.local/share/tce + TANZU_PLUGIN_CACHE=http://www.likecs.com/home/linux-mint-002/.cache/tanzu/catalog.yaml + [[ -n /home/linux-mint-002/.cache/tanzu/catalog.yaml ]] + echo 'Removing old plugin cache from /home/linux-mint-002/.cache/tanzu/catalog.yaml' Removing old plugin cache from /home/linux-mint-002/.cache/tanzu/catalog.yaml + rm -f /home/linux-mint-002/.cache/tanzu/catalog.yaml + tanzu init | initializing ✔ successfully initialized CLI ++ tanzu plugin repo list ++ grep tce + TCE_REPO= + [[ -z '' ]] + tanzu plugin repo add --name tce --gcp-bucket-name tce-tanzu-cli-plugins --gcp-root-path artifacts ++ tanzu plugin repo list ++ grep core-admin + TCE_REPO= + [[ -z '' ]] + tanzu plugin repo add --name core-admin --gcp-bucket-name tce-tanzu-cli-framework-admin --gcp-root-path artifacts-admin + echo 'Installation complete!' Installation complete!

4、下载kubectl

curl -LO https://dl.k8s.io/release/v1.22.0/bin/linux/amd64/kubectl sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

5、创建集群
需要你的资源满足如下要求

6 GB of RAM 15 GB of local machine disk storage for images 4 CPUs Local Docker Bootstrapping

1、初始化Tanzu 安装接口

linux-mint-002@linux-mint-002:~/tanzu/tce-linux-amd64-v0.9.1$ tanzu management-cluster create --ui -b 192.168.100.66:8080 Validating the pre-requisites... Serving kickstart UI at :8080 unable to open browser: exit status 3

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzfpgf.html