【发布时间】:2020-01-30 22:59:06
【问题描述】:
使用 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 文件有效,但它也为 gke 集群分配了外部 IP。
标签: yaml cluster-computing google-kubernetes-engine google-deployment-manager