Closed egernst closed 7 years ago
Think I see the issue!
@egernst if you attending the Intel's NFV features in Kubernetes Kubecon session , we doing hands-on session with portable Virutal box, and we giving out Intel USB stick with container exp kit as collateral. The collateral has all ansible script to be deployed.
Sorry, thought it was an issue with the ptp network yaml description, but looks like it should be okay from my perspective. I'm curious if you have tried this out? My goal is to be able to post some updated documentation / simple example configurations which can be curl'd for folks getting started with multus.
@rkamudhan -- I wish I was heading down - won't make it.
If you have ansible available now on a gist, etc, that's fine -- please share! I'd prefer a minimal number of steps and simple examples which are hw agnostic for getting up and running with multus. I was able to get it up with bridge and SRIOV (details @ https://github.com/egernst/k8s-testing-scripts/tree/master/multus-sriov), but am now having issue with PTP on my end.
I saw PTP using the conf in your README.md, but no examples of in CRD; is this something you've run on your end?
Typo error man.
apiVersion: "kubernetes.com/v1"
kind: Network
metadata:
name: ptp-net
plugin: ptp
args: '[
{
"name": "ptp-net",
"type": "ptp",
"ipam": {
"type": "host-local",
"subnet": "10.248.246.144/28",
"routes": [
{ "dst": "0.0.0.0/0" }
}
}
]'
should be
apiVersion: "kubernetes.com/v1"
kind: Network
metadata:
name: ptp-net
plugin: ptp
args: '[
{
"name": "ptp-net",
"type": "ptp",
"ipam": {
"type": "host-local",
"subnet": "10.248.246.144/28",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
}
]'
Multus had error recovery mechanism using default network. Can you send me your conf file ? Whether it having default network? Some user wants this mechanism, for some, it is an issue.
Yep -- that's why I ended up closing the book 30 minutes ago. As soon as I typed it out I noticed the ].
Lame question -- where are the logs sent for this? I'll push the files onto a Quickstart.gist later tonight -- may be a good addition to have on the multus-cni site.
Please let me know the PR, I like to include your testing script repo link in the Multus README.md
@egernst Is the network in the pod annotation fails in the creation, then the network from default is picked by Multus ?
That was indeed the case. I ended up seeing it pull up my default from flannel. Thanks for the help!
Steps:
Copy multus configration file to /etc/cni/net.d/:
Start a single node kubernetes cluster:
sudo -E kubeadm init --pod-network-cidr 10.244.0.0/16
Startup flannel, using .yamls from the upstream coreOS repo:
Taint master so we can schedule work on it and create a custom resource definition for networks:
Where crd-network yaml is:
Create a few CRD network types on the system, based on following yaml:
apiVersion: "kubernetes.com/v1" kind: Network metadata: name: br-net-1 plugin: bridge args: '[ { "name": "br-net-1", "type": "bridge", "bridge": "br-net-1", "ipam": { "type": "host-local", "subnet": "10.1.10.0/24" } } ]'
apiVersion: "kubernetes.com/v1" kind: Network metadata: name: br-net-2 plugin: bridge args: '[ { "name": "br-net-2", "type": "bridge", "bridge": "br-net-2", "ipam": { "type": "host-local", "subnet": "11.1.1.0/24" } } ]'
$ sudo -E kubectl create -f ptp-pod.yaml $ cat ptp-pod.yaml
apiVersion: v1 kind: Pod # TODO make these deployments later metadata: name: ptp-test annotations: networks: '[ { "name": "br-net-1" }, { "name": "br-net-2" }, { "name": "ptp-net" } ]' spec: containers: