Skip to content

Commit c5bd0d5

Browse files
committed
dm: Replace beta APIs with v1
1 parent 0c31a44 commit c5bd0d5

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ Before you deploy the sample you'll need to make sure a few things are in order:
3434

3535
$ gcloud config set project YOUR_PROJECT_ID
3636

37-
1. Enable beta features:
38-
39-
$ gcloud components update beta
40-
4137
<a name="deploy"></a>
4238
## Deploy the Sample
4339
With `gcloud` installed and the proper APIs configured, you're ready to go.
@@ -67,7 +63,7 @@ With `gcloud` installed and the proper APIs configured, you're ready to go.
6763
1. Set the root password for your database:
6864

6965
$ gcloud sql instances set-root-password $DB_NAME \
70-
--password YOUR_PASSWORD
66+
--password YOUR_PASSWORD
7167

7268
1. Retrieve the Instance Name and IP address of your database:
7369

@@ -94,7 +90,7 @@ With `gcloud` installed and the proper APIs configured, you're ready to go.
9490

9591
1. Deploy the solution:
9692

97-
$ gcloud beta deployment-manager deployments \
93+
$ gcloud deployment-manager deployments \
9894
create $DEMO_PROJECT \
9995
--config dm/deployment.yaml
10096

@@ -137,15 +133,15 @@ To delete your sample deployment:
137133

138134
1. Delete all objects in the bucket created by your sample deployment:
139135

140-
$ gsutil rm -r gs://$(gcloud beta deployment-manager resources list --deployment $DEMO_PROJECT | grep storage.v1.bucket | cut -d' ' -f1)/*
136+
$ gsutil rm -r gs://$(gcloud deployment-manager resources list --deployment $DEMO_PROJECT | grep storage.v1.bucket | cut -d' ' -f1)/*
141137

142138
1. Delete your SQL database:
143139

144140
$ gcloud sql instances delete $DB_NAME
145141

146142
1. Finally, delete your deployment:
147143

148-
$ gcloud beta deployment-manager deployments delete $DEMO_PROJECT
144+
$ gcloud deployment-manager deployments delete $DEMO_PROJECT
149145

150146
<a name="fast"></a>
151147
## Fast Boot with Packer

dm/http-load-balancer.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ resources:
4545
timeoutSec: 30
4646
backends:
4747
{% for zone in properties["zones"] %}
48-
- group: $(ref.{{ INSTANCE_GROUP + "-" + zone }}.group)
48+
- group: $(ref.{{ INSTANCE_GROUP + "-" + zone }}.instanceGroup)
4949
balancingMode: RATE
5050
maxRatePerInstance: 100
5151
{% endfor %}

dm/web-servers.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ resources:
9494
{% for zone in properties["zones"] %}
9595
# Instance Group Manager for web servers
9696
- name: {{ INSTANCE_GROUP + "-" + zone }}
97-
type: replicapool.v1beta2.instanceGroupManager
97+
type: compute.v1.instanceGroupManager
9898
properties:
9999
zone: {{ zone }}
100-
size: {{ properties["zones"][zone]["desired_web_servers"] }}
100+
targetSize: {{ properties["zones"][zone]["desired_web_servers"] }}
101101
baseInstanceName: {{ env["name"] }}
102102
instanceTemplate: $(ref.{{ INSTANCE_TEMPLATE }}.selfLink)
103103

104104
# Autoscaler
105105
- name: {{ AUTOSCALER + "-" + zone}}
106-
type: autoscaler.v1beta2.autoscaler
106+
type: compute.v1.autoscaler
107107
properties:
108108
zone: {{ zone }}
109109
target: $(ref.{{ INSTANCE_GROUP + "-" + zone }}.selfLink)

0 commit comments

Comments
 (0)