# Copyright (C) 2018, ARM Limited and contributors. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 --- apiVersion: v1 kind: ServiceAccount metadata: name: sriov namespace: "{{system_namespace}}" --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: sriov rules: - apiGroups: - "" resources: - pods verbs: - get - apiGroups: - "" resources: - nodes verbs: - list - watch - apiGroups: - "" resources: - nodes/status verbs: - patch --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: sriov roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: sriov subjects: - kind: ServiceAccount name: sriov namespace: "{{system_namespace}}"