Sergey Kanzhelev
3af652f2f2
revert auto-completed package names
2020-07-31 03:47:04 +00:00
Sergey Kanzhelev
d20fd40884
remove legacy leftovers of portmapping functionality that was moved to CNI
2020-07-30 23:12:16 +00:00
Antonio Ojea
6f79600e73
bump cni library version to v0.8.0
...
last CNI library release is 0.7.1 from Jun 11, 2019.
Since then, there was introduced new feature and bugfixes.
Currently, this library is only being used by dockershim,
the other CRI plugins are vendoring it directly
However, this will help also to mitigate some of the issues with the
CI jobs that are still using dockershim.
Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com >
2020-07-01 18:09:19 +02:00
Vinod K L Swamy
ac3f87346f
KubeProxy and DockerShim changes for Ipv6 dual stack support on Windows
...
Signed-off-by: Vinod K L Swamy <vinodko@microsoft.com >
2020-06-10 15:36:48 -07:00
Kubernetes Prow Robot
55d71532c0
Merge pull request #81165 from johscheuer/update-traffic-shaping-docs
...
Update internal traffic shaping docs
2020-05-17 03:01:35 -07:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-05-16 07:54:27 -04:00
mattjmcnaughton
b36f637f0d
Add dockerless tags to all files in dockershim
...
As the final step, add the `dockerless` tags to all files in the
dockershim. Using `-tags=dockerless` in `go build`, we can compile
kubelet without the dockershim.
Once cadvisor no longer depends on `docker/docker`, compiling with
`-tags=dockerless` should be sufficient to compile the Kubelet w/o a
dependency on `docker/docker`.
2020-05-07 17:18:50 -04:00
SataQiu
2497a1209b
bump k8s.io/utils version
2019-12-21 14:54:44 +08:00
Kubernetes Prow Robot
3202bc1044
Merge pull request #83896 from mars1024/modify/cni_log
...
modify error output in cniNetworkPlugin
2019-11-14 20:52:02 -08:00
Kubernetes Prow Robot
5689961ed3
Merge pull request #84649 from benmoss/windows_network_not_initialized
...
Skip GetPodNetworkStatus when CNI not yet initialized
2019-11-13 09:25:59 -08:00
Jordan Liggitt
297570e06a
hack/update-vendor.sh
2019-11-06 17:42:34 -05:00
Bruce Ma
fe50e904eb
restrict max string length in log
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-11-05 18:09:55 +08:00
Ben Moss
ce41faa2eb
Skip GetPodNetworkStatus when CNI not yet initialized
...
Without this scheduling a pod on Windows results in a panic from
`addToNetwork` when it tries to read `NetworkConfig` and `CNIConfig` off
the nil network
2019-10-31 17:51:04 -04:00
Bruce Ma
213c378562
modify error output in cniNetworkPlugin
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-10-14 20:17:27 +08:00
liucimin
ddb1c6a127
fix cni timeout
2019-09-19 22:56:03 +08:00
André Martins
a5365d5be1
dockershim/network: fix panic for cni plugins in IPv4/IPv6 dual-stack mode
...
```
k8s.io/kubernetes/pkg/kubelet/dockershim/network/cni.(*cniNetworkPlugin).GetPodNetworkStatus(0xc000a04370, 0xc000b89a62, 0xb, 0xc000b89a49, 0x18, 0x42edffb, 0x6, 0xc000cfa340, 0x40, 0xc000ced7d0, ...)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockershim/network/cni/cni_others.go:78 +0x420
k8s.io/kubernetes/pkg/kubelet/dockershim/network.(*PluginManager).GetPodNetworkStatus(0xc000a51880, 0xc000b89a62, 0xb, 0xc000b89a49, 0x18, 0x42edffb, 0x6, 0xc000cfa340, 0x40, 0x0, ...)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockershim/network/plugins.go:391 +0x1f9
k8s.io/kubernetes/pkg/kubelet/dockershim.(*dockerService).getIPsFromPlugin(0xc00029b600, 0xc000c25cb0, 0x40, 0x78c0000, 0x7982100, 0x0, 0x0)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockershim/docker_sandbox.go:335 +0x1c3
k8s.io/kubernetes/pkg/kubelet/dockershim.(*dockerService).getIPs(0xc00029b600, 0xc000b66cc0, 0x40, 0xc000c25cb0, 0x30bd171a, 0xed508364b, 0x0)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockershim/docker_sandbox.go:373 +0xe3
k8s.io/kubernetes/pkg/kubelet/dockershim.(*dockerService).PodSandboxStatus(0xc00029b600, 0x4ad8b20, 0xc000c25c80, 0xc000cde1c0, 0xc00029b600, 0xc000c25c80, 0xc0005f5bd0)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockershim/docker_sandbox.go:439 +0x133
k8s.io/kubernetes/vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2._RuntimeService_PodSandboxStatus_Handler(0x42c4e00, 0xc00029b600, 0x4ad8b20, 0xc000c25c80, 0xc000c126c0, 0x0, 0x4ad8b20, 0xc000c25c80, 0xc000cb2d20, 0x42)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.pb.go:7663 +0x23e
k8s.io/kubernetes/vendor/google.golang.org/grpc.(*Server).processUnaryRPC(0xc000a4f760, 0x4b45280, 0xc000b02d80, 0xc000847c00, 0xc000a61b00, 0x78c97c0, 0x0, 0x0, 0x0)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/server.go:995 +0x466
k8s.io/kubernetes/vendor/google.golang.org/grpc.(*Server).handleStream(0xc000a4f760, 0x4b45280, 0xc000b02d80, 0xc000847c00, 0x0)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/server.go:1275 +0xda6
k8s.io/kubernetes/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000a8e9c0, 0xc000a4f760, 0x4b45280, 0xc000b02d80, 0xc000847c00)
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/server.go:710 +0x9f
created by k8s.io/kubernetes/vendor/google.golang.org/grpc.(*Server).serveStreams.func1
/workspace/anago-v1.16.0-beta.1.787+48ca054daba9e6/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/server.go:708 +0xa1
```
Fixes: dba434c4ba ("kubenet for ipv6 dualstack")
Signed-off-by: André Martins <aanm90@gmail.com >
2019-09-10 21:06:19 +02:00
Bruce Ma
f9169d29cb
skip recording inputs & outputs in fake script plugin when CNI_COMMAND=VERSION
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-09-04 22:50:13 +08:00
Bruce Ma
ec342ec98f
delete lo network when TearDownPod to avoid CNI cache leak
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-08-27 19:26:23 +08:00
Tim Allclair
8a495cb5e4
Clean up error messages (ST1005)
2019-08-21 10:40:21 -07:00
Tim Allclair
6510d26b6a
Fix misc static check issues
2019-08-21 10:40:21 -07:00
Bruce Ma
9903cb3ad3
add validation for CNI config before loading and fix some typo
...
1. add validation for CNI config before loading
2. make some CNI capabilities constants
3. add Capabilities field to cniNetwork struct
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-08-09 21:22:23 +08:00
Johannes M. Scheuermann
a9cf6cec72
Correct typos in docs and add better explanation for burstrate
2019-08-08 22:11:40 +02:00
Johannes M. Scheuermann
cfb24eeebc
Update internal traffic shaping docs
2019-08-08 16:26:21 +02:00
fanhao01
24a95a6c3e
Fix golint failure in pkg/kubelet/dockershim/network/cni
2019-07-03 12:57:24 +08:00
Khaled Henidak(Kal)
dba434c4ba
kubenet for ipv6 dualstack
2019-07-02 22:26:25 +00:00
Dan Williams
8739ade3fa
kubelet: add CNI cache dir option and plumb through to CNI and kubenet
...
libcni 0.7.0 caches ADD operation results and allows the runtime to
retrieve these from the cache. In case the user wants a different
cache directory than the defaul, plumb that through like we do
for --cni-bin-dir and --cni-conf-dir.
2019-07-01 12:14:07 -05:00
Alexey Perevalov
a2ea2996f3
move to libcni 0.7.0
...
Previous commit "Use ip address from CNI output" introduces
ability to run pod which can havn't eth0. But also it
add problem: after kubelet restart, if we have already started
pod w/o eth0, kubelet can't find proper interface (it's
normal for vhostuser type of cni plugin when eth0 doesn't exist)
and kubelet restarts "broken" pod.
Fix of this issue requeres new feature of libcni - caching
results.
Looks like new libcni requires cniVersion in CNI output.
This patch specifies version both for CNI conf and CNI output.
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com >
2019-07-01 12:14:06 -05:00
Kubernetes Prow Robot
f4937619a2
Merge pull request #75442 from mars1024/bugfix/bandwidth_unit
...
change bandwidth units from Kb to b
2019-04-25 13:36:54 -07:00
Davanum Srinivas
33081c1f07
New staging repository for cri-api
...
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04:00
Bruce Ma
183247ca5c
change bandwidth units from Kb to b
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com >
2019-03-18 21:22:34 +08:00
chenjun.cj
4fe13c2a99
sync CNI config in goroutine
2019-02-22 16:26:49 +08:00
Lantao Liu
1a92e218e0
Remove unused function from the legacy runtime interface.
...
Signed-off-by: Lantao Liu <lantaol@google.com >
2019-02-07 16:57:19 -08:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
k8s-ci-robot
f40a5d1155
Merge pull request #67435 from feiskyer/dns-cap
...
Add dns capabilities for Windows CNI plugins
2018-11-06 02:54:22 -08:00
Pengfei Ni
32cf0a90c6
Update bazel build
2018-11-01 14:15:55 +08:00
Pengfei Ni
946aff8847
Add dns capabilities to CNI for windows containers
2018-11-01 13:31:45 +08:00
Yongkun Gui
b573cce595
cni: rate and limit must be both set
...
Fix #70014
2018-10-23 16:44:07 -07:00
Dan Williams
6cfe116375
network/cni: more informative log messages
...
Log details about the pod name, namespace, sandbox ID, and result.
Remove some useless messages that are now redundant.
2018-10-01 21:01:40 -05:00
Lucas Käldström
844487aea4
autogenerated
2018-08-29 20:21:17 +03:00
Lucas Käldström
7a840cb4c8
automated: Rename all package references
2018-08-29 19:07:52 +03:00
Casey Callendrello
5d9ec20d7e
kubelet/dockershim/network: pass ipRange dynamically to the CNI plugin
...
CNI now supports passing ipRanges dynamically. Pass podCIDR so that
plugins no longer have to look it up.
2018-08-15 17:41:09 +02:00
Kubernetes Submit Queue
e943d09fa3
Merge pull request #63194 from m1093782566/cni-ts
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
Adding traffic shaping support for CNI network driver
**What this PR does / why we need it**:
Adding traffic shaping support for CNI network driver - it's also a sub-task of kubenet deprecation work.
Design document is available here: https://github.com/kubernetes/community/pull/1893
**Which issue(s) this PR fixes**:
Fixes #
**Special notes for your reviewer**:
/cc @freehan @jingax10 @caseydavenport @dcbw
/sig network
/sig node
**Release note**:
```release-note
Support traffic shaping for CNI network driver
```
2018-07-08 23:54:25 -07:00
liangwei
34d848eb1a
add cni bandwidth test
2018-07-09 09:51:33 +08:00
m1093782566
8038a0dfa6
add traffic shaping support for CNI network driver
2018-07-08 22:22:25 +08:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Jeff Grafton
a725660640
Update to gazelle 0.12.0 and run hack/update-bazel.sh
2018-06-22 16:22:18 -07:00
Di Xu
5ebd40cb6a
bind alpha feature network plugin flags correctly
2018-06-02 11:31:01 +08:00
Matthias Bertschy
9b15af19b2
Update all script to use /usr/bin/env bash in shebang
2018-04-19 13:20:13 +02:00
Yu-Ju Hong
4f9d4e1af6
Update bazel BUILD files
...
Also update the golint_failure file to reflect the new location.
2018-04-11 09:26:02 -07:00