Update ReadME.MD

This commit is contained in:
Ares 2024-03-13 02:46:42 +00:00
parent f9fa8d5981
commit 6f36a4a39a
1 changed files with 48 additions and 30 deletions

View File

@ -1,33 +1,51 @@
# Kubernetes 1.27 ## 安装 Charm 2.x
## 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.
```Bash ```Bash
juju download ch:etcd --channel 1.27/stable --series focal snap install charm --channel=2.x --classic
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 ## 获取特定版本的 Bundle
juju download ch:calico --channel 1.27/stable --series focal
juju download ch:containerd --channel 1.27/stable --series focal ```Bash
juju download ch:kata --channel 1.27/stable --series focal wget https://raw.githubusercontent.com/charmed-kubernetes/bundle/main/releases/1.21/bundle.yaml
# 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
```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 <charm-name> resource-name=<filepath>
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
``` ```