...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
# iptables -t nat -F
# iptables -F
# iptables -X |
...
SONA CNI Installation
Download KubeSONA SONA CNI installation yml file.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
# wget https://raw.githubusercontent.com/sonaproject/k8s-sona-ansible/master/roles/kubesona/files/onos.yml |
Configure KubeSONA SONA CNI via editing onos.yml. Make sure external_interface and external_gateway_ip are configured properly.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
data:
...
sona_network_config: |-
# Configuration options for ONOS CNI plugin endpoint
[network]
# Overlay network type (VXLAN, GRE, GENEVE).
type = VXLAN
# Segment identifier of the network.
segment_id = 100
# External uplink interface name.
external_interface = eth2
# External gateway IP address.
external_gateway_ip = 172.16.230.1
# Transient network CIDR.
transient_cidr = 172.10.0.0/16
# Service network CIDR.
service_cidr = 10.96.0.0/12
# Network Maximum Transmission Unit (MTU).
mtu = 1400 |
Install KubeSONA SONA CNI through yml file.
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
# kubectl apply -f onos.yml |
...