Comments (3)
/cc @glazychev-art @edwarnicke
from deployments-k8s.
In Kubernetes, any Pod can add a Network Service using an annotation:
annotations:
networkservicemesh.io: "kernel://my-networkservice-1/nsm-1"
If you're intrested in kernel mechanims then here as I can see need to add a sriovToken label. See at kernel sriov use-case example https://github.com/networkservicemesh/deployments-k8s/tree/main/examples/use-cases/SriovKernel2Noop
when we try the sriov deployment in example directory, we have to prepare the sriov config first. what kind of resource will be created from the sriov config file. (hint, SriovNetworkNodePolicy or SriovNetwork)
We're testing this on the packet cluster. I think this configuration of the cluster could be interested for you https://github.com/networkservicemesh/integration-k8s-packet/blob/main/.github/workflows/ci.yaml#L72
when we try the SriovKernel2Noop usecase in example directory, we met some errors, how to solve it.
root@ubuntu-be8216485a:~/nsm_sriov_test# kubectl logs -f nsc-kernel-7ff8f5dcc7-g5ffq -n ns-hlnx5
This is intresting. Could you dump logs from your clusterr and attach them?
can nsm support mem_if or vhost?
Yes, but it is supporting by another forwarder (vpp). See at memif/vxlan examples https://github.com/networkservicemesh/deployments-k8s/tree/main/examples/basic
from deployments-k8s.
- I deploy sriov example, it succeeded (https://github.com/networkservicemesh/deployments-k8s/tree/main/examples/sriov)
root@ubuntu-be8216485a:~/nsm_sriov_test# kubectl get po -n nsm-system
NAME READY STATUS RESTARTS AGE
forwarder-vpp-dd5wr 1/1 Running 0 32m
nsmgr-v7mvb 2/2 Running 0 32m
registry-k8s-76fd9d68c5-d4ghs 1/1 Running 0 32m
- I deploy "Test SR-IOV kernel connection" (https://github.com/networkservicemesh/deployments-k8s/tree/main/examples/use-cases/SriovKernel2Noop)
the status is shown below
root@ubuntu-be8216485a:~/nsm_sriov_test# kubectl get po -n ns-8s8v6
NAME READY STATUS RESTARTS AGE
nsc-kernel-5f65c5b4-hmqk4 1/1 Running 0 7m56s
nse-kernel-75ccfd5c9f-8z24t 1/1 Running 0 7m56s
ponger-7675f85679-mwzk2 1/1 Running 6 (2m59s ago) 7m56s
while the pod of ponger is error, and the error log is as below
root@ubuntu-be8216485a:~/nsm_sriov_test# kubectl logs ponger-7675f85679-mwzk2 -n ns-8s8v6
ip: can't find device 'eno4'
ip: can't find device 'eno4'
ip: can't find device 'eno4'
ip: ioctl 0x8913 failed: No such device
ip: can't find device 'eno4'
ip: can't find device 'eno4'
ip: can't find device 'eno4'
ip: can't find device 'eno4'
- the pod of nsc-kernel and nse-kernel is deployed successfully, but how to confirm that the pod is using sriov vf interface.
from deployments-k8s.
Related Issues (20)
- Implement k8s controller for NSM connections
- Implement k8s controller for NSM endpoints/network services to be able to comfortable work with custom registries in k8s
- admission-webhook-k8s stays in a NonReady state HOT 2
- Bug with re-deployment of nse-composition with kernel-interfaces HOT 8
- Cilium bug with multi-nodes NSM cluster.
- Bug with nse-composition example. HOT 1
- install nsm problem HOT 3
- Link for vl3 floating example doesn't work
- NSM in kubeadm cluster
- nse interface incorrect name HOT 1
- NSEs and Forwarders can have the same url when they register in a registry
- Add configuration for turning profiling on/off HOT 11
- `nsc-memif` constantly heal the connection in the `local-nsmgr-local-nse-memif` test
- Loadbalancer example stops working when the deployment is scaled up.
- Add PostgreSQL server to the spire server config and get rid of using persistent volume
- Bug with kernel-chain-composition HOT 2
- Error updating bundle HOT 6
- Some NSCs have more routes than expected after node restart HOT 2
- Add highload NSM scenarios
- YAML linter doesn't check `k8s` yaml files for correctness
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deployments-k8s.