我计划将 GCP 服务创建完全采用到 Deployment Manager。但是根据文档,我看不到任何将要创建到集群中的节点转换为抢占式的选项。
我希望有一种方法,但只是没有写在文档上,因为根据经验,应该有一些选项没有写在文档中。
下面是它的神社模板
resources:
- name: practice-gke-clusters
type: container.v1.cluster
properties:
zone: asia-east2-a
cluster:
name: practice-gke-clusters
network: $(ref.practice-gke-network.selfLink)
subnetwork: $(ref.practice-gke-network-subnet-1.selfLink)
initialNodeCount: 1
loggingService: logging.googleapis.com
monitoringService: monitoring.googleapis.com
nodeConfig:
oauthScopes:
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/devstorage.read_only
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring