create ServiceAccount and ClusterRoleBinding for storage-provisioner

pull/2480/head
Colin Hoglund 2018-01-29 14:04:16 -05:00
parent 9047262565
commit 249839378b
1 changed files with 27 additions and 0 deletions

View File

@ -12,6 +12,32 @@
# See the License for the specific language governing permissions and
# limitations under the License.
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: storage-provisioner
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: storage-provisioner
labels:
addonmanager.kubernetes.io/mode: EnsureExists
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:persistent-volume-provisioner
subjects:
- kind: ServiceAccount
name: storage-provisioner
namespace: kube-system
---
apiVersion: v1
kind: Pod
metadata:
@ -21,6 +47,7 @@ metadata:
integration-test: storage-provisioner
addonmanager.kubernetes.io/mode: EnsureExists
spec:
serviceAccountName: storage-provisioner
hostNetwork: true
containers:
- name: storage-provisioner