Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions bindata/network/frr-k8s/001-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,15 @@ spec:
0
disableMP:
default: false
description: To set if we want to disable MP BGP that
will separate IPv4 and IPv6 route exchanges into
distinct BGP sessions.
description: |-
To set if we want to disable MP BGP that will separate IPv4 and IPv6 route exchanges into distinct BGP sessions.
Deprecated: DisableMP is deprecated in favor of dualStackAddressFamily.
type: boolean
dualStackAddressFamily:
default: false
description: |-
To set if we want to enable the neighbor not only for the ipfamily related to its session,
but also the other one. This allows to advertise/receive IPv4 prefixes over IPv6 sessions and vice versa.
type: boolean
dynamicASN:
description: |-
Expand Down Expand Up @@ -222,6 +228,8 @@ spec:
represents an interface name on the host and if user provides an invalid
value, only the actual BGP session will not be established.
Address and Interface are mutually exclusive and one of them must be specified.
Note: when enabling unnumbered, the neighbor will be enabled for both
IPv4 and IPv6 address families.
type: string
keepaliveTime:
description: |-
Expand Down
2 changes: 1 addition & 1 deletion bindata/network/frr-k8s/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data:
#
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000 --limit-fds 100000"
bgpd_options=" -A 127.0.0.1 --limit-fds 100000"
bgpd_options=" -A 127.0.0.1 -p 0 --limit-fds 100000"
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
ripd_options=" -A 127.0.0.1"
Expand Down
11 changes: 3 additions & 8 deletions bindata/network/frr-k8s/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
component: frr-k8s-webhook-server
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
openshift.io/required-scc: restricted-v2
openshift.io/required-scc: privileged
spec:
containers:
- command:
Expand All @@ -71,19 +71,13 @@ spec:
- --webhook-mode=onlywebhook
- --disable-cert-rotation=true
- --namespace=$(NAMESPACE)
- --metrics-bind-address=:7572
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: {{.FRRK8sImage}}
name: frr-k8s-webhook-server
ports:
- containerPort: 7572
name: monitoring
securityContext:
runAsNonRoot: true
name: frr-k8s-webhook-server
resources:
requests:
cpu: 10m
Expand Down Expand Up @@ -122,3 +116,4 @@ spec:
serviceAccountName: frr-k8s-daemon
priorityClassName: system-cluster-critical
terminationGracePeriodSeconds: 10
hostNetwork: true
4 changes: 4 additions & 0 deletions bindata/network/multus-admission-controller/003-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ webhooks:
apiGroups: ["k8s.cni.cncf.io"]
apiVersions: ["v1"]
resources: ["network-attachment-definitions"]
matchConditions:
# On updates, only validate if the Spec changes
- name: CreateDeleteOrUpdatedSpec
expression: oldObject == null || object == null || object.spec != oldObject.spec
sideEffects: NoneOnDryRun
admissionReviewVersions:
- v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ spec:
route_advertisements_enable_flag="--enable-route-advertisements"
fi

if [ "{{.OVN_GATEWAY_MODE}}" == "shared" ]; then
gateway_mode_flags="--gateway-mode shared"
elif [ "{{.OVN_GATEWAY_MODE}}" == "local" ]; then
gateway_mode_flags="--gateway-mode local"
else
echo "Invalid OVN_GATEWAY_MODE: \"{{.OVN_GATEWAY_MODE}}\". Must be \"local\" or \"shared\"."
exit 1
fi

echo "I$(date "+%m%d %H:%M:%S.%N") - ovnkube-control-plane - start ovnkube --init-cluster-manager ${K8S_NODE}"
exec /usr/bin/ovnkube \
--enable-interconnect \
Expand All @@ -165,6 +174,7 @@ spec:
${persistent_ips_enabled_flag} \
${multi_network_enabled_flag} \
${network_segmentation_enabled_flag} \
${gateway_mode_flags} \
${route_advertisements_enable_flag}
volumeMounts:
- mountPath: /run/ovnkube-config/
Expand Down