File tree Expand file tree Collapse file tree 4 files changed +50
-17
lines changed Expand file tree Collapse file tree 4 files changed +50
-17
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ metadata:
9
9
kubernetes.io/description : This Deployment launches the ovn-northd.
10
10
spec :
11
11
progressDeadlineSeconds : 600
12
- replicas : 1
12
+ replicas : {{ .Values.pod.replicas.ovn_northd }}
13
13
revisionHistoryLimit : 10
14
14
selector :
15
15
matchLabels :
16
16
name : neutron-ovn-northd
17
17
strategy :
18
18
rollingUpdate :
19
- maxSurge : 0
20
- maxUnavailable : 1
19
+ maxSurge : 2
20
+ maxUnavailable : {{ sub .Values.pod.replicas.ovn_northd 1 }}
21
21
type : RollingUpdate
22
22
template :
23
23
metadata :
39
39
command : ["/usr/bin/ovn-northd"]
40
40
args :
41
41
- " -vfile:off"
42
- - " -vconsole:{{ .Values.ovn.logLevel | default " info" }}"
43
- - " --n-threads={{ .Values.ovn.nThreads | default 1 }}"
42
+ - " -vconsole:{{ .Values.ovn.logLevel | default " INFO" }}"
43
+ - --pidfile
44
+ - --n-threads={{ .Values.ovn.nThreads | default 1 }}
44
45
{{- if .Values.ovn.enableSsl }}
45
46
- --certificate=/etc/pki/tls/certs/ovndb.crt
46
47
- --private_key=/etc/pki/tls/certs/ovndb.key
@@ -58,13 +59,10 @@ spec:
58
59
value : " tcp:neutron-ovsdb-sb.{{ .Release.Namespace }}.svc.kubernetes.{{ .Values.global.region }}.cloud.sap:{{ $ovsdb_sb.DB_PORT }}"
59
60
readinessProbe :
60
61
exec :
61
- command : ["/usr/bin/pidof", "ovn-northd"]
62
- initialDelaySeconds : 5
63
- timeoutSeconds : 3
64
- periodSeconds : 3
65
- livenessProbe :
66
- exec :
67
- command : ["/usr/bin/pidof", "ovn-northd"]
62
+ command :
63
+ - sh
64
+ - -c
65
+ - ovn-appctl --target=/tmp/ovn-northd.1.ctl status | grep -qE "active|standby"
68
66
initialDelaySeconds : 5
69
67
timeoutSeconds : 5
70
68
periodSeconds : 5
Original file line number Diff line number Diff line change @@ -62,6 +62,19 @@ enable_vxlan = false
62
62
[ovn]
63
63
{ {- $ovsdb_nb := index (index .Values " ovsdb-nb" ) } }
64
64
{ {- $ovsdb_sb := index (index .Values " ovsdb-sb" ) } }
65
+ # we always use TCP, encryption is recommended to be done by reverse proxy
65
66
ovn_nb_connection = tcp:{ { required " ovsdb-nb.EXTERNAL_IP required!" $ovsdb_nb .EXTERNAL_IP } }:{ { $ovsdb_nb .DB_PORT } }
66
67
ovn_sb_connection = tcp:{ { required " ovsdb-sb.EXTERNAL_IP required!" $ovsdb_sb .EXTERNAL_IP } }:{ { $ovsdb_sb .DB_PORT } }
68
+
69
+ ovn_l3_mode = false
70
+ ovsdb_log_level = { { .Values.ovn.logLevel | default " INFO" } }
71
+ ovn_metadata_enabled = { { .Values.ovn.metadata_enabled | default " false" } }
72
+ disable_ovn_dhcp_for_baremetal_ports = { { .Values.ovn.disable_ovn_dhcp_for_baremetal_ports | default " false" } }
73
+ { { with .Values.ovn.dns_servers } }dns_servers = { { . | join " ," } }{ { end } }
74
+ { { with .Values.ovn.ovn_dhcp4_global_options } }ovn_dhcp4_global_options = { { . } }{ { end } }
75
+ { { with .Values.ovn.ovn_dhcp6_global_options } }ovn_dhcp6_global_options = { { . } }{ { end } }
76
+ { { with .Values.ovn.dhcp_default_lease_time } }dhcp_default_lease_time = { { . } }{ { end } }
77
+ # https://www.youtube.com/watch?v=ZRWSZRPhJUs
78
+ mac_binding_age_threshold = 86400
67
79
{ {- end } }
80
+
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ http = :{{.Values.global.neutron_api_port_internal | default 9696}}
13
13
plugins-dir = /var/lib/openstack/lib
14
14
need-plugins = shortmsecs
15
15
16
+ # For ML2/OVN hash register initialization
17
+ start-time = %t
18
+
16
19
# Connection tuning
17
20
vacuum = true
18
21
lazy-apps = true
Original file line number Diff line number Diff line change 38
38
replicas :
39
39
server : 3
40
40
rpc_server : 2
41
- ovn_db : 3
41
+ ovn_northd : 2
42
42
lifecycle :
43
43
upgrades :
44
44
deployments :
@@ -252,26 +252,42 @@ ovn:
252
252
enableSsl : false
253
253
254
254
ovsdb-sb :
255
+ service :
256
+ # requirements to be accessible from outside with Calico
257
+ type : LoadBalancer
258
+ external_traffic_policy : Local
259
+ replicaCount : 3
255
260
RAFT_PORT : 6644
256
261
DB_TYPE : sb
257
262
DB_PORT : 6442
258
263
OVN_LOG_LEVEL : " info"
259
264
OVN_ELECTION_TIMER : " 10000"
260
265
OVN_INACTIVITY_PROBE : " 60000"
261
266
OVN_PROBE_INTERVAL_TO_ACTIVE : " 60000"
262
- service :
263
- # requirements to be accessible from outside with Calico
264
- type : LoadBalancer
265
- external_traffic_policy : Local
267
+ resources :
268
+ limits :
269
+ cpu : 500m
270
+ memory : 256Mi
271
+ requests :
272
+ cpu : 100m
273
+ memory : 128Mi
266
274
267
275
ovsdb-nb :
276
+ replicaCount : 3
268
277
RAFT_PORT : 6643
269
278
DB_TYPE : nb
270
279
DB_PORT : 6441
271
280
OVN_LOG_LEVEL : " info"
272
281
OVN_ELECTION_TIMER : " 10000"
273
282
OVN_INACTIVITY_PROBE : " 60000"
274
283
OVN_PROBE_INTERVAL_TO_ACTIVE : " 60000"
284
+ resources :
285
+ limits :
286
+ cpu : 500m
287
+ memory : 256Mi
288
+ requests :
289
+ cpu : 100m
290
+ memory : 128Mi
275
291
276
292
asr :
277
293
config_agents : []
@@ -465,6 +481,9 @@ logging_sapccsentry:
465
481
networking_arista :
466
482
handlers : stdout, sentry_events, sentry_breadcrumbs
467
483
level : DEBUG
484
+ neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovsdb_monitor :
485
+ handlers : stdout, sentry_events, sentry_breadcrumbs
486
+ level : INFO
468
487
469
488
470
489
pgmetrics :
You can’t perform that action at this time.
0 commit comments