|
| 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, this includes |
| 11 | + # NAMESPACE so we can connect to the VC syncer. |
| 12 | + host: "${CLUSTER_NAME}-apiserver.${NAMESPACE}" |
| 13 | + port: 6443 |
| 14 | + infrastructureRef: |
| 15 | + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 16 | + kind: NestedCluster |
| 17 | + name: "${CLUSTER_NAME}" |
| 18 | + controlPlaneRef: |
| 19 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 20 | + kind: NestedControlPlane |
| 21 | + name: "${CLUSTER_NAME}-control-plane" |
| 22 | + |
| 23 | +--- |
| 24 | +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 25 | +kind: NestedCluster |
| 26 | +metadata: |
| 27 | + name: "${CLUSTER_NAME}" |
| 28 | +spec: |
| 29 | + controlPlaneEndpoint: |
| 30 | + host: "localhost" |
| 31 | + port: 6443 |
| 32 | +--- |
| 33 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 34 | +kind: NestedControlPlane |
| 35 | +metadata: |
| 36 | + name: "${CLUSTER_NAME}-control-plane" |
| 37 | +spec: |
| 38 | + etcd: |
| 39 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 40 | + kind: NestedEtcd |
| 41 | + name: "${CLUSTER_NAME}-nestedetcd" |
| 42 | + apiserver: |
| 43 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 44 | + kind: NestedAPIServer |
| 45 | + name: "${CLUSTER_NAME}-nestedapiserver" |
| 46 | + controllerManager: |
| 47 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 48 | + kind: NestedControllerManager |
| 49 | + name: "${CLUSTER_NAME}-nestedcontrollermanager" |
| 50 | +--- |
| 51 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 52 | +kind: NestedEtcd |
| 53 | +metadata: |
| 54 | + name: "${CLUSTER_NAME}-nestedetcd" |
| 55 | +spec: |
| 56 | + replicas: 1 |
| 57 | +--- |
| 58 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 59 | +kind: NestedAPIServer |
| 60 | +metadata: |
| 61 | + name: "${CLUSTER_NAME}-nestedapiserver" |
| 62 | +spec: |
| 63 | + replicas: 1 |
| 64 | +--- |
| 65 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 66 | +kind: NestedControllerManager |
| 67 | +metadata: |
| 68 | + name: "${CLUSTER_NAME}-nestedcontrollermanager" |
| 69 | +spec: |
| 70 | + replicas: 1 |
| 71 | +--- |
| 72 | +apiVersion: tenancy.x-k8s.io/v1alpha1 |
| 73 | +kind: VirtualCluster |
| 74 | +metadata: |
| 75 | + name: ${CLUSTER_NAME} |
| 76 | + annotations: |
| 77 | + cluster.x-k8s.io/name: ${CLUSTER_NAME} |
| 78 | + tenancy.x-k8s.io/secret.admin-kubeconfig: "${CLUSTER_NAME}-kubeconfig" |
| 79 | +spec: |
| 80 | + clusterVersionName: "capi" |
| 81 | + opaqueMetaPrefixes: |
| 82 | + - "tenancy.x-k8s.io" |
| 83 | + transparentMetaPrefixes: |
| 84 | + - "k8s.net.status" |
0 commit comments