You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/embedded-config.mdx
+55-46Lines changed: 55 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,30 @@
1
1
# Embedded Cluster Config (Beta)
2
2
3
-
This topic is a reference for the Replicated embedded cluster config custom resource. For more information about embedded cluster, see [Using Embedded Cluster](/vendor/embedded-overview).
3
+
This topic is a reference for the Replicated Embedded Cluster Config custom resource. For more information about Embedded Cluster, see [Using Embedded Cluster](/vendor/embedded-overview).
4
4
5
5
:::note
6
-
Embedded cluster is in beta. If you are instead looking for information about creating Kubernetes Installers with Replicated kURL, see the [Replicated kURL](/vendor/packaging-embedded-kubernetes) section.
6
+
Embedded Cluster is in beta. If you are instead looking for information about creating Kubernetes Installers with Replicated kURL, see the [Replicated kURL](/vendor/packaging-embedded-kubernetes) section.
7
7
:::
8
8
9
9
## Overview
10
10
11
-
To install your application in an embedded cluster, an embedded cluster config must be created in a release. Embedded cluster binaries are available only for releases that include an embedded cluster config.
11
+
To install your application with Embedded Cluster, an Embedded Cluster Config must be created in a release. Embedded Cluster installation artifacts are available only for releases that include an Embedded Cluster Config.
12
12
13
-
The embedded cluster config lets you define several aspects of the Kubernetes cluster that will be created.
13
+
The Embedded Cluster Config lets you define several aspects of the Kubernetes cluster that will be created.
14
14
15
-
**Example**:
15
+
### Limitations
16
+
17
+
* The Embedded Cluster Config does not support the use of Go template functions, including [KOTS template functions](/reference/template-functions-about).
18
+
19
+
For additional property-specific limitations, see the sections below.
You must specify which version of embedded cluster to install. Each version of embedded cluster includes particular versions of components like KOTS (admin console) and OpenEBS.
75
+
You must specify which version of Embedded Cluster to install. Each version of Embedded Cluster includes particular versions of components like KOTS (Admin Console) and OpenEBS.
70
76
71
-
For a full list of versions, see the embedded cluster [releases page](https://github.com/replicatedhq/embedded-cluster/releases) in GitHub. It's recommended to keep this version as up to date as possible because embedded cluster is changing rapidly.
77
+
For a full list of versions, see the Embedded Cluster [releases page](https://github.com/replicatedhq/embedded-cluster/releases) in GitHub. It's recommended to keep this version as up to date as possible because Embedded Cluster is changing rapidly.
72
78
73
-
## Roles
79
+
## roles
74
80
75
-
You can define node roles in the embedded cluster config. Roles are particularly useful for multi-node clusters. One or more roles can be selected and assigned to a node when it is joined to the cluster. Node roles can be used to determine which nodes run the Kubernetes control plane, and to assign application workloads to particular nodes.
81
+
You can define node roles in the Embedded Cluster Config. Roles are particularly useful for multi-node clusters. One or more roles can be selected and assigned to a node when it is joined to the cluster. Node roles can be used to determine which nodes run the Kubernetes control plane, and to assign application workloads to particular nodes.
76
82
77
83
:::note
78
84
Roles are not updated or changed after a node is added. If you need to change a node’s role, reset the node and add it again.
79
85
:::
80
86
81
-
### Controller
87
+
### controller
82
88
83
89
The controller role is required in any cluster. Nodes with this role are “controller workers” because they run the control plane and can run other workloads too. The first node in a cluster will always have the controller role because a cluster needs a control plane. Any node that doesn't have the controller role is a worker node.
84
90
@@ -93,7 +99,7 @@ spec:
93
99
name: management
94
100
```
95
101
96
-
### Custom
102
+
### custom
97
103
98
104
You can define custom roles for other purposes in the cluster. This is particularly useful when combined with labels.
99
105
@@ -108,7 +114,7 @@ spec:
108
114
- name: app
109
115
```
110
116
111
-
### Labels
117
+
### labels
112
118
113
119
Roles can have associated Kubernetes labels that are applied to any node in the cluster that is assigned that role. This is useful for things like assigning workloads to nodes.
114
120
@@ -129,19 +135,25 @@ spec:
129
135
app: "true" # Label applied to "app" nodes
130
136
```
131
137
132
-
## Helm Extensions
138
+
## extensions
139
+
140
+
If you need to install Helm charts before your application and as part of the Embedded Cluster itself, you can do this with Helm extensions. One situation where this is useful is if you want to ship an ingress controller, because Embedded Cluster does not yet include one.
141
+
142
+
Helm extensions are updated when new versions of your application are deployed from the Admin Console. So, for example, you can change the values for a Helm extension from one release to another, and those changes will be applied to the cluster when the new release is deployed.
143
+
144
+
The format for specifying Helm extensions uses the same k0s Helm extensions format from the k0s Configuration. For more information about these fields, see the [k0s documentation](https://docs.k0sproject.io/stable/helm-charts/#example).
133
145
134
-
If you need to install Helm charts before your application and as part of the embedded cluster itself, you can do this with Helm extensions. One situation where this is useful is if you want to ship an ingress controller, because embedded cluster does not yet include one.
146
+
### Limitation
135
147
136
-
Helm extensions are updated when new versions of your application are deployed from the admin console. So, for example, you can change the values for a Helm extension from one release to another, and those changes will be applied to the cluster when the new release is deployed.
148
+
If a Helm extension is removed from the Embedded Cluster Config, the associated Helm chart is not removed from the cluster.
137
149
138
-
**Limitation**: If a Helm extension is removed from the embedded cluster config, the associated Helm chart is not removed from the cluster. This is a limitation that we intend to address in the future.
150
+
### Requirements
139
151
140
-
The format for specifying Helm extensions uses the same k0s Helm extensions format from the k0s configuration. For more information about these fields, see the [k0s documentation](https://docs.k0sproject.io/stable/helm-charts/#example).
152
+
* The `version` field is required. Failing to specify a chart version will cause problems for upgrades.
141
153
142
-
The `version` field is required. Failing to specify a chart version will cause problems for upgrades.
154
+
* If you need to install multiple charts in a particular order, choose orders greater than or equal to 10. Numbers below 10 are reserved for use by Embedded Cluster to deploy things like a storage provider and the Admin Console. If an order is not provided, Helm extensions are installed with order 10.
If an order is not provided, Helm extensions are installed with order 10. Numbers below 10 are reserved for use by embedded cluster to deploy things like a storage provider and the admin console. If you need to install multiple charts in a particular order, choose orders greater than or equal to 10.
181
-
:::
182
-
183
-
## Unsupported Overrides
191
+
## unsupportedOverrides
184
192
185
193
:::important
186
-
This feature should be used with caution by advanced users who understand the risks and ramifications of changing the default configuration.
194
+
This feature should be used with caution by advanced users who understand the risks and ramifications of changing the default Configuration.
187
195
:::
188
196
189
-
Unsupported overrides allow you to override embedded cluster's default configuration, including the k0s config and the Helm values for extensions like KOTS and OpenEBS. This should be used with caution because changes here are untested and can disrupt or break embedded clusters. Any issues that are caused by unsupported overrides are not supported.
197
+
Unsupported overrides allow you to override Embedded Cluster's default Configuration, including the k0s Config and the Helm values for extensions like KOTS and OpenEBS. This should be used with caution because changes here are untested and can disrupt or break Embedded Clusters. Any issues that are caused by unsupported overrides are not supported.
190
198
191
-
While they should be used with caution, unsupported overrides are useful if you need to make changes that are not yet otherwise exposed by embedded cluster.
199
+
While they should be used with caution, unsupported overrides are useful if you need to make changes that are not otherwise exposed by Embedded Cluster.
192
200
193
201
### Override the k0s Config
194
202
195
-
By default, embedded cluster uses a k0s config that is tested and known to work for embedded clusters. In some circumstances, you might want to change the k0s config.
203
+
By default, Embedded Cluster uses a k0s Config that is tested and known to work for Embedded Clusters. In some circumstances, you might want to change the k0s Config.
196
204
197
-
For more information on the k0s config, see [Configuration options](https://docs.k0sproject.io/stable/configuration/#configuration-file-reference) in the k0s documentation.
205
+
For more information on the k0s Config, see [Configuration options](https://docs.k0sproject.io/stable/Configuration/#Configuration-file-reference) in the k0s documentation.
198
206
199
207
A common use case today is to adjust the default service port range to allow node ports on lower port numbers, as shown in the example below:
200
208
@@ -204,26 +212,34 @@ kind: Config
204
212
spec:
205
213
unsupportedOverrides:
206
214
k0s: |
207
-
config:
215
+
Config:
208
216
spec:
209
217
api:
210
218
extraArgs:
211
219
service-node-port-range: 80-32767
212
220
```
213
221
214
-
Overrides overwrite the corresponding fields in the k0s configuration. They are not merged into embedded cluster’s default configuration. When using overrides to override a list, for example, ensure that you include other elements in the list that embedded cluster includes by default.
222
+
#### Limtiations
215
223
216
-
**Limitation:** The `spec.api` and `spec.storage` keys in the k0s config cannot be changed after installation. Whereas most keys in the k0s config apply to the whole cluster, these two keys are set for each node. Embedded Cluster cannot update these keys on each individual node during updates, so they cannot be changed after installation.
224
+
* The `spec.api` and `spec.storage` keys in the k0s config cannot be changed after installation. Whereas most keys in the k0s config apply to the whole cluster, these two keys are set for each node. Embedded Cluster cannot update these keys on each individual node during updates, so they cannot be changed after installation.
225
+
226
+
* Overrides overwrite the corresponding fields in the k0s Configuration. They are not merged into Embedded Cluster’s default Configuration. When using overrides to override a list, for example, ensure that you include other elements in the list that Embedded Cluster includes by default.
217
227
218
228
### Override the Helm Values for Built-In Extensions
219
229
220
-
> Introduced in embedded cluster v1.2.0.
230
+
Embedded Cluster deploys built-in extensions like KOTS and OpenEBS to provide capabilities like storage and application management. These extensions are deployed with Helm, and the Helm values for each can be modified if necessary.
231
+
232
+
To modify these values, you can use the `unsupportedOverrides.builtInExtensions` key of the Embedded Cluster Config. Each chart you want to modify is an item in the array. The `name` key identifies the Helm chart that you want to modify, and the `values` key is a string where you specify your modified Helm values. Your modified values are merged into the values used by Embedded Cluster.
233
+
234
+
The following are the built-in extensions available for modification:
221
235
222
-
Embedded cluster deploys built-in extensions like KOTS and OpenEBS to provide capabilities like storage and application management. These extensions are deployed with Helm, and the Helm values for each can be modified if necessary.
236
+
- `openebs`
237
+
- `admin-console`
238
+
- `velero`
239
+
- `embedded-cluster-operator`
223
240
224
-
To modify these values, you can use the `unsupportedOverrides.builtInExtensions` key of the embedded cluster config. Each chart you want to modify is an item in the array. The `name` key identifies the Helm chart that you want to modify, and the `values` key is a string where you specify your modified Helm values. Your modified values are merged into the values used by embedded cluster.
Copy file name to clipboardExpand all lines: docs/reference/template-functions-about.mdx
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,22 @@ All functionality of the Go templating language, including if statements, loops,
14
14
15
15
### Supported File Types
16
16
17
-
You can use KOTS template functions in any Kubernetes manifest files for applications deployed by KOTS, such as:
17
+
You can use KOTS template functions in Kubernetes manifest files for applications deployed by KOTS, such as:
18
18
* Custom resources in the `kots.io` API group like Application, Config, or HelmChart
19
-
:::note
20
-
Not all fields in the Config custom resource support templating. For more information, see [Item Properties](/reference/custom-resource-config#item-properties) in _Config_.
21
-
:::
22
19
* Custom resources in other API groups like Preflight, SupportBundle, or Backup
23
20
* Kubernetes objects like Deployments, Services, Secrets, or ConfigMaps
24
21
* Kubernetes Operators
25
22
23
+
### Limitations
24
+
25
+
* Not all fields in the Config and Application custom resources support templating. For more information, see [Application](/reference/custom-resource-application) and [Item Properties](/reference/custom-resource-config#item-properties) in _Config_.
26
+
27
+
* Templating is not supported in the [Embedded Cluster Config](/reference/embedded-config) resource.
28
+
29
+
* KOTS template functions are not directly supported in Helm charts. For more information, see [Helm Charts](#helm-charts) below.
30
+
31
+
* KOTS template functions do not support arbitrary string templating because the manifests consumed by KOTS must be valid YAML. For more information, see [Syntax](#syntax) below.
32
+
26
33
### Helm Charts
27
34
28
35
KOTS template functions are _not_ directly supported in Helm charts. However, the HelmChart custom resource provides a way to map values rendered by KOTS template functions to Helm chart values. This allows you to use KOTS template functions with Helm charts without making changes to those Helm charts.
0 commit comments