Advertisement
Guest User

Untitled

a guest
May 8th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. [root@bastion ~]# oc login https://lb.openshift.dev
  2. The server uses a certificate signed by an unknown authority.
  3. You can bypass the certificate check, but any data you send to the server could be intercepted by others.
  4. Use insecure connections? (y/n): y
  5.  
  6. Authentication required for https://lb.openshift.dev:443 (openshift)
  7. Username: admin
  8. Password:
  9. Login successful.
  10.  
  11. You don't have any projects. You can try to create a new project, by running
  12.  
  13. oc new-project <projectname>
  14.  
  15. Welcome! See 'oc help' to get started.
  16. [root@bastion ~]# oc whoami
  17. admin
  18. [root@bastion ~]# oc config view
  19. apiVersion: v1
  20. clusters:
  21. - cluster:
  22. insecure-skip-tls-verify: true
  23. server: https://lb.openshift.dev:443
  24. name: lb-openshift-dev:443
  25. contexts:
  26. - context:
  27. cluster: lb-openshift-dev:443
  28. user: admin/lb-openshift-dev:443
  29. name: /lb-openshift-dev:443/admin
  30. current-context: /lb-openshift-dev:443/admin
  31. kind: Config
  32. preferences: {}
  33. users:
  34. - name: admin/lb-openshift-dev:443
  35. user:
  36. token: ----------------------------------------------
  37. [root@bastion ~]# oc get user
  38. No resources found.
  39. Error from server: User "admin" cannot list all users in the cluster
  40. [root@bastion ~]# oc get nodes
  41. No resources found.
  42. Error from server: User "admin" cannot list all nodes in the cluster
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement