The features can be enabled in three ways:
- When installing Rancher with a CLI, you can use a feature flag to enable a feature by default.
- Enable features from the Rancher UI by going to the Settings page.
- after installing Rancher.
Each feature has two values:
- A default value, which can be configured with a flag or environment variable from the command line
If no value has been set, Rancher uses the default value.
Because the API sets the actual value and the command line sets the default value, that means that if you enable or disable a feature with the API or UI, it will override any value set with the command line.
For example, if you install Rancher, then set a feature flag to true with the Rancher API, then upgrade Rancher with a command that sets the feature flag to false, the default value will still be false, but the feature will still be enabled because it was set with the Rancher API. If you then deleted the set value (true) with the Rancher API, setting it to NULL, the default value (false) would take effect.
- : Rancher comes with Fleet preinstalled in v2.5+.
istio-virtual-service-ui
: This feature enables a , which are traffic management features of Istio.unsupported-storage-drivers
: This feature allows unsupported storage drivers. In other words, it enables types for storage providers and provisioners that are not enabled by default.
The below table shows the availability and default value for feature flags in Rancher:
* Generally Available. This feature is included in Rancher and it is not experimental.
Enabling Features when Starting Rancher
When you install Rancher, enable the feature you want with a feature flag. The command is different depending on whether you are installing Rancher on a single node or if you are doing a Kubernetes Installation of Rancher.
Note: Values set from the Rancher API will override the value passed in through the command line.
When installing Rancher with a Helm chart, use the option. In the below example, two features are enabled by passing the feature flag names names in a comma separated list:
Note: If you are installing an alpha version, Helm requires adding the --devel
option to the command.
Here is an example of a command for passing in the feature flag names when rendering the Helm template. In the below example, two features are enabled by passing the feature flag names in a comma separated list.
The Helm 3 command is as follows:
The Helm 2 command is as follows:
When installing Rancher with Docker, use the --features
option. In the below example, two features are enabled by passing the feature flag names in a comma separated list:
Enabling Features with the Rancher UI
- Go to the Global view and click Settings.
- Click the Feature Flags tab. You will see a list of experimental features.
- To enable a feature, go to the disabled feature you want to enable and click ⋮ > Activate.
Result: The feature is enabled.
- Go to the Global view and click Settings.
- Click the Feature Flags tab. You will see a list of experimental features.
- To disable a feature, go to the enabled feature you want to disable and click ⋮ > Deactivate.
Result: The feature is disabled.
Enabling Features with the Rancher API
- Go to
<RANCHER-SERVER-URL>/v3/features
. - In the
data
section, you will see an array containing all of the features that can be turned on with feature flags. The name of the feature is in theid
field. Click the name of the feature you want to enable. - In the Value drop-down menu, click True.
- Click Show Request.
- Click Send Request.
- Click Close.
- Go to
<RANCHER-SERVER-URL>/v3/features
. - In the
data
section, you will see an array containing all of the features that can be turned on with feature flags. The name of the feature is in theid
field. Click the name of the feature you want to enable. - In the upper left corner of the screen, under Operations, click Edit.
- In the Value drop-down menu, click False.
- Click Show Request.
- Click Send Request.
- Click Close.
Result: The feature is disabled.