|
| 1 | +--- |
| 2 | +apiVersion: cluster.x-k8s.io/v1alpha4 |
| 3 | +kind: Cluster |
| 4 | +metadata: |
| 5 | + name: "${CLUSTER_NAME}" |
| 6 | +spec: |
| 7 | + controlPlaneEndpoint: |
| 8 | + # currently this has to be the in-cluster endpoint, the in-cluster |
| 9 | + # kubeconfig is used by controller-manager w/ ClusterIP services |
| 10 | + # we can `port-forward` this service and be able to test |
| 11 | + host: "${CLUSTER_NAME}-apiserver" |
| 12 | + port: 6443 |
| 13 | + infrastructureRef: |
| 14 | + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 15 | + kind: NestedCluster |
| 16 | + name: "${CLUSTER_NAME}" |
| 17 | + controlPlaneRef: |
| 18 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 19 | + kind: NestedControlPlane |
| 20 | + name: "${CLUSTER_NAME}-control-plane" |
| 21 | + |
| 22 | +--- |
| 23 | +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 24 | +kind: NestedCluster |
| 25 | +metadata: |
| 26 | + name: "${CLUSTER_NAME}" |
| 27 | +spec: |
| 28 | + controlPlaneEndpoint: |
| 29 | + host: "localhost" |
| 30 | + port: 6443 |
| 31 | +--- |
| 32 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 33 | +kind: NestedControlPlane |
| 34 | +metadata: |
| 35 | + name: "${CLUSTER_NAME}-control-plane" |
| 36 | +spec: |
| 37 | + etcd: |
| 38 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 39 | + kind: NestedEtcd |
| 40 | + name: "${CLUSTER_NAME}-nestedetcd" |
| 41 | + apiserver: |
| 42 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 43 | + kind: NestedAPIServer |
| 44 | + name: "${CLUSTER_NAME}-nestedapiserver" |
| 45 | + controllerManager: |
| 46 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 47 | + kind: NestedControllerManager |
| 48 | + name: "${CLUSTER_NAME}-nestedcontrollermanager" |
| 49 | +--- |
| 50 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 51 | +kind: NestedEtcd |
| 52 | +metadata: |
| 53 | + name: "${CLUSTER_NAME}-nestedetcd" |
| 54 | +spec: |
| 55 | + replicas: 1 |
| 56 | +--- |
| 57 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 58 | +kind: NestedAPIServer |
| 59 | +metadata: |
| 60 | + name: "${CLUSTER_NAME}-nestedapiserver" |
| 61 | +spec: |
| 62 | + replicas: 1 |
| 63 | +--- |
| 64 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 65 | +kind: NestedControllerManager |
| 66 | +metadata: |
| 67 | + name: "${CLUSTER_NAME}-nestedcontrollermanager" |
| 68 | +spec: |
| 69 | + replicas: 1 |
0 commit comments