使用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寻找它来创建一个没有外部it的内网集群。
发布于 2019-10-08 19:03:02
你有没有机会看过这篇文档?
https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#public_master
好吧,我还找到了另一个谷歌官方文档,可以帮助你实现你想要的:
https://cloud.google.com/solutions/creating-kubernetes-engine-private-clusters-with-net-proxies
在“创建Docker镜像”部分有一个Dockerfile示例。
祝你好运!
https://stackoverflow.com/questions/58188380
复制相似问题