Skip to content

Commit 6bfea7e

Browse files
Merge pull request #24 from devdattakulkarni/Containers
Updated examples/greetings README
2 parents 5680350 + 6bfe72f commit 6bfea7e

1 file changed

Lines changed: 1 addition & 117 deletions

File tree

  • Containers/Kubernetes-examples/GCP/greetings

Containers/Kubernetes-examples/GCP/greetings/README.txt

Lines changed: 1 addition & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -3,120 +3,4 @@ Greetings
33

44
This example shows deployment of a web application that uses MySQL backend.
55

6-
Several environment definition files are available:
7-
8-
1) environment-local.yaml: Environment definition containing MySQL container platform element
9-
2) environment-rds-local.yaml: Environment definition containing RDS resource. The RDS instance
10-
is open so as to allow connecting application container running locally on your machine
11-
3) environment-rds-ecs.yaml: Environment definition containing RDS and ECS cluster resource.
12-
4) environment-cloudsql-gke.yaml: Environment definition containing Cloud SQL and GKE cluster resource.
13-
14-
Several application definition files are available:
15-
16-
1) app-local.yaml: Application definition for local deployment of application
17-
2) app-aws.yaml: Application definition for AWS ECS deployment
18-
3) app-gcloud.yaml: Application definition for Google GKE deployment
19-
4) greetings-pod.yaml: Kubernetes Pod definition for Google GKE deployment
20-
21-
22-
23-
===============
24-
Deploy Locally
25-
===============
26-
27-
Deploy application locally binding to local MySQL container
28-
29-
$ cld env create env-local environment-local.yaml
30-
31-
$ cld container create cont1 local
32-
33-
Edit app-local.yaml to include image id obtained from output of command:
34-
35-
$ cld container show cont1
36-
37-
$ cld app deploy greetings-local env-local app-local.yaml
38-
39-
40-
==================
41-
Deploy on AWS ECS
42-
==================
43-
44-
Deploy application on ECS binding to a RDS instance
45-
46-
$ cld env create env-aws environment-rds-ecs.yaml
47-
48-
$ cld container create cont2 ecr
49-
50-
Edit app-aws.yaml to include image url obtained from output of command:
51-
52-
$ cld container show cont2
53-
54-
$ cld app deploy greetings-aws env-aws app-aws.yaml
55-
56-
57-
======================================
58-
Deploy on Google GKE - using app yaml
59-
======================================
60-
61-
Deploy application on GKE binding to a Cloud SQL instance
62-
63-
$ cld env create env-gcloud environment-cloudsql-gke.yaml
64-
65-
$ cld container create cont3 gcr
66-
67-
Edit app-gcloud.yaml to include image url obtained from output of command:
68-
69-
$ cld container show cont3
70-
71-
$ cld app deploy greetings-gke env-gcloud app-gcloud.yaml
72-
73-
74-
======================================
75-
Deploy on Google GKE - using Pod yaml
76-
======================================
77-
78-
Deploy application on GKE binding to a Cloud SQL instance
79-
80-
$ cld env create env-gcloud environment-cloudsql-gke.yaml
81-
82-
$ cld container create cont3 gcr
83-
84-
Edit greetings-pod.yaml to include image url obtained from output of command:
85-
86-
$ cld container show cont3
87-
88-
$ cld app deploy greetings-gke env-gcloud greetings-pod.yaml
89-
90-
91-
Track / Debug:
92-
---------------
93-
94-
$ cld env show <env-name>
95-
96-
$ cld app show <app-name>
97-
98-
$ cld app logs <app-name>
99-
100-
$ cld env shell <env-name>
101-
102-
103-
Verify:
104-
-------
105-
106-
$ cld app show <app-name>
107-
108-
$ cld app list
109-
110-
$ cld env show <env-name>
111-
112-
$ cld env list
113-
114-
115-
Cleanup:
116-
--------
117-
118-
$ cld app delete <app-name>
119-
120-
$ cld env delete <env-name>
121-
122-
$ cld container delete <container-name>
6+
Check GCP/steps.txt for how to deploy this application on Google Kubernetes Engine.

0 commit comments

Comments
 (0)