Skip to content

Commit 2f8062e

Browse files
committed
Istio now handles prestop hooks correctly so we can drop our workaround
istio/istio@0e30509
1 parent cf48bab commit 2f8062e

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

pkg/reconciler/revision/resources/queue.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ var (
6565
ContainerPort: networking.BackendHTTPSPort,
6666
}
6767
queueNonServingPorts = []corev1.ContainerPort{{
68-
// Provides health checks and lifecycle hooks.
69-
Name: v1.QueueAdminPortName,
70-
ContainerPort: networking.QueueAdminPort,
71-
}, {
7268
Name: v1.AutoscalingQueueMetricsPortName,
7369
ContainerPort: networking.AutoscalingQueueMetricsPort,
7470
}, {

pkg/reconciler/serverlessservice/resources/services.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,6 @@ func MakePrivateService(sks *v1alpha1.ServerlessService, selector map[string]str
168168
Protocol: corev1.ProtocolTCP,
169169
Port: networking.UserQueueMetricsPort,
170170
TargetPort: intstr.FromString(servingv1.UserQueueMetricsPortName),
171-
}, {
172-
// When run with the Istio mesh, Envoy blocks traffic to any ports not
173-
// recognized, and has special treatment for probes, but not PreStop hooks.
174-
// That results in the PreStop hook /wait-for-drain in queue-proxy not
175-
// reachable, thus triggering SIGTERM immediately during shutdown and
176-
// causing requests to be dropped.
177-
//
178-
// So we expose this port here to work around this Istio bug.
179-
Name: servingv1.QueueAdminPortName,
180-
Protocol: corev1.ProtocolTCP,
181-
Port: networking.QueueAdminPort,
182-
TargetPort: intstr.FromInt(networking.QueueAdminPort),
183171
}, {
184172
// When run with the Istio mesh and with the pod-addressability feature
185173
// enabled, this mirrors the target port to the "outer" service port to

pkg/reconciler/serverlessservice/resources/services_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ func privateSvcMod(s *corev1.Service) {
144144
Protocol: corev1.ProtocolTCP,
145145
Port: networking.UserQueueMetricsPort,
146146
TargetPort: intstr.FromString(servingv1.UserQueueMetricsPortName),
147-
}, {
148-
Name: servingv1.QueueAdminPortName,
149-
Protocol: corev1.ProtocolTCP,
150-
Port: networking.QueueAdminPort,
151-
TargetPort: intstr.FromInt(networking.QueueAdminPort),
152147
}, {
153148
Name: pkgnet.ServicePortNameHTTP1 + "-istio",
154149
Protocol: corev1.ProtocolTCP,

0 commit comments

Comments
 (0)