From 6f36a4a39a98ab02bccf85720a18e2fca92cf02d Mon Sep 17 00:00:00 2001 From: Ares Date: Wed, 13 Mar 2024 02:46:42 +0000 Subject: [PATCH] Update ReadME.MD --- ReadME.MD | 78 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 48 insertions(+), 30 deletions(-) diff --git a/ReadME.MD b/ReadME.MD index 6ddfd6f..31eefab 100644 --- a/ReadME.MD +++ b/ReadME.MD @@ -1,33 +1,51 @@ -# Kubernetes 1.27 - -## Important Change - -### Support for Juju 3.1 - -With this release, Charmed Kubernetes can be deployed with a juju 2.9, 3.0 or 3.1 controller. This release is intended to serve as a migration point away from juju 2.9 deployments which is why we offer a tested strategy of our charms on both 2.9 and 3.1 releases. - -### Cilium CNI - -We are excited to announce the inclusion of Cilium in our portfolio of Container Network Interface solutions for Charmed Kubernetes. Cilium is a powerful CNI, network security and observability solution which provides enhanced performance and improved security for containerised applications. The current version of Cilium shipped within the charm is 1.12.5. It also comes bundled with Hubble: a networking and security observability solution that offers real time insights of the network and the security state of the cluster with little performance impact. - -### Cloud Providers and Cloud Storage - -Operator charms for external cloud providers have been expanded and now include AWS, Azure, GCP, and vSphere. Previously, cloud-specific features such as load balancing and storage were managed by Kubernetes in-tree solutions. Today, cloud provider charms offer flexible management of these features decoupled from any specific Kubernetes release. - -### NVIDIA Network Operator - -The NVIDIA network operator charm is a new addition to the Charmed Kubernetes ecosystem. It simplifies the deployment, operation, and management of NVIDIA networking resources for Kubernetes. +## 安装 Charm 2.x ```Bash -juju download ch:etcd --channel 1.27/stable --series focal -juju download ch:easyrsa --channel 1.27/stable --series focal -juju download ch:kubernetes-control-plane --channel 1.27/stable --series focal -juju download ch:kubernetes-worker --channel 1.27/stable --series focal -juju download ch:calico --channel 1.27/stable --series focal -juju download ch:containerd --channel 1.27/stable --series focal -juju download ch:kata --channel 1.27/stable --series focal -# Extend -juju download ch:kubeapi-load-balancer --channel 1.27/stable --series focal -juju download ch:keepalived --channel 1.27/stable --series focal -juju download ch:coredns --channel 1.27/stable --series focal +snap install charm --channel=2.x --classic +``` + +## 获取特定版本的 Bundle + +```Bash +wget https://raw.githubusercontent.com/charmed-kubernetes/bundle/main/releases/1.21/bundle.yaml +``` + +或是 + +```Bash +# 对于 1.23 版本以及以前 +charm pull cs:~containers/charmed-kubernetes-657 + +# 对于 1.24 版本以及以后 +juju download ch:charmed-kubernetes --channel 1.24/stable --series focal +``` + +## 拉取 Bundle 中的相关组件 + +```Bash +# 对于 1.23 版本以及以前 +charm pull cs:~containers/etcd-607 + +# 对于 1.24 版本以及以后 +juju download ch:etcd --channel 1.24/stable --series focal +``` + +## 拉取相关组件的资源包 + +```Bash +charm list-resources cs:~containers/calico-812 +wget https://api.jujucharms.com/charmstore/v5/~containers/calico-812/resource/calico/1027 -O calico.tgz +wget https://api.jujucharms.com/charmstore/v5/~containers/calico-812/resource/calico-arm64/1026 -O calico-arm64.tgz +wget https://api.jujucharms.com/charmstore/v5/~containers/calico-812/resource/calico-node-image/709 -O calico-node-image.tgz +wget https://api.jujucharms.com/charmstore/v5/~containers/calico-812/resource/calico-upgrade/854 -O calico-upgrade.tgz +wget https://api.jujucharms.com/charmstore/v5/~containers/calico-812/resource/calico-upgrade-arm64/854 -O calico-upgrade-arm64.tgz +... +``` + +## 向 Controller 上传资源 + +```Bash +# ex: juju attach-resource resource-name= +juju attach-resource calico calico=/home/sa/charm/calico/calico-amd64.tar.gz +juju attach-resource calico calico-upgrade=/home/sa/charm/calico/calico-upgrade-amd64.tar.gz ``` \ No newline at end of file