-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OSDOCS-16491: adds feature gates MicroShift #101637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ShaunaDiaz
wants to merge
1
commit into
openshift:main
Choose a base branch
from
ShaunaDiaz:OSDOCS-16491
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| :_mod-docs-content-type: ASSEMBLY | ||
| [id="microshift-feature-gates"] | ||
| = Using feature gates to develop solutions for your applications | ||
| include::_attributes/attributes-microshift.adoc[] | ||
| :context: microshift-feature-gates | ||
|
|
||
| toc::[] | ||
|
|
||
| [role="_abstract"] | ||
| Use feature gates to test new Kubernetes features for potential use in your {microshift-short} deployments. | ||
|
|
||
| include::modules/microshift-feature-gates-con.adoc[leveloffset=+1] | ||
|
|
||
| include::modules/microshift-feature-gates-using.adoc[leveloffset=+1] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // microshift_configuring/microshift-feature-gates.adoc | ||
|
|
||
| :_mod-docs-content-type: CONCEPT | ||
| [id="microshift-feature-gates-con_{context}"] | ||
| = Understanding feature gates for {microshift-short} | ||
|
|
||
| [role="_abstract"] | ||
| As an application developer for edge computing environments, you can now experiment with upcoming Kubernetes features to evaluate their potential benefits for specific use cases. | ||
|
|
||
| By using feature gates, you can test various enhancements that might improve performance in your resource-constrained edge environments. For example, you can try advanced CPU management, enhanced scheduling features, or experimental storage options. | ||
|
|
||
| [WARNING] | ||
| ==== | ||
| When you trial new features using feature gates, your {microshift-short} can become unstable or lose data. Enable feature gates only in non-production environments. | ||
| ==== | ||
|
|
||
| When planning to use feature gates for development, consider the following details: | ||
|
|
||
| * After you specify feature gates, you cannot update {microshift-short}. | ||
| * If your configuration is not valid, {microshift-short} can fail to start. | ||
| * The Kubernetes components you enable handle feature gate validation. | ||
| * Feature gates are disabled by default in {microshift-short}. After you enable feature gates, you cannot disable them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // microshift_configuring/microshift-feature-gates.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="microshift-feature-gates-using_{context}"] | ||
| = Using feature gates for {microshift-short} | ||
|
|
||
| [role="_abstract"] | ||
| To use feature gates in your development environment, you must specify them in the `config.yaml` file or create a configuration snippet file. You must also configure the feature set you want to work with. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| * A `config.yaml` configuration file takes precedence over built-in settings. The `config.yaml` file is read every time the {microshift-short} service starts. | ||
| * Configuration snippet YAMLs take precedence over both built-in settings and the `config.yaml` configuration file. | ||
| * After you enable feature gates, you cannot disable them. | ||
| ==== | ||
|
|
||
| .Prerequisites | ||
|
|
||
| * You installed {microshift-short}. | ||
| * You installed the {oc-first}. | ||
| * You have `sudo` privileges on the {microshift-short} host. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Apply features gates in one of the two following ways: | ||
|
|
||
| .. Update the {microshift-short} `config.yaml` configuration file by making a copy of the provided `config.yaml.default` file in the `/etc/microshift/` directory. Name it `config.yaml` and keep it in the source directory. | ||
|
|
||
| .. Use a configuration snippet to apply the ingress control settings you want. To do this, create a configuration snippet YAML file and put it in the `/etc/microshift/config.d/` configuration directory. For example, `/etc/microshift/config.d/10-feature-gate.yaml`. | ||
|
|
||
| . Replace the default values in the `xyz` section of the {microshift-short} YAML with your valid values, or create a configuration snippet file with the sections you need. | ||
| + | ||
| .Feature gates configuration with example values | ||
ShaunaDiaz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [source,yaml] | ||
| ---- | ||
| # ... | ||
| apiServer: | ||
| featureGates: | ||
| featureSet: TechPreviewNoUpgrade | ||
| # ... | ||
| apiServer: | ||
| featureGates: | ||
| featureSet: CustomNoUpgrade | ||
| customNoUpgrade: | ||
| enabled: | ||
| - "CPUManagerPolicyAlphaOptions" | ||
| - "MemoryQoS" | ||
| disabled: | ||
| - "SomeDefaultEnabledFeature" | ||
| # ... | ||
| ---- | ||
|
|
||
| . Use the following configuration rules: | ||
| .. You must set the `featureSet` field when configuring feature gates. | ||
| .. When you use `customNoUpgrade` feature, you must set the `featureSet` to `CustomNoUpgrade`. The `customNoUpgrade` field is only valid when `featureSet: CustomNoUpgrade`. | ||
|
|
||
| . Configure any settings required for the feature set you want to work with. | ||
|
|
||
| . Restart {microshift-short} to apply the configuration changes by running the following command: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ sudo systemctl restart microshift | ||
| ---- | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.