创建私有gke集群

问题描述 投票:0回答:1

使用Yaml创建私有gke集群。

当前正在研究创建私有gke。尝试在yaml文件中添加私人设置,但出现错误

resources:
- name: myclus
  type: gcp-types/container-v1:projects.locations.clusters
  properties:
    parent: projects/[PROJECT_ID]/locations/[REGION]
    cluster:
      name: my-clus
      zone: [ZONE]
      network: [NETWORK]
      subnetwork: [SUBNETWORK]    ### leave this field blank if using the default network###
      initialClusterVersion: "1.13"
      nodePools:
      - name: my-clus-pool1
        initialNodeCount: 1
        autoscaling:
          enabled: true
          minNodeCount: 1
          maxNodeCount: 12
        management:
          autoUpgrade: true
          autoRepair: true  
        config:
          machineType: n1-standard-1
          diskSizeGb: 15
          imageType: cos
          diskType: pd-ssd
          oauthScopes:             ###Change scope to match needs###
            - https://www.googleapis.com/auth/cloud-platform
          preemptible: false

正在寻找它以创建没有外部IP的私有群集。

yaml containers cluster-computing google-kubernetes-engine
1个回答
0
投票

您有没有机会翻阅本文档?

https://cloud.google.com/kubernetes-engine/docs/how-to/private-clustershttps://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#public_master

嗯,我还找到了另一本正式的Google文档,可以帮助您实现所需的目标:

https://cloud.google.com/solutions/creating-kubernetes-engine-private-clusters-with-net-proxies

在“创建Docker映像”部分上,有一个Dockerfile示例。

祝你好运!

© www.soinside.com 2019 - 2024. All rights reserved.