Skip to content

Instantly share code, notes, and snippets.

@pbzdyl
Created May 24, 2017 12:57
Show Gist options
  • Save pbzdyl/2c3e93c54464a158beff1edb6c203a88 to your computer and use it in GitHub Desktop.
Save pbzdyl/2c3e93c54464a158beff1edb6c203a88 to your computer and use it in GitHub Desktop.
resources:
- name: my-cluster
type: container.v1.cluster
properties:
zone: europe-west1-b
cluster:
name: my-cluster
nodePools:
- name: pool-1
initialNodeCount: 5
config:
machineType: n1-standard-1
diskSizeGb: 100
imageType: COS
oauthScopes:
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/devstorage.read_only
- https://www.googleapis.com/auth/cloud.useraccounts.readonly
- https://www.googleapis.com/auth/service.management.readonly
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring.write
resources:
- name: my-cluster
type: container.v1.cluster
properties:
zone: europe-west1-b
cluster:
name: my-cluster
initialNodeCount: 1
nodeConfig:
machineType: n1-standard-1
diskSizeGb: 100
imageType: COS
oauthScopes:
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/devstorage.read_only
- https://www.googleapis.com/auth/cloud.useraccounts.readonly
- https://www.googleapis.com/auth/service.management.readonly
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring.write
$ gcloud deployment-manager deployments create my-deployment --config <path-to-your-yml-file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment