Skip to content

Instantly share code, notes, and snippets.

@LindaLawton
Last active October 4, 2021 10:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save LindaLawton/4eb40a2d70db6ab3b09e7edb9140345e to your computer and use it in GitHub Desktop.
GCP Deploy Kuberneties cluser using gcloud deployment-manager
#create the new cluser
gcloud deployment-manager deployments create kuberneties-deployment-v3 --config k8s.yaml
# update the cluser if you change the yaml file
gcloud deployment-manager deployments update kuberneties-deployment-v3 --config k8s.yaml
# Note for deploment engine resource types https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types
resources:
- name: kuberneties-deployment-v3
type: container.v1.cluster
properties:
zone: europe-west3-c
cluster:
description: test
initialClusterVersion: 1.20.9-gke.1001
nodePools:
- name: default-pool
initialNodeCount: 2
config:
diskSizeGb: 100
diskType: pd-standard
imageType: COS_CONTAINERD
machineType: e2-micro
oauthScopes:
- https://www.googleapis.com/auth/devstorage.read_only
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring
- https://www.googleapis.com/auth/servicecontrol
- https://www.googleapis.com/auth/service.management.readonly
- https://www.googleapis.com/auth/trace.append
management:
autoRepair: true
autoUpgrade: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment