Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit ee3a6ff

Browse files
author
Rizchel Dayao
authored
Merge pull request #15 from IBM/update/README.md
Update IBM Cloud docs
2 parents d483af8 + 6f578cb commit ee3a6ff

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

‎README.md‎

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ $ npm run build-css
7676
$ npm run start
7777
```
7878

79+
Verify app is running and working correctly.
80+
7981
## Run the application using Docker
8082
1. [Build the image](#1-build-the-image)
8183
2. [Run the image](#2-run-the-image)
@@ -85,6 +87,8 @@ $ npm run start
8587

8688
2. [Install Docker CLI](https://docs.docker.com/install/)
8789

90+
3. [Retrieve and save your Docker user id](https://cloud.docker.com/)
91+
8892
### 1. Build the image
8993

9094
In a terminal, run:
@@ -98,7 +102,7 @@ Your image should be listed by running:
98102
$ docker images
99103
```
100104

101-
### 1. Run the image
105+
### 2. Run the image
102106

103107
In a terminal, run:
104108

@@ -108,7 +112,7 @@ $ docker run -p 3000:3000 -d $docker_username/deploy-react-kubernetes
108112

109113
You can now access the application at http://localhost:3000
110114

111-
### 2. Run the application on Kubernetes
115+
## Run the application on Kubernetes
112116

113117
1. [Build image.](#1-build-image)
114118
2. [Deploy the application](#2-deploy-the-application)
@@ -118,7 +122,12 @@ You can now access the application at http://localhost:3000
118122

119123
2. [Install IBM Cloud CLI](https://console.bluemix.net/docs/cli/reference/bluemix_cli/get_started.html#getting-started)
120124

121-
3. Log in to your IBM Cloud account
125+
3. Log into your IBM Cloud account
126+
```
127+
bx login
128+
```
129+
130+
If you have a federated ID, use bx login --sso to log in to the IBM Cloud CLI.
122131

123132
4. Install the Container Registry plug-in.
124133
```
@@ -144,15 +153,15 @@ $ bx cs cluster-config YOUR_CLUSTER_NAME
144153

145154
Copy and paste response in CLI
146155

147-
9. Create a namespace
156+
9. Choose a name for your first namespace, and create that namespace. Use this namespace for the rest of the Quick Start.
148157
```
149158
$ bx cr namespace-add YOUR_NAMESPACE
150159
```
151160

152161

153162
### 1. Build image
154163

155-
In a terminal, run:
164+
Build image in the IBM Container Registry:
156165
```
157166
$ bx cr build -t registry.<ibm_cloud_region>.bluemix.net/<your_namespace>/deploy-react-kubernetes .
158167
```
@@ -161,7 +170,16 @@ $ bx cr build -t registry.<ibm_cloud_region>.bluemix.net/<your_namespace>/deploy
161170

162171
```
163172
$ kubectl run deploy-react-kubernetes-deployment —-image=registry.<ibm_cloud_region>.bluemix.net/<your_namespace>/deploy-react-kubernetes
173+
```
164174

175+
To check how many pods are running on Kubernetes run the command:
176+
```
177+
kubectl get pods
178+
```
179+
180+
Expose the app to the web by setting the port. Run the command:
181+
182+
```
165183
$ kubectl expose deployment/deploy-react-kubernetes-deployment
166184
—-type=NodePort —-name=deploy-react-kubernetes-service —-port=3000
167185
```
@@ -180,6 +198,14 @@ $ kubectl describe service deploy-react-kubernetes-service
180198

181199
You can now access the application at http://IP_ADDRESS:NODE_PORT
182200

201+
## Run the application on Kubernetes with a yaml file
202+
203+
Note: Follow the prerequisites in 'Run the application on Kubernetes section' before executing command below.
204+
205+
```
206+
kubectl create -f deployment.yaml
207+
```
208+
183209
# Sample output
184210

185211
<img width="1415" alt="screen shot 2017年03月13日 at 6 14 10 pm" src="https://cloud.githubusercontent.com/assets/18426780/23879083/fa0df756-0818-11e7-8569-469367b84280.png">

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /