Skip to content

Commit 246a255

Browse files
committed
feat(helm): rbac for bgp
Signed-off-by: SkalaNetworks <[email protected]>
1 parent b7717ad commit 246a255

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
labels:
5+
kubernetes.io/bootstrapping: rbac-defaults
6+
name: system:vpc-nat-gw
7+
rules:
8+
- apiGroups:
9+
- ""
10+
resources:
11+
- services
12+
- pods
13+
verbs:
14+
- list
15+
- watch
16+
- apiGroups:
17+
- kubeovn.io
18+
resources:
19+
- iptables-eips
20+
- subnets
21+
- vpc-nat-gateways
22+
verbs:
23+
- list
24+
- watch
25+
---
26+
apiVersion: rbac.authorization.k8s.io/v1
27+
kind: ClusterRoleBinding
28+
metadata:
29+
annotations:
30+
rbac.authorization.kubernetes.io/autoupdate: "true"
31+
labels:
32+
kubernetes.io/bootstrapping: rbac-defaults
33+
name: vpc-nat-gw
34+
roleRef:
35+
apiGroup: rbac.authorization.k8s.io
36+
kind: ClusterRole
37+
name: system:vpc-nat-gw
38+
subjects:
39+
- kind: ServiceAccount
40+
name: vpc-nat-gw
41+
namespace: {{ .Values.namespace }}
42+
---
43+
apiVersion: v1
44+
kind: ServiceAccount
45+
metadata:
46+
name: vpc-nat-gw
47+
namespace: {{ .Values.namespace }}

charts/kube-ovn/templates/vpc-nat-config.yaml charts/kube-ovn/templates/natGw/vpc-nat-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ kind: ConfigMap
1717
apiVersion: v1
1818
metadata:
1919
name: ovn-vpc-nat-gw-config
20-
namespace: kube-system
20+
namespace: {{ .Values.namespace }}
2121
data:
2222
enable-vpc-nat-gw: "{{ .Values.func.ENABLE_NAT_GW }}"

charts/kube-ovn/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ natGw:
163163
# This requires Multus to be installed
164164
apiNad:
165165
# -- Enable the creation of the API NAD
166-
enabled: true
166+
enabled: false
167167
# -- Name of the NAD
168168
name: ovn-kubernetes-api
169169
# -- Name of the provider, must be in the form "nadName.nadNamespace.ovn"

0 commit comments

Comments
 (0)