Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 14 | apiVersion: v1 |
| 15 | kind: ServiceAccount |
| 16 | metadata: |
| 17 | name: nginx-ingress-serviceaccount |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 18 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 19 | |
| 20 | --- |
| 21 | |
| 22 | apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 23 | kind: ClusterRole |
| 24 | metadata: |
| 25 | name: nginx-ingress-clusterrole |
| 26 | rules: |
| 27 | - apiGroups: |
| 28 | - "" |
| 29 | resources: |
| 30 | - configmaps |
| 31 | - endpoints |
| 32 | - nodes |
| 33 | - pods |
| 34 | - secrets |
| 35 | verbs: |
| 36 | - list |
| 37 | - watch |
| 38 | - apiGroups: |
| 39 | - "" |
| 40 | resources: |
| 41 | - nodes |
| 42 | verbs: |
| 43 | - get |
| 44 | - apiGroups: |
| 45 | - "" |
| 46 | resources: |
| 47 | - services |
| 48 | verbs: |
| 49 | - get |
| 50 | - list |
| 51 | - watch |
| 52 | - apiGroups: |
| 53 | - "extensions" |
| 54 | resources: |
| 55 | - ingresses |
| 56 | verbs: |
| 57 | - get |
| 58 | - list |
| 59 | - watch |
| 60 | - apiGroups: |
| 61 | - "" |
| 62 | resources: |
| 63 | - events |
| 64 | verbs: |
| 65 | - create |
| 66 | - patch |
| 67 | - apiGroups: |
| 68 | - "extensions" |
| 69 | resources: |
| 70 | - ingresses/status |
| 71 | verbs: |
| 72 | - update |
| 73 | |
| 74 | --- |
| 75 | |
| 76 | apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 77 | kind: Role |
| 78 | metadata: |
| 79 | name: nginx-ingress-role |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 80 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 81 | rules: |
| 82 | - apiGroups: |
| 83 | - "" |
| 84 | resources: |
| 85 | - configmaps |
| 86 | - pods |
| 87 | - secrets |
| 88 | - namespaces |
| 89 | verbs: |
| 90 | - get |
| 91 | - apiGroups: |
| 92 | - "" |
| 93 | resources: |
| 94 | - configmaps |
| 95 | resourceNames: |
| 96 | # Defaults to "<election-id>-<ingress-class>" |
| 97 | # Here: "<ingress-controller-leader>-<nginx>" |
| 98 | # This has to be adapted if you change either parameter |
| 99 | # when launching the nginx-ingress-controller. |
| 100 | - "ingress-controller-leader-nginx" |
| 101 | verbs: |
| 102 | - get |
| 103 | - update |
| 104 | - apiGroups: |
| 105 | - "" |
| 106 | resources: |
| 107 | - configmaps |
| 108 | verbs: |
| 109 | - create |
| 110 | - apiGroups: |
| 111 | - "" |
| 112 | resources: |
| 113 | - endpoints |
| 114 | verbs: |
| 115 | - get |
| 116 | |
| 117 | --- |
| 118 | |
| 119 | apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 120 | kind: RoleBinding |
| 121 | metadata: |
| 122 | name: nginx-ingress-role-nisa-binding |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 123 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 124 | roleRef: |
| 125 | apiGroup: rbac.authorization.k8s.io |
| 126 | kind: Role |
| 127 | name: nginx-ingress-role |
| 128 | subjects: |
| 129 | - kind: ServiceAccount |
| 130 | name: nginx-ingress-serviceaccount |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 131 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 132 | |
| 133 | --- |
| 134 | |
| 135 | apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 136 | kind: ClusterRoleBinding |
| 137 | metadata: |
| 138 | name: nginx-ingress-clusterrole-nisa-binding |
| 139 | roleRef: |
| 140 | apiGroup: rbac.authorization.k8s.io |
| 141 | kind: ClusterRole |
| 142 | name: nginx-ingress-clusterrole |
| 143 | subjects: |
| 144 | - kind: ServiceAccount |
| 145 | name: nginx-ingress-serviceaccount |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 146 | namespace: voltha |