Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openshift VPC tutorial uses wrong command making it fail #52

Closed
jmkanz opened this issue Oct 14, 2020 · 1 comment
Closed

Openshift VPC tutorial uses wrong command making it fail #52

jmkanz opened this issue Oct 14, 2020 · 1 comment

Comments

@jmkanz
Copy link

jmkanz commented Oct 14, 2020

In the following tutorial for OpenShift of VPC there is an incorrect command listed which causes the tutorial to not work:

https://cloud.ibm.com/docs/openshift?topic=openshift-vpc_rh_tutorial

The command in question is in Step 3: Setting up a VPC load balancer to expose your app publicly

The first command given is to run this:

$ oc expose deployment/hello-world --type=LoadBalancer --name=hw-lb-svc --port=8080 --target-port=8080

Running the above command will result in an error that no deployment exists with the name "hello-world" and this is correct.

Since we created the application in the cluster using Openshift command:
$ oc new-app --name hello-world https://github.com/IBM/container-service-getting-started-wt --context-dir="Lab 1"

This creates a deployment config as opposed to the Kubernetes default deployment. Therefore, the correct command that customers will need to run is:

$ oc expose dc/hello-world --type=LoadBalancer --name=hw-lb-svc --port=8080 --target-port=8080

This command will properly expose the application and created the LoadBalancer service. I suspect this was do the the tutorial initially being created for Kubernetes and not for OpenShift.

@Rachael-Graham
Copy link
Contributor

Ah, great catch @jmkanz yes you're right - we started this tutorial originally in Kube! Making the doc changes, which will go out today. Re-open if you have any further questions or suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants