Skip to content

Commit 0ca8a5c

Browse files
authored
Merge pull request kubernetes#3199 from andrewsykim/kep-2086
KEP-2086: updates for v1.24
2 parents 510a20f + 52f6438 commit 0ca8a5c

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

keps/sig-network/2086-service-internal-traffic-policy/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ Beta:
167167
* feature gate `ServiceInternalTrafficPolicy` is enabled by default.
168168
* consensus on how internalTrafficPolicy overlaps with topology-aware routing.
169169

170+
GA:
171+
* metrics for total number of Services that have no endpoints (kubeproxy/sync_proxy_rules_no_endpoints_total) with additional labels for internal/external and local/cluster policies.
172+
* consensus on whether or not "PreferLocal" should be included as a new policy type
173+
170174
### Upgrade / Downgrade Strategy
171175

172176
* The `trafficPolicy` field will be off by default during the alpha stage but can handle any existing Services that has the field already set.
@@ -205,6 +209,11 @@ New Services should be able to set the `internalTrafficPolicy` field. Existing S
205209

206210
There will be unit tests to verify that apiserver will drop the field when the `ServiceInternalTrafficPolicy` feature gate is disabled.
207211

212+
Tests added so far:
213+
* https://github.com/kubernetes/kubernetes/blob/0038bcfad495a0458372867a77c8ca646f361c40pkg/registry/core/service/strategy_test.go#L368-L390
214+
* https://github.com/kubernetes/kubernetes/blob/0038bcfad495a0458372867a77c8ca646f361c40/pkg/registry/core/service/storage/storage_test.go#L682-L684
215+
* https://github.com/kubernetes/kubernetes/blob/0038bcfad495a0458372867a77c8ca646f361c40/test/integration/service/service_test.go
216+
208217
### Rollout, Upgrade and Rollback Planning
209218

210219
_This section must be completed when targeting beta graduation to a release._
@@ -233,9 +242,7 @@ _This section must be completed when targeting beta graduation to a release._
233242
* **How can an operator determine if the feature is in use by workloads?**
234243

235244
* Check Service to see if `internalTrafficPolicy` is set to `Local`.
236-
* A per-node "blackhole" metric will be added to kube-proxy which represent Services that are being intentionally dropped (internalTrafficPolicy=Local and no endpoints).
237-
238-
TODO: add metric name once it's decided
245+
* A per-node "blackhole" metric will be added to kube-proxy which represent Services that are being intentionally dropped (internalTrafficPolicy=Local and no endpoints). The metric will be named `kubeproxy/sync_proxy_rules/blackhole_total` (subject to rename).
239246

240247
* **What are the SLIs (Service Level Indicators) an operator can use to determine
241248
the health of the service?**

keps/sig-network/2086-service-internal-traffic-policy/kep.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ stage: beta
2323
# The most recent milestone for which work toward delivery of this KEP has been
2424
# done. This can be the current (upcoming) milestone, if it is being actively
2525
# worked on.
26-
latest-milestone: "v1.22"
26+
latest-milestone: "v1.24"
2727

2828
# The milestone at which this feature was, or is targeted to be, at each stage.
2929
milestone:
3030
alpha: "v1.21"
3131
beta: "v1.22"
32-
stable: "v1.23"
32+
stable: "v1.25"
3333

3434
# The following PRR answers are required at alpha release
3535
# List the feature gate name and the components for which it must be enabled
@@ -39,3 +39,6 @@ feature-gates:
3939
- kube-apiserver
4040
- kube-proxy
4141
disable-supported: true
42+
43+
metrics:
44+
- kubeproxy/sync_proxy_rules_local_no_endpoints

0 commit comments

Comments
 (0)