Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iogbole/openshift
https://github.com/iogbole/openshift
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/iogbole/openshift
- Owner: iogbole
- License: apache-2.0
- Created: 2020-08-26T08:54:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T19:02:36.000Z (almost 4 years ago)
- Last Synced: 2023-08-13T07:21:59.605Z (over 1 year ago)
- Language: Batchfile
- Size: 938 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Openshift cluster monitoring
`oc whoami`
Login as system admin
`oc login -u system:admin`
List projects. There are many more projects available for the admin account
oc get projectsCreate a new project with the name 'appdynamics'
`oc new-project appdynamics --display-name="AppDynamics"`
## Make sure that appdynamics is the active project:
`oc project appdynamics`# Security
RBAC governs access users to resources in Kubernetes and OpenShift.
The key RBAC entities are Users, Service Accounts, Roles, ClusterRoles, RoleBindings and ClusterRoleBinding. In the nutshell, you define users, roles and then connect users to roles through rolebindings.
More on RBAC https://kubernetes.io/docs/reference/access-authn-authz/rbac/
OpenShift provides several utilities that make the setup easier.
While in appdynamics account, let's add view/edit rights to the project for the 'developer' user.
Grant developer access to appdynamics project
`oc policy add-role-to-user view developer`
`oc policy add-role-to-user edit developer`
Login as user "developer".
Now you should see a list with two projects that user 'developer' has access to.`oc login -u developer`
Make sure to make appd active:
`oc project appdynamics`