Add weave manifest labels

We label all the resources we would delete when we switch networking
providers.
This commit is contained in:
Justin Santa Barbara 2017-04-02 23:37:41 -04:00
parent cbc36f614a
commit 88829c89a0
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@ kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: weave-net
labels:
role.kubernetes.io/networking: "1"
rules:
- apiGroups:
- ""
@ -27,11 +29,15 @@ kind: ServiceAccount
metadata:
name: weave-net
namespace: kube-system
labels:
role.kubernetes.io/networking: "1"
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: weave-net
labels:
role.kubernetes.io/networking: "1"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@ -46,6 +52,8 @@ kind: DaemonSet
metadata:
name: weave-net
namespace: kube-system
labels:
role.kubernetes.io/networking: "1"
spec:
template:
metadata: