GCP Deploy Kuberneties cluser using gcloud deployment-manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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