Skip to content

Commit 6c265d0

Browse files
author
md
authored
Merge pull request #295 from michaeldayreads/1.1-stable
Merge pull request #289 from michaeldayreads/rbac-config
2 parents d830fac + fb6d976 commit 6c265d0

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed

docs/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ Example Configuration Files
359359
- `simple-ingress-fanout.yaml <./_static/config_examples/simple-ingress-fanout.yaml>`_
360360
- `name-based-ingress.yaml <./_static/config_examples/name-based-ingress.yaml>`_
361361
- `ingress-with-health-monitors.yaml <./_static/config_examples/ingress-with-health-monitors.yaml>`_
362+
- `sample-rbac.yaml <./_static/config_examples/sample-rbac.yaml>`_
362363

363364

364365
.. [#objectpartition] The |kctlr-long| creates and manages objects in the BIG-IP partition defined in the `F5 resource </containers/v1/kubernetes/index.html#f5-resource-properties>`_ ConfigMap.

docs/_static/config_examples/sample-k8s-bigip-ctlr-secrets.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
labels:
1414
app: k8s-bigip-ctlr
1515
spec:
16+
serviceAccountName: bigip-ctlr-serviceaccount
1617
containers:
1718
- name: k8s-bigip-ctlr
1819
# Specify the path to your image here
@@ -50,3 +51,11 @@ spec:
5051
]
5152
imagePullSecrets:
5253
- name: f5-docker-images
54+
55+
---
56+
57+
apiVersion: v1
58+
kind: ServiceAccount
59+
metadata:
60+
name: bigip-ctlr-serviceaccount
61+
namespace: kube-system
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# for use in clusters using RBAC
2+
kind: ClusterRole
3+
apiVersion: rbac.authorization.k8s.io/v1beta1
4+
metadata:
5+
name: bigip-ctlr-clusterrole
6+
rules:
7+
- apiGroups:
8+
- ""
9+
resources:
10+
- nodes
11+
- services
12+
- endpoints
13+
- namespaces
14+
verbs:
15+
- get
16+
- list
17+
- watch
18+
- apiGroups:
19+
- extensions
20+
resources:
21+
- ingresses
22+
verbs:
23+
- get
24+
- list
25+
- watch
26+
- apiGroups:
27+
- ""
28+
resources:
29+
- configmaps
30+
- events
31+
verbs:
32+
- get
33+
- list
34+
- watch
35+
- update
36+
- create
37+
- patch
38+
- apiGroups:
39+
- "extensions"
40+
resources:
41+
- ingresses/status
42+
verbs:
43+
- get
44+
- list
45+
- watch
46+
- update
47+
- create
48+
- patch
49+
50+
---
51+
52+
kind: ClusterRoleBinding
53+
apiVersion: rbac.authorization.k8s.io/v1beta1
54+
metadata:
55+
name: bigip-ctlr-clusterrole-binding
56+
namespace: kube-system
57+
roleRef:
58+
apiGroup: rbac.authorization.k8s.io
59+
kind: ClusterRole
60+
name: bigip-ctlr-clusterrole
61+
subjects:
62+
- kind: ServiceAccount
63+
name: bigip-ctlr-serviceaccount
64+
namespace: kube-system

0 commit comments

Comments
 (0)