Lab 6.1 - Create a Route to Access the Frontend service

1. Login as the developer user

oc login -u developer -p rahasia

2. Create the network-sdn project

oc new-project network-sdn

3. create a new deployment

oc create deployment todo-frontend --image

4. Expose the deployment

oc expose deployment/todo-frontend --port 80 --target-port 8080

5. Review the configuration of the frontend service

oc get svc
oc describe svc todo-frontend

6. Retrieve the labels of the frontend deployment

oc describe deployment/todo-frontend | grep Labels -A3

7. Create a route to access the application from an external network

oc expose service todo-frontend \

8. List the routes in the project

oc get routes
oc describe routes todo-frontend

9. Access the app from the browser. Navigate to

Daftar Materi