rohankanojia

Creating route on OS 3.11

Jan 14th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. ~/work/k8-resource-yamls : $ oc create --v=6 -f test-route.yml
  2. I0114 15:05:37.432336 6129 loader.go:359] Config loaded from file /home/rohaan/.kube/config
  3. I0114 15:05:37.432495 6129 decoder.go:224] decoding stream as YAML
  4. I0114 15:05:37.432869 6129 loader.go:359] Config loaded from file /home/rohaan/.kube/config
  5. I0114 15:05:37.438750 6129 loader.go:359] Config loaded from file /home/rohaan/.kube/config
  6. I0114 15:05:38.563401 6129 round_trippers.go:405] POST https://api.rh-idev.openshift.com:443/apis/route.openshift.io/v1/namespaces/rokumar/routes 201 Created in 1124 milliseconds
  7. route.route.openshift.io/route-unsecured created
  8. ~/work/k8-resource-yamls : $ oc get routes route-unsecured -o yaml
  9. apiVersion: route.openshift.io/v1
  10. kind: Route
  11. metadata:
  12. creationTimestamp: 2020-01-14T09:35:38Z
  13. name: route-unsecured
  14. namespace: rokumar
  15. resourceVersion: "631480925"
  16. selfLink: /apis/route.openshift.io/v1/namespaces/rokumar/routes/route-unsecured
  17. uid: 39278682-36b1-11ea-96b5-0e6aaf341bbf
  18. spec:
  19. host: www.example.com
  20. path: /test
  21. to:
  22. kind: Service
  23. name: service-name
  24. weight: 100
  25. wildcardPolicy: None
  26. status:
  27. ingress:
  28. - conditions:
  29. - lastTransitionTime: 2020-01-14T09:35:38Z
  30. status: "True"
  31. type: Admitted
  32. host: www.example.com
  33. routerName: router
  34. wildcardPolicy: None
  35. ~/work/k8-resource-yamls : $
Add Comment
Please, Sign In to add comment