Skip to content

Commit

Permalink
Add rule for network attachment definition objects in clusterrole
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Ranjan Pradhan committed Dec 18, 2018
1 parent 4318334 commit b50cc56
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
28 changes: 16 additions & 12 deletions conf/1.8/genie-complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ rules:
- get
- update
- patch
- apiGroups:
- "k8s.cni.cncf.io"
resources:
- network-attachment-definitions
verbs:
- get
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -158,18 +165,6 @@ spec:
k8s-app: genie
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: |
[
{
"key": "dedicated",
"value": "master",
"effect": "NoSchedule"
},
{
"key": "CriticalAddonsOnly",
"operator": "Exists"
}
]
spec:
hostNetwork: true
hostPID: true
Expand Down Expand Up @@ -197,6 +192,12 @@ spec:
name: cni-bin-dir
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
volumes:
- name: cni-bin-dir
hostPath:
Expand Down Expand Up @@ -224,6 +225,9 @@ spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
nodeSelector:
Expand Down
28 changes: 16 additions & 12 deletions conf/1.8/genie-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ rules:
- get
- update
- patch
- apiGroups:
- "k8s.cni.cncf.io"
resources:
- network-attachment-definitions
verbs:
- get
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -115,18 +122,6 @@ spec:
k8s-app: genie
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: |
[
{
"key": "dedicated",
"value": "master",
"effect": "NoSchedule"
},
{
"key": "CriticalAddonsOnly",
"operator": "Exists"
}
]
spec:
hostNetwork: true
hostPID: true
Expand Down Expand Up @@ -154,6 +149,12 @@ spec:
name: cni-bin-dir
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
volumes:
- name: cni-bin-dir
hostPath:
Expand Down Expand Up @@ -181,6 +182,9 @@ spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
nodeSelector:
Expand Down

0 comments on commit b50cc56

Please sign in to comment.