Skip to content

Instantly share code, notes, and snippets.

@herry13
Created October 3, 2019 20:46
Show Gist options
  • Save herry13/f06fb5d9a8f2af82a1e58e5ae12f61c7 to your computer and use it in GitHub Desktop.
Save herry13/f06fb5d9a8f2af82a1e58e5ae12f61c7 to your computer and use it in GitHub Desktop.
declarative configuration
---
# resources
project-sandbox:
kind: gcloudproject
cluster-sa:
kind: serviceaccount
spec:
project: project-sandbox
cluster-1:
kind: gke
spec:
project: project-sandbox
version: 1.13.7-gke.24
serviceaccount: cluster-sa
default-pool:
kind: nodepool
spec:
cluster: cluster-1
image: ubuntu
serviceaccount: cluster-sa
---
# schemas
gcloudproject:
type: object
serviceaccount:
type: object
properties:
project:
type: gcloudproject
gke:
type: object
properties:
project:
type: gcloudproject
version:
type: string
serviceaccount:
type: serviceaccount
nodepool:
type: object
properties:
cluster:
type: gke
image:
type: string
serviceaccount:
type: serviceaccount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment