Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9805295

Browse files
author
Rizchel Dayao
authored
Merge pull request #16 from mofsal/patch-1
Update expose command for kubectl cli
2 parents 774c6b3 + 890da5d commit 9805295

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ kubectl get pods
180180
Expose the app to the web by setting the port. Run the command:
181181

182182
```
183-
$ kubectl expose deployment/deploy-react-kubernetes-deployment
184-
—-type=NodePort —-name=deploy-react-kubernetes-service —-port=3000
183+
$ kubectl expose deployment/deploy-react-kubernetes-deployment —-port=3000 —-type=NodePort
185184
```
186185

187186
* To access your application. You would need the public IP address of your cluster and NodePort of the service.

0 commit comments

Comments
 (0)