-
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.
- Loading branch information
Showing
11 changed files
with
130 additions
and
4 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
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,28 @@ | ||
# VPCLess | ||
|
||
This flavor supports provisioning k8s clusters outside of VPC. It uses kubeadm for | ||
setting up control plane and uses cilium with VXLAN for pod networking. | ||
|
||
## Specification | ||
| Control Plane | CNI | Default OS | Installs ClusterClass | IPv4 | IPv6 | | ||
|---------------|--------|--------------|-----------------------|------|------| | ||
| Kubeadm | Cilium | Ubuntu 22.04 | No | Yes | No | | ||
## Prerequisites | ||
[Quickstart](../getting-started.md) completed | ||
|
||
## Notes | ||
This flavor is identical to the default flavor with the exception that it provisions | ||
k8s clusters without VPC. Since it runs outside of VPC, native routing is not | ||
supported in this flavor and it uses VXLAN for pod to pod communication. | ||
|
||
## Usage | ||
1. Generate cluster yaml | ||
```bash | ||
clusterctl generate cluster test-cluster \ | ||
--infrastructure linode:0.0.0 \ | ||
--flavor vpcless > test-cluster.yaml | ||
``` | ||
2. Apply cluster yaml | ||
```bash | ||
kubectl apply -f test-cluster.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,27 @@ | ||
apiVersion: addons.cluster.x-k8s.io/v1alpha1 | ||
kind: HelmChartProxy | ||
metadata: | ||
name: cilium-vxlan | ||
spec: | ||
clusterSelector: | ||
matchLabels: | ||
cni: cilium | ||
vxlan: "true" | ||
repoURL: https://helm.cilium.io/ | ||
chartName: cilium | ||
namespace: kube-system | ||
version: ${CILIUM_VERSION:=1.15.0} | ||
options: | ||
waitForJobs: true | ||
wait: true | ||
timeout: 5m | ||
valuesTemplate: | | ||
ipam: | ||
mode: kubernetes | ||
k8s: | ||
requireIPv4PodCIDR: true | ||
hubble: | ||
relay: | ||
enabled: true | ||
ui: | ||
enabled: true |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ kind: Kustomization | |
resources: | ||
- cilium.yaml | ||
- cilium-ipv6.yaml | ||
- cilium-vxlan.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
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,22 @@ | ||
apiVersion: addons.cluster.x-k8s.io/v1alpha1 | ||
kind: HelmChartProxy | ||
metadata: | ||
name: linode-cloud-controller-manager-vpcless | ||
spec: | ||
clusterSelector: | ||
matchLabels: | ||
ccm: linode | ||
vpcless: "true" | ||
repoURL: https://linode.github.io/linode-cloud-controller-manager/ | ||
chartName: ccm-linode | ||
namespace: kube-system | ||
version: ${LINODE_CCM_VERSION:=v0.4.3} | ||
options: | ||
waitForJobs: true | ||
wait: true | ||
timeout: 5m | ||
valuesTemplate: | | ||
secretRef: | ||
name: "linode-token-region" | ||
image: | ||
pullPolicy: IfNotPresent |
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,5 @@ | ||
$patch: delete | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1 | ||
kind: LinodeVPC | ||
metadata: | ||
name: ${VPC_NAME:=${CLUSTER_NAME}} |
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,37 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../default | ||
|
||
patches: | ||
- path: deleteLinodeVPC.yaml | ||
- target: | ||
group: infrastructure.cluster.x-k8s.io | ||
version: v1alpha1 | ||
kind: LinodeCluster | ||
patch: |- | ||
- op: remove | ||
path: /spec/vpcRef | ||
- target: | ||
group: controlplane.cluster.x-k8s.io | ||
version: v1beta1 | ||
kind: KubeadmControlPlane | ||
patch: |- | ||
- op: remove | ||
path: /spec/kubeadmConfigSpec/initConfiguration/skipPhases | ||
- target: | ||
group: cluster.x-k8s.io | ||
version: v1beta1 | ||
kind: Cluster | ||
patch: |- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
labels: | ||
cni: cilium | ||
vxlan: "true" | ||
ccm: linode | ||
vpcless: "true" | ||
csi: linode | ||
crs: ${CLUSTER_NAME}-crs |