-
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.
[improvement] Add new flavors (#325)
* Add new flavors
- Loading branch information
Showing
47 changed files
with
1,034 additions
and
198 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
This file was deleted.
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
templates/flavors/k3s/kustomization.yaml → ...es/flavors/k3s/default/kustomization.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
File renamed without changes.
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,77 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../vpcless | ||
|
||
patches: | ||
- target: | ||
group: cluster.x-k8s.io | ||
version: v1beta1 | ||
kind: Cluster | ||
patch: |- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 10.192.0.0/10 | ||
- fd02::/80 | ||
services: | ||
cidrBlocks: | ||
- 10.96.0.0/12 | ||
- fd03::/108 | ||
- target: | ||
group: controlplane.cluster.x-k8s.io | ||
version: v1beta1 | ||
kind: KThreesControlPlane | ||
patch: |- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KThreesControlPlane | ||
metadata: | ||
name: ${CLUSTER_NAME}-control-plane | ||
spec: | ||
kthreesConfigSpec: | ||
serverConfig: | ||
kubeControllerManagerArgs: | ||
- "node-cidr-mask-size-ipv6=96" | ||
clusterCidr: "10.192.0.0/10,fd02::/80" | ||
serviceCidr: "10.96.0.0/12,fd03::/108" | ||
- target: | ||
kind: HelmChartProxy | ||
name: .*-cilium | ||
patch: |- | ||
- op: replace | ||
path: /spec/valuesTemplate | ||
value: | | ||
bgpControlPlane: | ||
enabled: true | ||
ipv6: | ||
enabled: true | ||
ipam: | ||
mode: kubernetes | ||
k8s: | ||
requireIPv4PodCIDR: true | ||
hubble: | ||
relay: | ||
enabled: true | ||
ui: | ||
enabled: true | ||
- target: | ||
group: controlplane.cluster.x-k8s.io | ||
version: v1beta1 | ||
kind: KThreesControlPlane | ||
patch: |- | ||
- op: replace | ||
path: /spec/kthreesConfigSpec/preK3sCommands | ||
value: | ||
- | | ||
mkdir -p /etc/rancher/k3s/config.yaml.d/ | ||
echo -n "kubelet-arg: \"--node-ip=" >> /etc/rancher/k3s/config.yaml.d/capi-config.yaml | ||
echo -n "$(ip a s eth0 |grep -E 'inet ' |cut -d' ' -f6|cut -d/ -f1 | grep -E '192.168')" >> /etc/rancher/k3s/config.yaml.d/capi-config.yaml | ||
echo ",$(ip a s eth0 |grep -E 'inet6 ' |cut -d' ' -f6|cut -d/ -f1 | grep -vE 'fe80')\"" >> /etc/rancher/k3s/config.yaml.d/capi-config.yaml | ||
- sed -i '/swap/d' /etc/fstab | ||
- swapoff -a | ||
- hostnamectl set-hostname '{{ ds.meta_data.label }}' && hostname -F /etc/hostname |
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
Oops, something went wrong.