Skip to content

Commit c508239

Browse files
Merge pull request #20 from devdattakulkarni/Containers
Updated CaaStle steps
2 parents ad98266 + 9d0d053 commit c508239

1 file changed

Lines changed: 44 additions & 23 deletions

File tree

  • Containers/Kubernetes-examples/CaaStle

Containers/Kubernetes-examples/CaaStle/steps.txt

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1115
1) git clone https://github.com/cloud-ark/caastle.git
1216
2) cd caastle
@@ -18,39 +22,56 @@ Pre-requisites:
1822
6) cld app list
1923
7) cd examples/greetings/
2024

25+
Check README.txt for details.
26+
2127
8) 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

2936
9) 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

3543
10) 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

Comments
 (0)