Shahar Klein
ecb79330c0
Add support for log rotation
...
When using debug level the log files tends to fill up quickly.
Add support for log rotation using lumberjack, simple and easy to use
log rotation module.
Signed-off-by: Shahar Klein <sklein@nvidia.com>
2020-06-17 15:31:19 +09:00
Doug Smith
3882e405ef
Merge pull request #515 from s1061123/fix/namespace-in-status
...
Fix network status name/namespace to compliant with multi-net-spec
2020-06-09 15:08:23 -04:00
Doug Smith
5e15ff18f8
Merge pull request #518 from dougbtv/readme-typo
...
README typo for roll-YOUR-own
2020-06-09 15:07:49 -04:00
dougbtv
28bb98f78b
README typo for roll-YOUR-own
2020-06-09 15:07:19 -04:00
Tomofumi Hayashi
e7c8977423
Fix network status name/namespace to compliant with multi-net-spec
...
This fix changes network status name to net-attach-def name with
namespace, to compliant with k8s npwg's multi-net-spec.
2020-06-09 12:43:49 +09:00
Doug Smith
fff8e490b9
Merge pull request #511 from s1061123/fix/error-on-fail
...
Change the error handling for kubernetes client
2020-06-08 09:14:02 -04:00
dougbtv
809a16fbed
Adds code of conduct
2020-06-05 09:18:10 +09:00
Tomofumi Hayashi
f5dcb9d8be
Change the error handling for kubernetes client
...
This change adds retry to wait a bit if kubernetes client
returns service unavailable.
This fixes #492
2020-06-01 23:17:42 +09:00
Doug Smith
fdd7d30095
Merge pull request #507 from s1061123/dev/update-example
...
Simplify examples directory
2020-05-28 09:59:10 -04:00
Tomofumi Hayashi
c976f6bceb
Add deviceid in clusterNetwork
2020-05-28 10:00:29 +09:00
Tomofumi Hayashi
8131923b14
Simplify examples directory
2020-05-19 21:29:19 +09:00
Tomofumi Hayashi
4eac660359
Introduce gopkg.in for go module
...
This change introduces gopkg.in to allow everyone to use multus
code as library. Currently multus-cni uses version 'v3', hence
it hits go modules limitation, as #504 describes.
This change fix #504 with gopkg.in.
2020-05-15 21:33:26 +09:00
dougbtv
ec5fd6c923
Move pre-1.16 Kubernetes assets to a deprecated folder (to later remove)
2020-05-08 09:50:33 +09:00
Doug Smith
b8540e190d
Merge pull request #455 from cucosion/feature/gkeexample
...
Daemonset for Google Kubernetes Engine for kubernetes cluster version…
2020-04-30 09:44:45 -04:00
Doug Smith
a4c2b67784
Merge pull request #497 from s1061123/fix/improve-cni-logs
...
[WIP] Fix/improve cni logs
2020-04-30 08:43:09 -04:00
Tomofumi Hayashi
b2439f8279
Simplify error message in case of delegating CNI error
...
This fix removes redundant error messages and try to simplify
if the error comes from delegating CNI plugins.
2020-04-30 18:02:05 +09:00
dougbtv
c8fc357f05
Adds development docs note regarding issue policy
2020-04-30 10:59:26 +09:00
dougbtv
92beb4bcdc
Sets the Kubernetes API calls timeout to 60 seconds
2020-04-23 10:47:11 +09:00
dougbtv
931c12531d
Allows namespaceIsolation to allow pods in any namespace refer to the default namespace
2020-04-22 09:08:11 +09:00
Doug Smith
8dba1f4a37
Merge pull request #487 from redhat-nfvpe/dev/test
...
Skip docker push action if REPOSITORY_PASS is not set
2020-04-21 08:56:08 -04:00
Tomofumi Hayashi
aeaf78a310
Skip docker push action if REPOSITORY_PASS is not set
2020-04-21 21:54:44 +09:00
Tomofumi Hayashi
ab073f88cd
Add error message in case of unexpected situation
...
To troubleshooting #481 , adds error message for further analysis.
2020-04-21 21:42:57 +09:00
Ted Yu
1df1e4f530
Check Pod parameter against nil before calling Eventf
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-21 00:12:36 +09:00
dougbtv
81297f5b74
Updates Dockerfile to golang 1.13 (specifying version)
2020-04-20 21:44:17 +09:00
dougbtv
3ddc6250de
Fix pre 1.16 api version for CRDs
2020-04-17 17:10:20 +09:00
dougbtv
8fff5aac60
Add description fields to NetworkAttachmentDefinition CRD
2020-04-16 02:01:40 +09:00
Doug Smith
6ccf03e8b3
Merge pull request #473 from ashish-billore/master
...
Error log for network-attachment-definition
2020-04-02 09:46:00 -04:00
dougbtv
c0891354ff
Adds readinessindicatorfile check on CNI DEL
2020-04-02 22:40:09 +09:00
ashish-billore
ea95133ef4
Error log for network-attachment-definition
...
Corrected the error for missing network-attachment-definition
updated test for this error.
2020-04-02 17:40:32 +09:00
Doug Smith
5931d24639
Merge pull request #469 from ashish-billore/patch-2
...
Update quickstart.md
2020-03-30 08:40:33 -04:00
Ashish Billore
055f74fc61
Update quickstart.md
2020-03-30 14:02:35 +09:00
Mamduh Alassi
14fb6be109
Use latest image version 3.4.1 in daemonset file
2020-03-27 00:21:21 +09:00
ICucos
b6bfb75af0
Daemonset for Google Kubernetes Engine for kubernetes cluster version pre 1.16. To be able to start cluster with version 1.15 i used "gcloud container clusters create cl-name --zone europe-west1-b --num-nodes=2 --machine-type=n1-standard-8 --image-type ubuntu --enable-network-policy --cluster-version=1.15.9-gke.24". !!!!important to start the cluster with --enable-network-policy that will enable CNI in kublet
2020-03-25 13:03:44 +02:00
Tomofumi Hayashi
7f50f5f175
Fix CI workflow
2020-03-23 23:49:05 +09:00
Doug Smith
ea72e56fab
Merge pull request #462 from s1061123/dev/add-arm64v8-ci
...
Add arm64 build in CI workflow
2020-03-23 09:52:25 -04:00
Tomofumi Hayashi
055a7568ad
Logging improvement (UID, net-attach-def)
...
This change adds pod UID and net-attach-def name in verbose log
and sends kubernetes event when net-attach-def is not found.
2020-03-23 21:32:33 +09:00
Tomofumi Hayashi
c7cd0ef822
Add arm64 build in CI workflow
2020-03-23 13:00:50 +09:00
Trevor Tao
f885b38332
Add Dockerfile for building image on arm64
...
Add Dockerfile.arm64 for building Multus image on arm64.
Actually it's multi-arch capable and works for
amd64 platform too if used.
Signed-off-by: Trevor Tao <trevor.tao@arm.com>
2020-03-19 22:41:27 +09:00
Trevor Tao
cd1a76f919
Add Dockerfile for building image on arm64
...
Add Dockerfile.arm64 for building Multus image on arm64.
Actually it's multi-arch capable and works for
amd64 platform too if used.
Signed-off-by: Trevor Tao <trevor.tao@arm.com>
2020-03-19 22:41:27 +09:00
Tomofumi Hayashi
079c853eba
Add Kubernetes event log when the pod is launched
2020-03-16 22:08:03 +09:00
Tomofumi Hayashi
bfaf22964b
Fix goreleaser file for build-release error
2020-03-16 21:58:41 +09:00
ICucos
1bc8064a5b
Daemonset for Google Kubernetes Engine for kubernetes cluster version 1.16 +. To be able to start cluster with version 1.16 i used rapid channel "gcloud beta container clusters create cluster --zone europe-west1-b --num-nodes=1 --machine-type=n1-standard-8 --image-type ubuntu --enable-network-policy --release-channel=rapid --enable-autorepair"
2020-03-16 13:19:36 +02:00
Tomofumi Hayashi
eaf6ff6e20
Update vendor file to fix #426
2020-03-13 12:16:49 +09:00
Adrian Chiris
5577822b36
Pass DeviceID to each plugin in configuration list
...
Until today, it was hardcoded that DeviceID will only be
injected for the first CNI in the chain.
This commit modifies multus to pass DeviceID to each network
configuration element in a network configuration list.
This will allow multiple CNI's to act on DeviceID when CNI
plugins are being chained for a specific network.
The change is required to allow CNI's to ensure network
isolation (introduced in kernel >= 5.2.0 see [1]) for RDMA devices
when exist.
e.g for SR-IOV network:
sriov-cni moves network device associated with the provided DeviceID
to to the container's network namespace.
An "RDMA cni" would do the same for the corresponding RDMA device when
RDMA traffic is desired on the network.
[1] https://patchwork.kernel.org/cover/10810451/
2020-03-12 23:48:03 +09:00
Periyasamy Palanisamy
32fe803221
Log message after logger initialization
...
In cmdCheck and cmdDelete debug messages are logged even before logger
is initialized with its log level and file (done in types.LoadNetConf).
Because of this those debug messages are not logged into the file.
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@est.tech>
2020-03-05 23:48:15 +09:00
Doug Smith
1412caafbd
Merge pull request #446 from s1061123/no-config-invalidation
...
Removes configuration invalidation
2020-03-02 10:08:45 -05:00
Tomofumi Hayashi
bdece11192
Removes configuration invalidation
2020-02-28 12:43:49 +09:00
Doug Smith
32952b929c
Merge pull request #442 from s1061123/dev/kind-e2e
...
[WIP]Add e2e test with kind in CI pipeline
2020-02-20 09:35:25 -05:00
dougbtv
1042a5e25f
Changes wait.ExponentialBackoff to wait.PollImmediate and exposes readinessindicatorfile via entrypoint parameter
2020-02-19 10:03:43 +09:00
dougbtv
9774ddade1
[docs] Updates quickstart to use alpine image
2020-02-13 17:09:37 +09:00