-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Ignition-based OS with helm chart
* Flag to activate integration with kubeadmconfigspec * deactivate containerd registry mirror config for now * alternate location for kube-proxy-configuration.yaml * alternate location for kubeadm.yml
- Loading branch information
Travis Holton
committed
Oct 24, 2023
1 parent
e8e754f
commit 2e5f05c
Showing
5 changed files
with
61 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -228,57 +228,8 @@ kubectl --kubeconfig=./kubeconfig.my-cluster get po -A | |
|
||
## Flatcar | ||
|
||
To deploy clusters which use Ignition such as Flatcar, you will need to override the following settings in your local `values.yaml`: | ||
To deploy clusters which use Ignition such as Flatcar, you will need to override the following setting in your local `values.yaml`: | ||
|
||
```yaml | ||
ignitionBasedOS: true | ||
controlPlane.kubeadmConfigSpec.initConfiguration.nodeRegistration.name: ${COREOS_OPENSTACK_HOSTNAME} | ||
controlPlane.kubeadmConfigSpec.clusterConfiguration.joinConfiguration.nodeRegistration.name: ${COREOS_OPENSTACK_HOSTNAME} | ||
controlPlane.kubeadmConfigSpec.clusterConfiguration.preKubeadmCommands: | ||
- export COREOS_OPENSTACK_HOSTNAME=${COREOS_OPENSTACK_HOSTNAME%.*} | ||
- envsubst < /etc/kubeadm.yml > /etc/kubeadm.yml.tmp | ||
- mv /etc/kubeadm.yml.tmp /etc/kubeadm.yml | ||
controlPlane.kubeadmConfigSpec.clusterConfiguration.format: ignition | ||
controlPlane.kubeadmConfigSpec.clusterConfiguration.ignition: | ||
containerLinuxConfig: | ||
additionalConfig: | | ||
systemd: | ||
units: | ||
- name: [email protected] | ||
enabled: true | ||
- name: kubeadm.service | ||
enabled: true | ||
dropins: | ||
- name: 10-flatcar.conf | ||
contents: | | ||
[Unit] | ||
Requires=containerd.service coreos-metadata.service | ||
After=containerd.service coreos-metadata.service | ||
[Service] | ||
EnvironmentFile=/run/metadata/flatcar | ||
nodeGroupDefaults.kubeadmConfigSpec.format: ignition | ||
nodeGroupDefaults.kubeadmConfigSpec.ignition: | ||
containerLinuxConfig: | ||
additionalConfig: | | ||
systemd: | ||
units: | ||
- name: [email protected] | ||
enabled: true | ||
- name: kubeadm.service | ||
enabled: true | ||
dropins: | ||
- name: 10-flatcar.conf | ||
contents: | | ||
[Unit] | ||
Requires=containerd.service coreos-metadata.service | ||
After=containerd.service coreos-metadata.service | ||
[Service] | ||
EnvironmentFile=/run/metadata/flatcar | ||
nodeGroupDefaults.kubeadmConfigSpec.joinConfiguration.nodeRegistration.name: ${COREOS_OPENSTACK_HOSTNAME} | ||
nodeGroupDefaults.kubeadmConfigSpec.preKubeadmCommands: | ||
- export COREOS_OPENSTACK_HOSTNAME=${COREOS_OPENSTACK_HOSTNAME%.*} | ||
- envsubst < /etc/kubeadm.yml > /etc/kubeadm.yml.tmp | ||
- mv /etc/kubeadm.yml.tmp /etc/kubeadm.yml | ||
``` |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -122,7 +122,36 @@ apiServer: | |
|
||
# Set ignition based OS | ||
# ignitionBasedOS: | ||
|
||
# Ignition Based OS specific configuration. | ||
ignitionKubeadmConfigSpec: | ||
initConfiguration: | ||
nodeRegistration: | ||
name: ${COREOS_OPENSTACK_HOSTNAME} | ||
joinConfiguration: | ||
nodeRegistration: | ||
name: ${COREOS_OPENSTACK_HOSTNAME} | ||
preKubeadmCommands: | ||
- export COREOS_OPENSTACK_HOSTNAME=${COREOS_OPENSTACK_HOSTNAME%.*} | ||
- envsubst < /etc/kubeadm.yml > /etc/kubeadm.yml.tmp | ||
- mv /etc/kubeadm.yml.tmp /etc/kubeadm.yml | ||
format: ignition | ||
ignition: | ||
containerLinuxConfig: | ||
additionalConfig: | | ||
systemd: | ||
units: | ||
- name: [email protected] | ||
enabled: true | ||
- name: kubeadm.service | ||
enabled: true | ||
dropins: | ||
- name: 10-flatcar.conf | ||
contents: | | ||
[Unit] | ||
Requires=containerd.service coreos-metadata.service | ||
After=containerd.service coreos-metadata.service | ||
[Service] | ||
EnvironmentFile=/run/metadata/flatcar | ||
# Settings for the control plane | ||
controlPlane: | ||
# The failure domains to use for control plane nodes | ||
|