Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | --- |
| 17 | kind: ClusterRole |
| 18 | apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 19 | metadata: |
| 20 | name: pod-networks-operator |
| 21 | rules: |
| 22 | - apiGroups: |
| 23 | - '*' |
| 24 | resources: |
| 25 | - '*' |
| 26 | verbs: |
| 27 | - '*' |
| 28 | - nonResourceURLs: |
| 29 | - '*' |
| 30 | verbs: |
| 31 | - '*' |
Wei-Yu Chen | b92af45 | 2019-01-31 12:08:19 -0800 | [diff] [blame] | 32 | #- apiGroups: [""] |
| 33 | # resources: ["pods"] |
| 34 | # verbs: ["get"] |
| 35 | #- apiGroups: [""] |
| 36 | # resources: ["pods/status"] |
| 37 | # verbs: ["update"] |
| 38 | #- apiGroups: ["k8s.cni.cncf.io"] |
| 39 | # resources: ["*"] |
| 40 | # verbs: ["get"] |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 41 | --- |
| 42 | apiVersion: v1 |
| 43 | kind: ServiceAccount |
| 44 | metadata: |
Wei-Yu Chen | b92af45 | 2019-01-31 12:08:19 -0800 | [diff] [blame] | 45 | name: multus-sa |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 46 | namespace: kube-system |
| 47 | --- |
Wei-Yu Chen | b92af45 | 2019-01-31 12:08:19 -0800 | [diff] [blame] | 48 | apiVersion: v1 |
| 49 | kind: Secret |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 50 | metadata: |
Wei-Yu Chen | b92af45 | 2019-01-31 12:08:19 -0800 | [diff] [blame] | 51 | name: multus-sa-secret |
| 52 | namespace: kube-system |
| 53 | annotations: |
| 54 | kubernetes.io/service-account.name: multus-sa |
| 55 | type: kubernetes.io/service-account-token |
| 56 | --- |
| 57 | kind: ClusterRoleBinding |
| 58 | apiVersion: rbac.authorization.k8s.io/v1 |
| 59 | metadata: |
| 60 | name: multus-rb |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 61 | roleRef: |
| 62 | apiGroup: rbac.authorization.k8s.io |
| 63 | kind: ClusterRole |
| 64 | name: pod-networks-operator |
| 65 | subjects: |
| 66 | - kind: ServiceAccount |
Wei-Yu Chen | b92af45 | 2019-01-31 12:08:19 -0800 | [diff] [blame] | 67 | name: multus-sa |
Wei-Yu Chen | 450a98a | 2019-01-15 16:56:30 -0800 | [diff] [blame] | 68 | namespace: kube-system |