-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrbac.yml
48 lines (47 loc) · 1.17 KB
/
rbac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: forecastle
labels:
app: forecastle
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: forecastle-cluster-ingress-role
labels:
app: forecastle
rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list"]
- apiGroups: ["route.openshift.io"]
resources: ["routes"]
verbs: ["get", "list"]
- apiGroups: ["traefik.containo.us"]
resources: ["ingressroutes"]
verbs: ["get", "list"]
- apiGroups: ["forecastle.stakater.com"]
resources: ["forecastleapps"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: forecastle-cluster-ingress-role-binding
labels:
app: forecastle
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: forecastle-cluster-ingress-role
subjects:
- kind: ServiceAccount
name: forecastle