...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/samples/resources/containercluster/routes-based-container-cluster/container_v1beta1_containercluster.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/samples/resources/containercluster/routes-based-container-cluster

     1# Copyright 2020 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#     http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15apiVersion: container.cnrm.cloud.google.com/v1beta1
    16kind: ContainerCluster
    17metadata:
    18  labels:
    19    availability: dev
    20    target-audience: development
    21  name: containercluster-sample-routesbased
    22spec:
    23  description: A routes-based cluster confined to one zone configured for development.
    24  location: us-central1-a
    25  initialNodeCount: 1
    26  networkingMode: ROUTES
    27  clusterIpv4Cidr: 10.96.0.0/14
    28  masterAuthorizedNetworksConfig:
    29    cidrBlocks:
    30      - displayName: Trusted external network
    31        cidrBlock: 10.2.0.0/16
    32  addonsConfig:
    33    gcePersistentDiskCsiDriverConfig:
    34      enabled: true
    35    kalmConfig:
    36      enabled: true
    37    horizontalPodAutoscaling:
    38      disabled: true
    39    httpLoadBalancing:
    40      disabled: false
    41  loggingConfig:
    42    enableComponents:
    43      - "SYSTEM_COMPONENTS"
    44      - "WORKLOADS"
    45  monitoringConfig:
    46    enableComponents:
    47      - "SYSTEM_COMPONENTS"
    48  workloadIdentityConfig:
    49    # Replace ${PROJECT_ID?} with your project ID.
    50    workloadPool: "${PROJECT_ID?}.svc.id.goog"

View as plain text