Tim Hockin
52f54ce90d
Svc REST: clean up defaultOnRead to be consistent
...
Headless+selectorless -> RequireDualStack
Headless+selector -> SingleStack
Add test cases to cover this and ExternalName and dual-stack init (which
I think can never trigger, but best to be safe).
2021-09-16 11:17:45 -07:00
Aldo Culquicondor
609306dd5b
Skip check for all topology labels when using system default spreading
...
Checking for all topology labels is not backwards compatible. Clusters were nodes don't have zone labels effectively have default spreading disabled.
Change only applies to system defaults.
2021-09-16 09:37:56 -04:00
Kubernetes Prow Robot
5d7ac70051
Merge pull request #104670 from andyzhangx/patch-2
...
turn on CSIMigrationAzureDisk by default on 1.23
2021-09-16 05:35:45 -07:00
Stanislav Laznicka
b67bd722a9
rootcacertpublisher: drop the namespace label from metrics to reduce its cardinality
...
The `root_ca_cert_publisher_sync_duration_seconds` metric tracks the sync
duration in the root CA cert publisher per code and namespace. In
clusters with a high namespace turnover (like CI clusters), this may
cause the kube-controller-manager to expose over 100k series to
Prometheus, which may cause degradation of that service.
Drop the `namespace` label to remove the metrics' cardinality, tracking
this metric by namespace does not justify the impact of keeping it.
2021-09-16 14:05:32 +02:00
h4ghhh
0734820279
'New' Event namespace validate failed ( #100125 )
2021-09-16 04:29:45 -07:00
jyz0309
615c69643b
migrate to struct log for proxy
...
Signed-off-by: jyz0309 <45495947@qq.com >
remove useless str
Signed-off-by: jyz0309 <45495947@qq.com >
fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
2021-09-16 18:01:22 +08:00
Patrick Ohly
1d656d46a2
scheduler: avoid repeated boilerplate code when registering plugins
...
Some plugins expect the new feature gate struct. We can inject that additional
parameter via a helper function instead of having to repeat the same anonymous
function for each plugin.
2021-09-16 11:23:57 +02:00
Shubham Kuchhal
ef2be5586e
Add supported 'alg' header values.
2021-09-16 14:02:21 +05:30
calvin0327
fb9caa6a84
structured log migration for pkg/util/netsh
2021-09-16 13:23:37 +08:00
Kubernetes Prow Robot
25e52d9177
Merge pull request #102937 from gy95/service
...
remove windows service not used global variable
2021-09-15 21:41:45 -07:00
Jiahui Feng
2ddcf13e91
add feature gate OpenAPIEnums.
...
KEP-2887 OpenAPI Enum Types
2021-09-15 16:08:47 -07:00
Clayton Coleman
d5719800bf
kubelet: Handle UID reuse in pod worker
...
If a pod is killed (no longer wanted) and then a subsequent create/
add/update event is seen in the pod worker, assume that a pod UID
was reused (as it could be in static pods) and have the next
SyncKnownPods after the pod terminates remove the worker history so
that the config loop can restart the static pod, as well as return
to the caller the fact that this termination was not final.
The housekeeping loop then reconciles the desired state of the Kubelet
(pods in pod manager that are not in a terminal state, i.e. admitted
pods) with the pod worker by resubmitting those pods. This adds a
small amount of latency (2s) when a pod UID is reused and the pod
is terminated and restarted.
2021-09-15 14:02:00 -04:00
Aldo Culquicondor
a0e7a567c5
Add metric job_pod_finished
...
To count the number of pods that the job controller successfully tracked with the JobTrackingWithFinalizers feature gate.
2021-09-15 11:19:47 -04:00
Alkaid
5449ce7c5c
Migrate cmd/proxy/app
and pkg/proxy/meta_proxier
to structured logging ( #104928 )
...
* migrate log
Signed-off-by: jyz0309 <45495947@qq.com >
* remove useless change
Signed-off-by: jyz0309 <45495947@qq.com >
fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
* use nil to instead err
Signed-off-by: jyz0309 <45495947@qq.com >
* fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
* remove useless change
Signed-off-by: jyz0309 <45495947@qq.com >
* resolve conflict
Signed-off-by: jyz0309 <45495947@qq.com >
* resolve conflict
Signed-off-by: jyz0309 <45495947@qq.com >
* fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
* fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
* fix comment
Signed-off-by: jyz0309 <45495947@qq.com >
2021-09-14 20:50:40 -07:00
Kubernetes Prow Robot
4622007bdd
Merge pull request #104793 from h4ghhh/dynamic_event_handler
...
Add unit tests for scheduler's dynamic event handlers registration
2021-09-14 18:24:40 -07:00
Kubernetes Prow Robot
fa2657b8b2
Merge pull request #104624 from Haleygo/support-null-resolvConf-in-configFile
...
When resolvConf is "" in kubelet configuration, pod will be created with wrong dns policy
2021-09-14 14:18:59 -07:00
Kubernetes Prow Robot
c10be982d1
Merge pull request #96345 from ingvagabund/disable-insecure-port-in-scheduler
...
refactor: disable insecure serving in kube-scheduler
2021-09-14 08:01:09 -07:00
00255991
06a9bfbb21
Add unit tests for scheduler's dynamic event handlers registration
2021-09-14 22:51:52 +08:00
Kubernetes Prow Robot
95391adbc0
Merge pull request #99529 from jialaijun/migrate_logs
...
Structured log migration for pkg/util/netsh
2021-09-14 02:41:07 -07:00
Haleygo
46454ea9dc
support null resolvConf in Kubelet Configuration
2021-09-14 16:12:52 +08:00
Jan Chaloupka
07af6697e9
refactor: disable insecure serving in kube-scheduler
2021-09-14 07:52:16 +02:00
Kubernetes Prow Robot
047a6b9f86
Merge pull request #104874 from wojtek-t/migrate_clock_1
...
Unify towards k8s.io/utils/clock - part 1
2021-09-13 19:09:20 -07:00
Kubernetes Prow Robot
c79f7c1add
Merge pull request #104711 from claudiubelu/update-pause-3.6
...
update pause image references to use 3.6
2021-09-13 19:09:08 -07:00
Kubernetes Prow Robot
9c147baa70
Merge pull request #104969 from liggitt/crd-error-validation
...
Fix conversion of literal null JSON values
2021-09-13 18:01:27 -07:00
Kubernetes Prow Robot
06ec11d71b
Merge pull request #104883 from aojea/service_finalizer_delete
...
Add integration test for Services Finalizes Racing with the Repair Loop
2021-09-13 18:01:20 -07:00
Kubernetes Prow Robot
cdcf2a239e
Merge pull request #104399 from tkashem/apf-v1beta2
...
apf: introduce v1beta2
2021-09-13 18:01:08 -07:00
Kubernetes Prow Robot
0e2acbe9a8
Merge pull request #104794 from wzshiming/fix/kubelet-cm-kv-pair
...
pkg/kubelet/cm/memorymanager: Fix ErrorS key/value pair
2021-09-13 15:44:04 -07:00
Kubernetes Prow Robot
648559b63e
Merge pull request #104742 from khenidak/health-check-port
...
change health-check port to listen to node port addresses
2021-09-13 15:43:52 -07:00
Antonio Ojea
7c12daed0f
move repair loop interval to a constant
...
use Extraconfig to configure the repair interval
and add an integration test for services finalizers, and
possible races with the services repair loop.
2021-09-13 23:54:19 +02:00
Kubernetes Prow Robot
62a6df9e0b
Merge pull request #104045 from ravisantoshgudimetla/promote-minReadySec-sts-beta
...
Promote min ready sec sts beta
2021-09-13 14:33:50 -07:00
Kubernetes Prow Robot
c6dfe7343e
Merge pull request #103493 from cofyc/fix103431
...
scheduler/volumebinding: migrate to use pkg/scheduler/framework/plugins/feature
2021-09-13 13:27:50 -07:00
Kubernetes Prow Robot
31befb684c
Merge pull request #104801 from danwinship/drop-endpoints-handler
...
Drop broken/no-op proxyconfig.EndpointsHandler implementations
2021-09-13 12:16:02 -07:00
Khaled (Kal) Henidak
acdf50fbed
change proxiers to pass nodePortAddresses
2021-09-13 18:27:07 +00:00
Khaled (Kal) Henidak
784c31cca1
change health checkport to listen to node port addresses
2021-09-13 18:27:06 +00:00
Shivanshu Raj Shrivastava
4916b6cd74
Migrated pkg/proxy/userspace to structured logging ( #104931 )
...
* migrated roundrobin.go
* migrated proxysocket.go
* fixed typo
* code formatting
2021-09-13 10:46:18 -07:00
Jordan Liggitt
ba1ca0d459
Propagate conversion errors
2021-09-13 12:04:16 -04:00
Dan Winship
7f6fbc4482
Drop broken/no-op proxyconfig.EndpointsHandler implementations
...
Because the proxy.Provider interface included
proxyconfig.EndpointsHandler, all the backends needed to
implement its methods. But iptables, ipvs, and winkernel implemented
them as no-ops, and metaproxier had an implementation that wouldn't
actually work (because it couldn't handle Services with no active
Endpoints).
Since Endpoints processing in kube-proxy is deprecated (and can't be
re-enabled unless you're using a backend that doesn't support
EndpointSlice), remove proxyconfig.EndpointsHandler from the
definition of proxy.Provider and drop all the useless implementations.
2021-09-13 09:32:38 -04:00
calvin0327
db82e282fc
fix the test issue of data race to node shutdown manager
2021-09-13 18:12:19 +08:00
z1cheng
857b8fbe2b
Fix error message typo in conntrack
2021-09-12 13:13:57 +08:00
Tim Hockin
009aa36c89
Svc REST: Make transaction-accumulating funcs safe
...
Identified in review, these funcs are now more reslient to future
changes.
2021-09-11 11:30:02 -07:00
Tim Hockin
e594dd4281
Svc REST: Convert FIXME to TODO
2021-09-11 11:30:02 -07:00
Tim Hockin
03d11c53a8
Svc REST: Rename RESTAllocStuff
...
This was a dumb placeholder name.
2021-09-11 11:30:02 -07:00
Tim Hockin
5847426e5e
Svc REST: Use types for safer arg ordering
...
In all the places we pass (old, new) or (new, old), use wrapper-types to
make sure that we don't flip the order by accident.
2021-09-11 11:30:02 -07:00
Tim Hockin
d5143bca84
Svc REST: Rename GenericREST -> REST
...
This is consistent with every other registry. Service is no longer the
oddball.
2021-09-11 11:30:02 -07:00
Tim Hockin
fe6f278ea1
Svc REST: Move isValidAddress to storage.go
2021-09-11 11:30:02 -07:00
Tim Hockin
d7c8557281
Svc REST: Make update/releaseNodePorts methods
...
More consistent overall.
2021-09-11 11:30:02 -07:00
Tim Hockin
4c9bc5a53c
Svc REST: Move alloc code around
...
This is detrimental to future `blame` but makes it so much morereadable
I convinced myself it was worthwhile.
2021-09-11 11:30:02 -07:00
Tim Hockin
7ce34e311a
Svc REST: rename rest.go -> alloc.go
2021-09-11 11:30:02 -07:00
Tim Hockin
1ce9807de0
Svc REST: Make allocHCNP a method: more consistent
2021-09-11 11:30:02 -07:00
Tim Hockin
c94deffa48
Svc REST: rename allocateHealthCheckNodePort
2021-09-11 11:30:02 -07:00