github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/clusterapi/capi/templates/ocnecontrolplanemoduleenabled.yaml (about)

     1  # Copyright (c) 2023, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  
     5  apiVersion: controlplane.cluster.x-k8s.io/v1alpha1
     6  kind: OCNEControlPlane
     7  metadata:
     8    name: ${OCNE_CONTROL_PLANE_NAME}
     9    namespace: ${CLUSTER_NAMESPACE}
    10    labels:
    11      cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
    12      topology.cluster.x-k8s.io/owned: ""
    13  spec:
    14    moduleOperator:
    15      enabled: true
    16    verrazzanoPlatformOperator:
    17      enabled: true
    18      imagePullSecrets:
    19        - name: ${IMAGE_PULL_SECRET=verrazzano-container-registry}
    20      image:
    21        repository: ${VPO_IMAGE}
    22        tag: ${VPO_TAG}
    23    controlPlaneConfig:
    24      clusterConfiguration:
    25        apiServer:
    26          certSANs:
    27            - localhost
    28            - 127.0.0.1
    29        dns:
    30          imageRepository: ${OCNE_IMAGE_REPOSITORY=container-registry.oracle.com}/${OCNE_IMAGE_PATH=olcne}
    31          imageTag: ${DNS_TAG=v1.9.3}
    32        etcd:
    33          local:
    34            imageRepository: ${OCNE_IMAGE_REPOSITORY=container-registry.oracle.com}/${OCNE_IMAGE_PATH=olcne}
    35            imageTag: ${ETCD_TAG=3.5.6}
    36        networking: {}
    37        scheduler: {}
    38        imageRepository: ${OCNE_IMAGE_REPOSITORY=container-registry.oracle.com}/${OCNE_IMAGE_PATH=olcne}
    39      initConfiguration:
    40        nodeRegistration:
    41          criSocket: /var/run/crio/crio.sock
    42          kubeletExtraArgs:
    43            cloud-provider: external
    44            provider-id: oci://{{ ds["id"] }}
    45      joinConfiguration:
    46        discovery: {}
    47        nodeRegistration:
    48          criSocket: /var/run/crio/crio.sock
    49          kubeletExtraArgs:
    50            cloud-provider: external
    51            provider-id: oci://{{ ds["id"] }}
    52    machineTemplate:
    53      infrastructureRef:
    54        apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
    55        kind: OCIMachineTemplate
    56        name: ${OCI_MACHINE_TEMPLATE_NAME}
    57        namespace: ${CLUSTER_NAMESPACE}
    58      metadata:
    59        labels:
    60          cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
    61          topology.cluster.x-k8s.io/owned: ""
    62    replicas: ${CONTROL_PLANE_MACHINE_COUNT=1}
    63    version: ${KUBERNETES_VERSION=v1.25.7}