|
2 | 2 |
|
3 | 3 | ### Prerequsities |
4 | 4 |
|
5 | | -This guide assumes that you are familiar with understanding and creating |
6 | | -[helm charts](https://helm.sh) - which are consumed by |
7 | | -[fabrikate](https://github.com/microsoft/fabrikate) and `spk`. |
| 5 | +- This guide assumes that you are familiar with understanding and creating |
| 6 | + [helm charts](https://helm.sh) - which are consumed by |
| 7 | + [fabrikate](https://github.com/microsoft/fabrikate) and `spk`. |
8 | 8 |
|
9 | | -It also assumes that you have set up your `spk` project, and installed all |
10 | | -necessary pipelines created via `spk project init` (the lifecycle pipeline), |
11 | | -`spk service create` (build update hld pipeline), and `spk hld init` (manifest |
12 | | -generation pipeline). |
| 9 | +- It also assumes that you have set up your `spk` project, and installed all |
| 10 | + necessary pipelines created via `spk project init` (the lifecycle pipeline), |
| 11 | + `spk service create` (build update hld pipeline), and `spk hld init` (manifest |
| 12 | + generation pipeline). |
| 13 | + |
| 14 | +- A helm chart with values.yaml containing |
| 15 | + [mandatory values](#mandatory-helm-chart-configuration). |
13 | 16 |
|
14 | 17 | ### Introduction |
15 | 18 |
|
@@ -194,23 +197,33 @@ services: |
194 | 197 | - The backing service `fabrikam-k8s-svc-dev`, (highlighted in green) is |
195 | 198 | generated from `k8sBackend` and the ring name (`dev`). |
196 | 199 |
|
197 | | -#### Helm Configuration |
| 200 | +#### Mandatory Helm Chart Configuration |
198 | 201 |
|
199 | 202 | Take a look at the [packaged reference helm chart](./sample-helm-chart), it |
200 | 203 | contains a `values.yaml`, which is a set of default values for helm charts: |
201 | 204 |
|
202 | 205 | ```yaml |
203 | 206 | image: |
204 | 207 | tag: stable |
| 208 | + repository: "" |
205 | 209 |
|
206 | 210 | serviceName: "service" |
207 | 211 | ``` |
208 | 212 |
|
209 | | -This configuration is overriden by the values from the |
210 | | -[top-level configuration](#top-level-configuration) and the |
211 | | -[ring-level-configuration](#ring-level-configuration) files, when `Fabrikate` is |
212 | | -invoked in the manifest generation pipeline, thus allowing incremental builds to |
213 | | -flow through pipelines to a cluster. |
| 213 | +This set of values is the _required_ set of values for `spk` created pipelines |
| 214 | +to operationalize building, updating, and deploying container images to your |
| 215 | +cluster. |
| 216 | + |
| 217 | +`image.tag`: This configuration is overriden by the values from the |
| 218 | +[top-level configuration](#top-level-configuration) |
| 219 | + |
| 220 | +`serviceName`: This configuration is overriden by the values form the |
| 221 | +[ring-level-configuration](#ring-level-configuration) file |
| 222 | + |
| 223 | +`image.repository`: This configuration is a special configuration, that can |
| 224 | +_only_ configured by a pipeline variable, `ACR_NAME`. `ACR_NAME` must be |
| 225 | +configured to be strictly the name of the Azure Container Registry, _not_ it's |
| 226 | +fully qualified url ie. `fabrikam` instead of `fabrikam.azurecr.io`. |
214 | 227 |
|
215 | 228 | ### Manifest generation pipeline |
216 | 229 |
|
|
0 commit comments