forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding ovn4nfv in kubespray (kubernetes-sigs#6381)
Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
- Loading branch information
Showing
16 changed files
with
1,023 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# OVN4NFV-k8S-Plugin | ||
|
||
Intro to [ovn4nfv-k8s-plugin](https://github.com/opnfv/ovn4nfv-k8s-plugin) | ||
|
||
## How to use it | ||
|
||
* Enable ovn4nfv in `group_vars/k8s-cluster/k8s-cluster.yml` | ||
|
||
```yml | ||
... | ||
kube_network_plugin: ovn4nfv | ||
... | ||
``` | ||
|
||
## Verifying ovn4nfv kube network plugin | ||
|
||
* ovn4nfv install ovn control plan in the master and ovn daemonset in all nodes | ||
* Network function Networking(nfn) operator is install in the master and nfn agent is installed in all the node | ||
* ovn4nfv install `ovn4nfvk8s-cni` cni shim binary in `/opt/cni/bin/` and nfn agent act as the cni server | ||
* All ovn4nfv pods are installed in the kube-system | ||
|
||
```ShellSession | ||
# From K8s client | ||
# kubectl get pods -n kube-system -l app=ovn-control-plane -o wide | ||
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES | ||
ovn-control-plane-5f8b7bcc65-w759g 1/1 Running 0 3d18h 192.168.121.25 master <none> <none> | ||
|
||
# kubectl get pods -n kube-system -l app=ovn-controller -o wide | ||
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES | ||
ovn-controller-54zzj 1/1 Running 0 3d18h 192.168.121.24 minion01 <none> <none> | ||
ovn-controller-7cljt 1/1 Running 0 3d18h 192.168.121.25 master <none> <none> | ||
ovn-controller-cx46g 1/1 Running 0 3d18h 192.168.121.15 minion02 <none> <none> | ||
|
||
# kubectl get pods -n kube-system -l name=nfn-operator -o wide | ||
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES | ||
nfn-operator-6dc44dbf48-xk9zl 1/1 Running 0 3d18h 192.168.121.25 master <none> <none> | ||
|
||
# kubectl get pods -n kube-system -l app=nfn-agent -o wide | ||
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES | ||
nfn-agent-dzlpp 1/1 Running 0 3d18h 192.168.121.15 minion02 <none> <none> | ||
nfn-agent-jcdbn 1/1 Running 0 3d18h 192.168.121.25 master <none> <none> | ||
nfn-agent-lrkzk 1/1 Running 0 3d18h 192.168.121.24 minion01 <none> <none> | ||
|
||
# kubectl get pods -n kube-system -l app=ovn4nfv -o wide | ||
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES | ||
ovn4nfv-cni-5zdz2 1/1 Running 0 3d18h 192.168.121.24 minion01 <none> <none> | ||
ovn4nfv-cni-k5wjp 1/1 Running 0 3d18h 192.168.121.25 master <none> <none> | ||
ovn4nfv-cni-t6z5b 1/1 Running 0 3d18h 192.168.121.15 minion02 <none> <none> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: ovn4nfv-k8s | Start Resources | ||
kube: | ||
name: "{{ item.item.name }}" | ||
kubectl: "{{ bin_dir }}/kubectl" | ||
filename: "{{ kube_config_dir }}/{{ item.item.file }}" | ||
state: "latest" | ||
with_items: "{{ ovn4nfv_node_manifests.results }}" | ||
when: inventory_hostname == groups['kube-master'][0] and not item is skipped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
ovn_control_plane_cpu_request: 500m | ||
ovn_control_plane_memory_request: 300Mi | ||
ovn_controller_cpu_request: 200m | ||
ovn_controller_memory_request: 300Mi | ||
ovn_controller_cpu_limit: 1000m | ||
ovn_controller_memory_limit: 800Mi | ||
ovn4nfv_cni_cpu_request: 100m | ||
ovn4nfv_cni_memory_request: 50Mi | ||
ovn4nfv_cni_cpu_limit: 100m | ||
ovn4nfv_cni_memory_limit: 50Mi | ||
nfn_agent_cpu_request: 100m | ||
nfn_agent_memory_request: 50Mi | ||
nfn_agent_cpu_limit: 100m | ||
nfn_agent_memory_limit: 50Mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: ovn4nfv | Label control-plane node | ||
command: >- | ||
{{ bin_dir }}/kubectl label --overwrite node {{ groups['kube-master'] | first }} ovn4nfv-k8s-plugin=ovn-control-plane | ||
when: | ||
- inventory_hostname == groups['kube-master'][0] | ||
|
||
- name: ovn4nfv | Create ovn4nfv-k8s manifests | ||
template: | ||
src: "{{ item.file }}.j2" | ||
dest: "{{ kube_config_dir }}/{{ item.file }}" | ||
with_items: | ||
- {name: ovn-daemonset, file: ovn-daemonset.yml} | ||
- {name: ovn4nfv-k8s-plugin, file: ovn4nfv-k8s-plugin.yml} | ||
register: ovn4nfv_node_manifests |
Oops, something went wrong.