Skip to content

Commit 8e06caf

Browse files
authored
Merge pull request #5263 from tormath1/tormath1/flatcar-marketplace
template/flatcar-sysext: use marketplace images
2 parents 5b2cbce + 2ccc908 commit 8e06caf

File tree

5 files changed

+32
-26
lines changed

5 files changed

+32
-26
lines changed

docs/book/src/self-managed/flatcar.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CAPZ enables you to create Kubernetes clusters using Flatcar Container Linux on
66

77
### The `flatcar-sysext` flavor (**recommended**)
88

9-
This variant relies on a vanilla Flatcar Community Gallery image which leverages the [systemd-sysext](https://www.flatcar.org/docs/latest/provisioning/sysext/) feature to install and update Kubernetes components. The Kubernetes version is not bound to the Flatcar version (i.e. Flatcar can be upgraded independently from Kubernetes and vice versa).
9+
This variant relies on a vanilla Flatcar marketplace image which leverages the [systemd-sysext](https://www.flatcar.org/docs/latest/provisioning/sysext/) feature to install and update Kubernetes components. The Kubernetes version is not bound to the Flatcar version (i.e. Flatcar can be upgraded independently from Kubernetes and vice versa).
1010

1111
The template comes with a [systemd-sysupdate](https://www.freedesktop.org/software/systemd/man/latest/sysupdate.d.html) configuration file that will download each new patch version of Kubernetes (i.e. if you start with Kubernetes 1.x.y, systemd-sysupdate will automatically pull 1.x.y+1 but not 1.x+1.y). Please note that this behavior is disabled by default. To enable the Kubernetes auto-update you can:
1212
* Update the template to enable the `systemd-sysupdate.timer`
@@ -18,13 +18,13 @@ To coordinate the node reboot, we recommend using [Kured](https://github.com/kub
1818

1919
Find the latest published images:
2020
```console
21-
az sig image-version list --gallery-image-definition flatcar-stable-amd64 --gallery-name flatcar --resource-group flatcar-image-gallery-publishing -o table
22-
Location Name ProvisioningState ResourceGroup
23-
---------- -------- ------------------- --------------------------------
24-
westeurope 3374.2.0 Succeeded flatcar-image-gallery-publishing
25-
westeurope 3374.2.1 Succeeded flatcar-image-gallery-publishing
26-
westeurope 3374.2.3 Succeeded flatcar-image-gallery-publishing
27-
....
21+
az vm image list --offer flatcar-container-linux-corevm-amd64 --publisher kinvolk --sku stable-gen2 -o table --all
22+
Architecture Offer Publisher Sku Urn Version
23+
-------------- ------------------------------------ ----------- ----------- ----------------------------------------------------------------- ---------
24+
...
25+
x64 flatcar-container-linux-corevm-amd64 kinvolk stable-gen2 kinvolk:flatcar-container-linux-corevm-amd64:stable-gen2:3975.2.0 3975.2.0
26+
x64 flatcar-container-linux-corevm-amd64 kinvolk stable-gen2 kinvolk:flatcar-container-linux-corevm-amd64:stable-gen2:3975.2.1 3975.2.1
27+
x64 flatcar-container-linux-corevm-amd64 kinvolk stable-gen2 kinvolk:flatcar-container-linux-corevm-amd64:stable-gen2:3975.2.2 3975.2.2
2828
```
2929

3030
### The `flatcar` flavor

templates/cluster-template-flatcar-sysext.yaml

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/flavors/flatcar-sysext/machine-deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ spec:
3030
template:
3131
spec:
3232
image:
33-
computeGallery:
34-
gallery: flatcar-23485951-527a-48d6-9d11-6931ff0afc2e
35-
name: flatcar-stable-amd64
33+
marketplace:
3634
version: ${FLATCAR_VERSION}
35+
publisher: kinvolk
36+
offer: flatcar-container-linux-corevm-amd64
37+
sku: stable-gen2
3738
osDisk:
3839
diskSizeGB: 128
3940
osType: Linux

templates/flavors/flatcar-sysext/patches/kubeadm-controlplane.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ spec:
9595
template:
9696
spec:
9797
image:
98-
computeGallery:
99-
gallery: flatcar-23485951-527a-48d6-9d11-6931ff0afc2e
100-
name: flatcar-stable-amd64
98+
marketplace:
10199
version: ${FLATCAR_VERSION}
100+
publisher: kinvolk
101+
offer: flatcar-container-linux-corevm-amd64
102+
sku: stable-gen2

templates/test/ci/cluster-template-prow-flatcar-sysext.yaml

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)