Commit Graph

99769 Commits

Author SHA1 Message Date
Abu Kashem
4447f2459a
apf: exempt probes /healthz /livez /readyz 2021-04-05 14:07:22 -04:00
jay vyas
cd58735777
add network-policy label automatically 2021-04-05 09:36:15 -07:00
Davanum Srinivas
766c6706c4
Fix file mode condition for host_path storage test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-05 09:25:45 -04:00
Antonio Ojea
1e1c4c5ac9 add node handlers to the metaproxier 2021-04-05 02:05:18 +02:00
Kubernetes Prow Robot
f137c47770
Merge pull request #100785 from jsturtevant/align-test-timeouts
Align lifecylce related test pod start up times
2021-04-04 16:18:12 -07:00
Nicolas Mitchell
338b06fb69 validate test/workload names in validateTestCases 2021-04-04 14:18:39 -04:00
Kevin Delgado
5f1b146852 Update structured-merge-diff to v4.1.1 2021-04-02 20:04:04 +00:00
James Sturtevant
d0683b8ce2 align some of the pod start up times 2021-04-02 11:29:38 -07:00
Kubernetes Prow Robot
5ad79eae2d
Merge pull request #100759 from jsturtevant/replica-set-flake-issue-100725
Fix for Flaky test ReplicaSet Replace and Patch tests [Conformance]
2021-04-02 05:12:12 -07:00
Masashi Honma
6b9ff98dd7 Fix a unit test failure in non English languages
This is a result in Japanese language.

$ make test WHAT=./staging/src/k8s.io/kubectl/pkg/cmd/diff
[0402 07:24:05] Running tests without code coverage
FAIL: TestDiffProgram (0.00s)
    diff_test.go:73: stdout = "ファイル /dev/zero と /dev/zero は同一です\n", expected = Files /dev/zero and /dev/zero are identical
        "
FAIL
FAIL	k8s.io/kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/diff	0.045s
FAIL
make: *** [Makefile:184: test] エラー 1
2021-04-02 15:59:47 +09:00
pacoxu
a1356f5218 add log test cases for Time encode
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-04-02 11:26:37 +08:00
James Sturtevant
dab1325c29 increase timeout for pods to start 2021-04-01 12:28:50 -07:00
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
pacoxu
54bc0ff250 update uber zap to 1.16.0 to fix a nil pointer exception
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-04-01 15:28:29 +08: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
pacoxu
ce50018a76 part1 of e2e: master to apiserver/control-plane
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-31 15:50:18 +08: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
Wei Huang
e7f67b1a63
Surface kube config in scheduler framework handle 2021-03-30 11:54:59 -07: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