...

Text file src/edge-infra.dev/config/pallets/cluster/manifests.yaml

Documentation: edge-infra.dev/config/pallets/cluster

     1apiVersion: v1
     2kind: Namespace
     3metadata:
     4  name: ${cluster_uuid}
     5  annotations:
     6    cnrm.cloud.google.com/project-id: ${gcp_project-id}
     7---
     8apiVersion: container.cnrm.cloud.google.com/v1beta1
     9kind: ContainerCluster
    10metadata:
    11  name: ${cluster_hash}
    12  namespace: ${cluster_uuid}
    13  annotations:
    14    cnrm.cloud.google.com/deletion-policy: abandon
    15    cnrm.cloud.google.com/remove-default-node-pool: "true"
    16spec:
    17  initialNodeCount: 1
    18  location: ${gcp_region}-${gcp_zone}
    19  loggingConfig:
    20    enableComponents:
    21    - SYSTEM_COMPONENTS
    22  releaseChannel:
    23    channel: STABLE
    24  workloadIdentityConfig:
    25    identityNamespace: ${gcp_project_id}.svc.id.goog
    26---
    27apiVersion: container.cnrm.cloud.google.com/v1beta1
    28kind: ContainerNodePool
    29metadata:
    30  name: ${cluster_hash}-pool0
    31  namespace: ${cluster_uuid}
    32  annotations:
    33    cnrm.cloud.google.com/deletion-policy: abandon
    34spec:
    35  autoscaling:
    36    maxNodeCount: 6
    37    minNodeCount: 1
    38  clusterRef:
    39    name: ${cluster_hash}
    40  initialNodeCount: 1
    41  location: ${gcp_region}-${gcp_zone}
    42  management:
    43    autoRepair: true
    44    autoUpgrade: true
    45  networkConfig:
    46    enablePrivateNodes: true
    47  nodeConfig:
    48    machineType: n1-standard-4
    49    oauthScopes:
    50    - "https://www.googleapis.com/auth/monitoring"
    51    - "https://www.googleapis.com/auth/monitoring.write"
    52    - "https://www.googleapis.com/auth/logging.write"
    53    - "https://www.googleapis.com/auth/cloud-platform"
    54    - "https://www.googleapis.com/auth/trace.append"

View as plain text