Skip to content

Commit

Permalink
Update capi
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Dec 13, 2024
1 parent 89c8a55 commit 6b9ccb3
Show file tree
Hide file tree
Showing 39 changed files with 199,169 additions and 0 deletions.
6,939 changes: 6,939 additions & 0 deletions files/cluster-api/v1.7.9/bootstrap-components.yaml

Large diffs are not rendered by default.

27,409 changes: 27,409 additions & 0 deletions files/cluster-api/v1.7.9/cluster-api-components.yaml

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions files/cluster-api/v1.7.9/cluster-template-development.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
spec:
clusterNetwork:
services:
cidrBlocks: ${SERVICE_CIDR:=["10.128.0.0/12"]}
pods:
cidrBlocks: ${POD_CIDR:=["192.168.0.0/16"]}
serviceDomain: ${SERVICE_DOMAIN:="cluster.local"}
topology:
class: quick-start
controlPlane:
metadata: {}
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
variables:
- name: imageRepository
value: ""
- name: etcdImageTag
value: ""
- name: coreDNSImageTag
value: ""
- name: podSecurityStandard
value:
enabled: ${POD_SECURITY_STANDARD_ENABLED:=true}
enforce: "baseline"
audit: "restricted"
warn: "restricted"
version: ${KUBERNETES_VERSION}
workers:
machineDeployments:
- class: default-worker
name: md-0
replicas: ${WORKER_MACHINE_COUNT}
machinePools:
- class: default-worker
name: mp-0
replicas: ${WORKER_MACHINE_COUNT}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: "${CLUSTER_NAME}"
namespace: "${NAMESPACE}"
spec:
clusterNetwork:
services:
cidrBlocks: ${SERVICE_CIDR:=["10.128.0.0/12"]}
pods:
cidrBlocks: ${POD_CIDR:=["192.168.0.0/16"]}
serviceDomain: ${SERVICE_DOMAIN:="cluster.local"}
topology:
class: in-memory-quick-start
version: ${KUBERNETES_VERSION}
controlPlane:
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
workers:
machineDeployments:
- class: default-worker
name: md-0
replicas: ${WORKER_MACHINE_COUNT}
149 changes: 149 additions & 0 deletions files/cluster-api/v1.7.9/clusterclass-in-memory-quick-start.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: ClusterClass
metadata:
name: in-memory-quick-start
spec:
controlPlane:
metadata:
annotations:
machineInfrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: InMemoryMachineTemplate
name: in-memory-quick-start-control-plane
ref:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: KubeadmControlPlaneTemplate
name: in-memory-quick-start-control-plane
machineHealthCheck:
unhealthyConditions:
- type: Ready
status: Unknown
timeout: 300s
- type: Ready
status: "False"
timeout: 300s
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: InMemoryClusterTemplate
name: in-memory-quick-start-cluster
workers:
machineDeployments:
- class: default-worker
template:
bootstrap:
ref:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: in-memory-quick-start-default-worker-bootstraptemplate
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: InMemoryMachineTemplate
name: in-memory-quick-start-default-worker-machinetemplate
machineHealthCheck:
unhealthyConditions:
- type: Ready
status: Unknown
timeout: 300s
- type: Ready
status: "False"
timeout: 300s
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: InMemoryClusterTemplate
metadata:
name: in-memory-quick-start-cluster
spec:
template:
spec: {}
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: KubeadmControlPlaneTemplate
metadata:
name: in-memory-quick-start-control-plane
spec:
template:
spec:
kubeadmConfigSpec:
clusterConfiguration:
apiServer:
certSANs:
- localhost
- 127.0.0.1
- 0.0.0.0
- host.docker.internal
initConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
joinConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: InMemoryMachineTemplate
metadata:
name: in-memory-quick-start-control-plane
spec:
template:
spec:
behaviour:
vm:
provisioning:
startupDuration: "30s"
startupJitter: "0.2"
node:
provisioning:
startupDuration: "10s"
startupJitter: "0.2"
apiServer:
provisioning:
startupDuration: "10s"
startupJitter: "0.2"
etcd:
provisioning:
startupDuration: "10s"
startupJitter: "0.2"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: InMemoryMachineTemplate
metadata:
name: in-memory-quick-start-default-worker-machinetemplate
spec:
template:
spec:
behaviour:
vm:
provisioning:
startupDuration: "30s"
startupJitter: "0.2"
node:
provisioning:
startupDuration: "10s"
startupJitter: "0.2"
apiServer:
provisioning:
startupDuration: "10s"
startupJitter: "0.2"
etcd:
provisioning:
startupDuration: "10s"
startupJitter: "0.2"
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
metadata:
name: in-memory-quick-start-default-worker-bootstraptemplate
spec:
template:
spec:
joinConfiguration:
nodeRegistration:
criSocket: unix:///var/run/containerd/containerd.sock
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
Loading

0 comments on commit 6b9ccb3

Please sign in to comment.