cluster-api-provider-rke2/examples/clusterclass/docker/cluster-template-topology.yaml

31 lines
657 B
YAML

---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: "${CLUSTER_NAME}"
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 10.45.0.0/16
serviceDomain: cluster.local
services:
cidrBlocks:
- 10.46.0.0/16
topology:
class: rke2-class
version: ${KUBERNETES_VERSION}+rke2r1
controlPlane:
metadata: {}
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
workers:
machineDeployments:
- class: default-worker
name: md-0
replicas: ${WORKER_MACHINE_COUNT}
variables:
- name: dockerKindImage
value: kindest/node:${KUBERNETES_VERSION}