Commit Graph

99691 Commits

Author SHA1 Message Date
Claudiu Belu
665e2004f1 Windows tests: Adds [Feature:GPUDevicePlugin] tag to Device Plugin test
The test verifies a specific feature, in which GPUs are required, thus, cannot
be run in most testing environments. We should exclude this test from most test jobs.
We'll be doing this by adding the [Feature:GPUDevicePlugin] tag (which is also being
used by test/e2e/scheduling/nvidia-gpus.go), and then add it to the ginkgo skip regex.
2021-04-01 11:36:13 -07:00
Davanum Srinivas
be631ec410
Move from kube-dns to core-dns for local-up-cluster.sh
Still leave room for folks to run the older kube-dns if they choose to,
but it's about time we move local-up to what we tell everyone to use!

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-01 09:50:18 -04:00
Laila Kassar
a5fdad260f
Update pkg/volume/azure_file/azure_provision.go
Co-authored-by: Shiming Zhang <wzshiming@foxmail.com>
2021-03-31 22:54:21 -05:00
Mike Danese
724e760721 clarify RBAC API documentation
(Resource|Verb)All are meaningless in the context of openapi spec. I saw
ResourceAll used in an RBAC policy.

Change-Id: I8ab5f230bed23be902f77cadee3fbcdec6b24064
2021-03-31 17:21:56 -07:00
Masashi Honma
d43b8dbf4e Use simpler expressions for error messages
1. Do not describe port type in message because lp.String() already has the
information.

2. Remove duplicate error detail from event log.
Previous log is like this.

47s         Warning   listen tcp4 :30764: socket: too many open files   node/127.0.0.1   can't open port "nodePort for default/temp-svc:834" (:30764/tcp4), skipping it: listen tcp4 :30764: socket: too many open files
2021-04-01 09:13:45 +09:00
Laila Kassar
7514ad4467 Normalize share name to not include capital letters 2021-03-31 23:52:36 +00:00
Masashi Honma
3266136c1d Fire an event when failing to open NodePort
[issue]
When creating a NodePort service with the kubectl create command, the NodePort
assignment may fail.

Failure to assign a NodePort can be simulated with the following malicious
command[1].

$ kubectl create service nodeport temp-svc --tcp=`python3 <<EOF
print("1", end="")
for i in range(2, 1026):
  print("," + str(i), end="")
EOF
`

The command succeeds and shows following output.

service/temp-svc created

The service has been successfully generated and can also be referenced with the
get command.

$ kubectl get svc
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)
temp-svc     NodePort    10.0.0.139   <none>        1:31335/TCP,2:32367/TCP,3:30263/TCP,(omitted),1023:31821/TCP,1024:32475/TCP,1025:30311/TCP   12s

The user does not recognize failure to assign a NodePort because
create/get/describe command does not show any error. This is the issue.

[solution]
Users can notice errors by looking at the kube-proxy logs, but it may be difficult to see the kube-proxy logs of all nodes.

E0327 08:50:10.216571  660960 proxier.go:1286] "can't open port, skipping this nodePort" err="listen tcp4 :30641: socket: too many open files" port="\"nodePort for default/temp-svc:744\" (:30641/tcp4)"
E0327 08:50:10.216611  660960 proxier.go:1286] "can't open port, skipping this nodePort" err="listen tcp4 :30827: socket: too many open files" port="\"nodePort for default/temp-svc:857\" (:30827/tcp4)"
...
E0327 08:50:10.217119  660960 proxier.go:1286] "can't open port, skipping this nodePort" err="listen tcp4 :32484: socket: too many open files" port="\"nodePort for default/temp-svc:805\" (:32484/tcp4)"
E0327 08:50:10.217293  660960 proxier.go:1612] "Failed to execute iptables-restore" err="pipe2: too many open files ()"
I0327 08:50:10.217341  660960 proxier.go:1615] "Closing local ports after iptables-restore failure"

So, this patch will fire an event when NodePort assignment fails.
In fact, when the externalIP assignment fails, it is also notified by event.

The event will be displayed like this.

$ kubectl get event
LAST SEEN   TYPE      REASON                                            OBJECT           MESSAGE
...
2s          Warning   listen tcp4 :31055: socket: too many open files   node/127.0.0.1   can't open "nodePort for default/temp-svc:901" (:31055/tcp4), skipping this nodePort: listen tcp4 :31055: socket: too many open files
2s          Warning   listen tcp4 :31422: socket: too many open files   node/127.0.0.1   can't open "nodePort for default/temp-svc:474" (:31422/tcp4), skipping this nodePort: listen tcp4 :31422: socket: too many open files
...

This PR fixes iptables and ipvs proxier.
Since userspace proxier does not seem to be affected by this issue, it is not fixed.

[1] Assume that fd limit is 1024(default).
$ ulimit -n
1024
2021-04-01 08:27:51 +09:00
Rob Scott
50b377fe4e
Updating Topology Aware Hints to support "Auto" value for annotation
Previously only "auto" was supported, a value that was inconsistent with
Kubernetes naming patterns.
2021-03-31 15:58:42 -07:00
Mauricio Poppe
55bed0bb66 skip default storageclass test with windows nodes 2021-03-31 17:21:57 +00:00
Kubernetes Prow Robot
a651804427
Merge pull request #100687 from dims/switch-to-newer-agnhost-image-2.31
Switch to newer agnhost image - 2.31
2021-03-30 21:54:58 -07:00
Qi Ni
c1f4a25e64 do not tag user created public IPs 2021-03-31 12:39:47 +08:00
Davanum Srinivas
57ddfb7314
Switch to newer agnhost image
We have an update to the image in
f9aaf71ccb, we need to bump to use this
image.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-30 20:15:36 -04:00
Niekvdplas
fec272a7b2 Fixed several spelling mistakes 2021-03-30 23:02:09 +02:00
Kubernetes Prow Robot
bb89384f39
Merge pull request #100680 from smira/fix-100674
test/e2e: fix the OIDC discovery test with ECDSA service account key
2021-03-30 14:00:58 -07:00
Andrey Smirnov
f9aaf71ccb test/e2e: fix the OIDC discovery test with ECDSA service account key
By default oidc library enables only `RS256` signature validation
method.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-03-30 22:58:50 +03:00
Casey Callendrello
1efd456bcf test/e2e: handle ipv6 addresses in netpol tests
The tests, as written, don't correctly join ip and port for v6
addresses.

use net.JoinHostPort to handle this case.
2021-03-30 16:41:06 +02:00
Kubernetes Prow Robot
3d48f0d1dd
Merge pull request #100660 from dims/common-auth-plugins-should-always-be-available
Common auth plugins should always be available
2021-03-30 07:11:57 -07:00
Kubernetes Prow Robot
b6ff1370bd
Merge pull request #100638 from tkashem/fix-98697
apf: fix data race in queueset
2021-03-30 05:15:57 -07:00
Davanum Srinivas
b1e9fc4935
Common auth plugins should always be available
Whether `providerless` is present or not, the OIDC plugin
should be available.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-30 06:10:21 -04:00
Abu Kashem
fa0952ee77
apf: fix test flake 2021-03-29 17:25:03 -04:00
Kubernetes Prow Robot
6572fe4d90
Merge pull request #100550 from dims/add-new-iptables-rule-for-local-up-cluster.sh
Add new iptables rule for local-up-cluster.sh
2021-03-29 13:24:09 -07:00
Kubernetes Prow Robot
e33a80bf2a
Merge pull request #100544 from dims/set-some-kube-proxy-params-for-local-up-cluster
Set some kube-proxy parameters for local-up-cluster.sh
2021-03-29 13:23:57 -07:00
Kubernetes Prow Robot
816bdd3011
Merge pull request #100569 from dims/set-jwks-uri-in-local-up-cluster.sh
Set jwks uri in local-up-cluster.sh
2021-03-29 12:17:57 -07:00
Kubernetes Prow Robot
ff09d509ca
Merge pull request #100632 from logicalhan/etcd_deprecation
bump the deprecated version to 1.22
2021-03-29 08:56:46 -07:00
Han Kang
e7ee76efc0 bump the deprecated version to 1.22
Change-Id: Ibefaa94151704fcaaa920541bbb9a8ad714c1d24
2021-03-29 07:54:12 -07:00
Kubernetes Prow Robot
26fc02a9e2
Merge pull request #100606 from dims/providerless-tag-for-client-go-auth-plugins
Providerless tag for client go auth plugins
2021-03-29 07:46:45 -07:00
Kubernetes Prow Robot
fc9ffb4103
Merge pull request #100616 from nikhita/publishing-release-21
staging/publishing: add release-1.21 branch
2021-03-29 03:22:50 -07:00
Nikhita Raghunath
817e0c873d staging/publishing: add go1.15.10 for release-1.20 branch 2021-03-29 14:50:01 +05:30
Nikhita Raghunath
1268d0bb23 staging/publishing: add release-1.21 rules 2021-03-29 14:45:13 +05:30
Davanum Srinivas
1ac2d6f7fa
providerless tag for client-go auth plugins
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-28 20:07:59 -04:00
Davanum Srinivas
44d143f6e1
Add new iptables rule for local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-28 11:19:02 -04:00
Kubernetes Prow Robot
770d3f181c
Merge pull request #99734 from wgahnagl/sysctls-conformance
Promote sysctls e2e test to Conformance
2021-03-26 18:26:43 -07:00
Anago GCB
7146eb5931 CHANGELOG: Update directory for v1.21.0-rc.0 release 2021-03-26 22:35:18 +00:00
Kubernetes Prow Robot
9c9af69ea6
Merge pull request #100573 from pacoxu/upgrade-corefile-migration
Update the kubelet log pod status to level 6 as it is so big
2021-03-26 11:26:43 -07:00
Paco Xu
54606db1b4
Update pkg/kubelet/pleg/generic.go
Co-authored-by: Elana Hashman <ehashman@users.noreply.github.com>
2021-03-26 13:19:51 +08:00
ZP-AlwaysWin
b56d8dd513 Add unit test 2021-03-26 11:10:30 +08:00
Kubernetes Prow Robot
30a261d97c
Merge pull request #100566 from dekkagaijin/patch-1
Update image base to `gcr.io/distroless/base-debian10:latest`
2021-03-25 20:04:43 -07:00
pacoxu
3fc1e0891b Update the kubelet log status to level 6 as it is so big
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-26 10:09:20 +08:00
Kubernetes Prow Robot
9af6f70f8f
Merge pull request #100571 from puerco/conformance-on-tarballs
Add KUBE_BUILD_CONFORMANCE on package-tarballs target
2021-03-25 19:00:45 -07:00
Adolfo García Veytia (Puerco)
999a1f5c76 Add KUBE_BUILD_CONFORMANCE on package-tarballs target
Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
2021-03-25 18:20:36 -06:00
Kubernetes Prow Robot
931516a87b
Merge pull request #100191 from jingxu97/mar/deployment
Fix deployment lifecycle test issue
2021-03-25 17:13:49 -07:00
Kubernetes Prow Robot
447e338e26
Merge pull request #100552 from BenTheElder/prometheus-visibility
add a verify equivilant to prometheus visibility rules
2021-03-25 15:43:46 -07:00
Benjamin Elder
7ede8a2647 add a verify equivilant to prometheus visibility rules 2021-03-25 14:42:10 -07:00
tiloso
dc16cf4285 Fix staticcheck in k8s.io/client-go/discovery 2021-03-25 22:29:37 +01:00
Kubernetes Prow Robot
01f7495b65
Merge pull request #100563 from msau42/revert-azure
Revert #97417 "fix azure file secret not found issue"
2021-03-25 14:27:46 -07:00
Davanum Srinivas
91ca1b12bb
Set jwks uri in local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-25 17:09:58 -04:00
Jake Sanders
2c165506bd
Update image base to gcr.io/distroless/base-debian10:latest
This change:
* Updates the base image be based on `buster` (vs. the default `stretch`)
* Consumes the fix for [CVE-2021-3449](https://security-tracker.debian.org/tracker/CVE-2021-3449) in https://github.com/GoogleContainerTools/distroless/pull/700
2021-03-25 12:52:34 -07:00
Kubernetes Prow Robot
4333e5caa7
Merge pull request #100553 from adtac/suspend-intfail
job controller: don't mutate shared cache object
2021-03-25 10:31:29 -07:00
David Eads
cbd762814f use a non-deprecated API to check kube-proxy 2021-03-25 12:41:50 -04:00
Michelle Au
9c169a2122 Revert "fix azure file secret not found issue"
This reverts commit 8d43976b74.

Change-Id: Iefaa0e76489883830ba1c9bdcbc3101bcc33082c
2021-03-25 09:28:50 -07:00