@@ -7,6 +7,10 @@ Pre-requisites:
77 - Note down the Project-ID; You will have to provide it during
88 application deployment
99
10+ - Navigate to Google Cloud Console and enable:
11+ - Kubernetes API
12+ - Cloud SQL API
13+
1014
11151) git clone https://github.com/cloud-ark/caastle.git
12162) cd caastle
@@ -18,39 +22,56 @@ Pre-requisites:
18226) cld app list
19237) cd examples/greetings/
2024
25+ Check README.txt for details.
26+
21278) Create Environment:
2228 - cld env create envapril4 environment-cloudsql-gke.yaml
2329 - cld env show envapril4
2430 - cld resource list
2531 - cld env show envapril4
2632
27- more README.txt
33+ Once environment is 'available'
34+
2835
29369) Build and Push Container:
3037 - cld container create contapril4 gcr
3138 - cld container show contapril4
3239
33- more README.txt
40+ Once container is 'ready'
41+
3442
354310) Deploy application container
36- - Edit app-gcloud.yaml to include the container URI
37- - emacs app-gcloud.yaml
38-
39- 11) cld env list
40-
41- 12) cld app deploy greetings-april4 envapril4 app-gcloud.yaml
42-
43- - cld app show greetings-april4
44- - cld app logs greetings-april4
45- - more /home/devdatta/.cld/data/deployments/greetings-april4/2018-04-04-12-31-38/logs/greetings-april4.deploy-log <use your app's log path>
46- - more /home/devdatta/.cld/data/deployments/greetings-april4/2018-04-04-12-31-38/logs/greetings-april4.runtime-log <use your app's log path>
47-
48- - cld app list
49- - cld container list
50- - cld env list
51- - cld app delete greetings-april4
52- - cld env delete envapril4
53- - cld container list
54- - cld container delete contapril4
55- - cld env list
56- - cld resource list
44+ - Edit app-gcloud.yaml to include tagged_image value from output of 'cld container show' command
45+ as value of 'image' field in app-gcloud.yaml
46+ - Note that you will have to delete the previous value from this file.
47+
48+ - cld app deploy greetings-april4 envapril4 app-gcloud.yaml
49+ - cld app show greetings-april4
50+
51+
52+ 11) Once application deployment is complete:
53+
54+ - cld app logs greetings-april4
55+ - more /home/devdatta/.cld/data/deployments/greetings-april4/2018-04-04-12-31-38/logs/greetings-april4.deploy-log <use your app's log path>
56+ - more /home/devdatta/.cld/data/deployments/greetings-april4/2018-04-04-12-31-38/logs/greetings-april4.runtime-log <use your app's log path>
57+
58+
59+ 12) Run Kubernetes and Cloud SQL commands in the environment:
60+ - cld env shell envapril4
61+ - help
62+ - kubectl get pods
63+ - kubectl describe pods <pod-name> (<pod-name> will be available from the previous command)
64+ - gcloud sql instances list
65+
66+
67+ 13) Listing
68+ - cld app list
69+ - cld container list
70+ - cld env list
71+ - cld resource list
72+
73+
74+ 14) Cleanup
75+ - cld app delete greetings-april4
76+ - cld env delete envapril4
77+ - cld container delete contapril4
0 commit comments