All checks were successful
Run Check Script / check (pull_request) Successful in 1m42s
65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: harmony-node-healthcheck
|
|
labels:
|
|
name: harmony-node-healthcheck
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: node-healthcheck-sa
|
|
namespace: harmony-node-healthcheck
|
|
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: node-healthcheck-role
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["nodes"]
|
|
verbs: ["get", "list"]
|
|
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: allow-hostnetwork-scc
|
|
namespace: harmony-node-healthcheck
|
|
rules:
|
|
- apiGroups: ["security.openshift.io"]
|
|
resources: ["securitycontextconstraints"]
|
|
resourceNames: ["hostnetwork"]
|
|
verbs: ["use"]
|
|
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: node-status-querier-scc-binding
|
|
namespace: harmony-node-healthcheck
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: node-healthcheck-sa
|
|
namespace: harmony-node-healthcheck
|
|
roleRef:
|
|
kind: Role
|
|
name: allow-hostnetwork-scc
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: read-nodes-binding
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: node-healthcheck-sa
|
|
namespace: harmony-node-healthcheck
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: node-healthcheck-role
|
|
apiGroup: rbac.authorization.k8s.io
|