-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into linodeOBJBucket_v1alpha2
- Loading branch information
Showing
21 changed files
with
705 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Flatcar | ||
|
||
This flavor supports provisioning k8s clusters outside of VPC using [Flatcar][flatcar] as a base OS. It uses kubeadm for | ||
setting up control plane and uses cilium with VXLAN for pod networking. | ||
|
||
## Specification | ||
| Supported Control Plane | CNI | Default OS | Installs ClusterClass | IPv4 | IPv6 | | ||
|-------------------------|--------|--------------|-----------------------|------|------| | ||
| kubeadm | Cilium | Flatcar | No | Yes | No | | ||
|
||
## Notes | ||
This flavor is identical to the default flavor with the exception that it provisions | ||
k8s clusters without VPC using [Flatcar][flatcar] as a base OS. Since it runs outside of VPC, native routing is not | ||
supported in this flavor and it uses VXLAN for pod to pod communication. | ||
|
||
## Usage | ||
|
||
### Initialization | ||
|
||
Before generating the cluster configuration, it is required to initialize the management cluster with [Ignition][ignition] support to provision Flatcar nodes: | ||
|
||
```bash | ||
export EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION=true | ||
clusterctl init --infrastructure linode-linode --addon helm | ||
``` | ||
|
||
### Import the Flatcar image | ||
|
||
Flatcar is not officially provided by Akamai/Linode so it is required to import a Flatcar image. Akamai support is available on Flatcar since the release [4012.0.0][release-4012]: all releases equal or greater than this major release will fit. | ||
|
||
To import the image, it is recommended to follow this documentation: https://www.flatcar.org/docs/latest/installing/community-platforms/akamai/#importing-an-image | ||
|
||
By following this import step, you will get the Flatcar image ID stored into `IMAGE_ID`. | ||
|
||
### Configure and deploy the workload cluster | ||
|
||
1. Set the Flatcar image name from the previous step: | ||
```bash | ||
export FLATCAR_IMAGE_NAME="${IMAGE_ID}" | ||
``` | ||
|
||
2. Generate cluster yaml | ||
```bash | ||
clusterctl generate cluster test-cluster \ | ||
--kubernetes-version v1.29.1 \ | ||
--infrastructure linode-linode \ | ||
--flavor kubeadm-flatcar > test-cluster.yaml | ||
``` | ||
2. Apply cluster yaml | ||
```bash | ||
kubectl apply -f test-cluster.yaml | ||
``` | ||
|
||
[flatcar]: https://www.flatcar.org/ | ||
[ignition]: https://coreos.github.io/ignition/ | ||
[release-4012]: https://www.flatcar.org/releases#release-4012.0.0 |
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
39 changes: 39 additions & 0 deletions
39
e2e/capl-cluster-flavors/kubeadm-flatcar-vpcless-capl-cluster/assert-capi-resources.yaml
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: capi-controller-manager | ||
namespace: capi-system | ||
status: | ||
availableReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: capl-controller-manager | ||
namespace: capl-system | ||
status: | ||
availableReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: capi-kubeadm-bootstrap-controller-manager | ||
namespace: kubeadm-bootstrap-system | ||
status: | ||
availableReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: capi-kubeadm-control-plane-controller-manager | ||
namespace: kubeadm-control-plane-system | ||
status: | ||
availableReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: caaph-controller-manager | ||
namespace: caaph-system | ||
status: | ||
availableReplicas: 1 |
Oops, something went wrong.