Replies: 4 comments 15 replies
-
Instead of |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
UI Demo
|
Beta Was this translation helpful? Give feedback.
-
Maybe it needs a kv map for add-on to store the default value of variables. |
Beta Was this translation helpful? Give feedback.
-
Feature description
We are consider to add a Rancher Manager as a cluster installation add-on. Users can enable the add-on when installing the cluster which can help them to quickly start using Rancher in different cloud environments. AutoK3s will rely on the capabilities of K3s Helm Controller to realize this.
We will add a built-in add-on manifest(Rancher Manager Latest) for AutoK3s. Users can choose which version are they going to use when creating a cluster.
We need to support customizing the add-on as users needed, such as changing value settings, changing to a private repo chart, etc.
With this design, we can support other kinds of custom add-ons too. And users can also manage their own add-ons to install after K3s installation.
Storage
We need to add a new struct to save add-on template configurations.
We support several environment variables in the manifest file.
--set
args.For example:
The default
Version
value is an empty string. TheVersion
variables will be replaced byautok3s create ... --enable rancher --set rancher.Version=v2.7.3
.Cluster add-on installation
For creating a cluster, we can use the
Enable
option to save which add-ons have been enabled. And this option is designed to save enabled add-ons for a cluster.Plugin management
Users can create/update/delete add-ons both from CLI and UI.
If we want to switch to RPM, the version field is required. Users can also set the chart version, and we support switching the chart version when creating a cluster.
Default Template
We support several default template variables currently, including
public-ip-address
,internal-ip-address
andlocal-hostname
The default setting will be like
{{ providerTemplate "public-ip-address" }}
providerTemplate uses the default template parser in AutoK3s
"public-ip-address" is the default parameters that describe above.
The default template above will return the public-ip for the first master node instance.
CLI support
We will add the
autok3s add-ons
command for this feature and the following sub-command:We can support change settings when creating/updating add-ons by manifest.
The cluster creation CLI is like below:
specified plugin and version, e.g.
--enable rancher --set rancher.Version=v2.6.12
or use--enable rancher
to install the latest version of rancher.UI support
Add New Tab with
Settings > Add-ons
, and the page will show the following columns:On the list page, we will have a
Create
andDelete
button. The Create page is a normal page, but the following fields are specified.For each item, need to add
Update
andDelete
actions.For Create cluster page, in the Add-on Options tab, add an add-on dropdown list. When users choose an add-on, the UI shows an additional input to specify variables with
key=value
.Beta Was this translation helpful? Give feedback.
All reactions