Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minishift addon for management with ManageIQ
{
"apiVersion": "v1",
"kind": "ClusterRole",
"metadata": {
"name": "hawkular-metrics-admin"
},
"rules": [
{
"apiGroups": [""],
"resources": ["hawkular-metrics","hawkular-alerts"],
"verbs": ["*"]
}
]
}
# Name: manageiq
# Description: Basic Users, Roles, and Policies necessary to have ManageIQ/CFME connect to Openshift
oc adm new-project management-infra --description="Management-Infrastructure"
oc create serviceaccount management-admin -n management-infra
oc create serviceaccount inspector-admin -n management-infra
oc create -f management-infra-admin-cluster-role.json
oc create -f hawkular-metrics-admin-cluster-role.json
oc policy add-role-to-user -n management-infra admin -z management-admin
oc policy add-role-to-user -n management-infra management-infra-admin -z management-admin
oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:management-infra:management-admin
oc adm policy add-scc-to-user privileged system:serviceaccount:management-infra:management-admin
oc adm policy add-cluster-role-to-user system:image-puller system:serviceaccount:management-infra:inspector-admin
oc adm policy add-scc-to-user privileged system:serviceaccount:management-infra:inspector-admin
oc adm policy add-cluster-role-to-user self-provisioner system:serviceaccount:management-infra:management-admin
oc adm policy add-cluster-role-to-user hawkular-metrics-admin system:serviceaccount:management-infra:management-admin
{
"apiVersion": "v1",
"kind": "ClusterRole",
"metadata": {
"name": "management-infra-admin"
},
"rules": [
{"resources": ["pods/proxy"],"verbs":["*"]}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment