Skip to content

Commit a63533b

Browse files
author
Jan Lieskovsky
committed
[RHSSO-1928] Drop service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
RH-SSO JGroups ping's service annotation, since it's going to be completely removed in Kubernetes v1.24 (probably to appear in OCP v4.11): * https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.24.md#deprecation-1 Replace that annotation with 'Service.spec.publishNotReadyAddresses' field (set to "true'), which is intended to be used instead Signed-off-by: Jan Lieskovsky <[email protected]>
1 parent 2eae147 commit a63533b

8 files changed

+13
-13
lines changed

template.adoc.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ For DNS_PING to work, the following steps must be taken:
205205
. A ping service which exposes the ping port must be defined. This service
206206
should be "headless" (ClusterIP=None) and must have the following:
207207
.. The port must be named for port discovery to work.
208-
.. It must be annotated with `service.alpha.kubernetes.io/tolerate-unready-endpoints`
209-
set to `"true"`. Omitting this annotation will result in each node forming
210-
their own "cluster of one" during startup, then merging their cluster into
211-
the other nodes' clusters after startup (as the other nodes are not detected
212-
until after they have started).
208+
.. The `spec.publishNotReadyAddresses` field of this service must be set to
209+
`"true"`. Omitting the setting of this boolean will result in each node
210+
forming their own "cluster of one" during startup, then merging their
211+
cluster into the other nodes' clusters after startup (as the other nodes are
212+
not detected until after they have started).
213213

214214
.Example ping service for use with DNS_PING
215215
[source,yaml]
@@ -221,12 +221,12 @@ spec:
221221
ports:
222222
- name: ping
223223
port: 8888
224+
publishNotReadyAddresses: true
224225
selector:
225226
deploymentConfig: eap-app
226227
metadata:
227228
name: eap-app-ping
228229
annotations:
229-
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
230230
description: "The JGroups ping port for clustering."
231231
----
232232

templates/sso75-https.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
"port": 8888
272272
}
273273
],
274+
"publishNotReadyAddresses": true,
274275
"selector": {
275276
"deploymentConfig": "${APPLICATION_NAME}"
276277
}
@@ -281,7 +282,6 @@
281282
"application": "${APPLICATION_NAME}"
282283
},
283284
"annotations": {
284-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
285285
"description": "The JGroups ping port for clustering."
286286
}
287287
}

templates/sso75-ocp4-x509-https.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
"port": 8888
165165
}
166166
],
167+
"publishNotReadyAddresses": true,
167168
"selector": {
168169
"deploymentConfig": "${APPLICATION_NAME}"
169170
}
@@ -174,7 +175,6 @@
174175
"application": "${APPLICATION_NAME}"
175176
},
176177
"annotations": {
177-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
178178
"service.alpha.openshift.io/serving-cert-secret-name": "sso-x509-jgroups-secret",
179179
"description": "The JGroups ping port for clustering."
180180
}

templates/sso75-ocp4-x509-postgresql-persistent.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@
245245
"port": 8888
246246
}
247247
],
248+
"publishNotReadyAddresses": true,
248249
"selector": {
249250
"deploymentConfig": "${APPLICATION_NAME}"
250251
}
@@ -255,7 +256,6 @@
255256
"application": "${APPLICATION_NAME}"
256257
},
257258
"annotations": {
258-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
259259
"service.alpha.openshift.io/serving-cert-secret-name": "sso-x509-jgroups-secret",
260260
"description": "The JGroups ping port for clustering."
261261
}

templates/sso75-postgresql-persistent.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
"port": 8888
354354
}
355355
],
356+
"publishNotReadyAddresses": true,
356357
"selector": {
357358
"deploymentConfig": "${APPLICATION_NAME}"
358359
}
@@ -363,7 +364,6 @@
363364
"application": "${APPLICATION_NAME}"
364365
},
365366
"annotations": {
366-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
367367
"description": "The JGroups ping port for clustering."
368368
}
369369
}

templates/sso75-postgresql.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@
349349
"port": 8888
350350
}
351351
],
352+
"publishNotReadyAddresses": true,
352353
"selector": {
353354
"deploymentConfig": "${APPLICATION_NAME}"
354355
}
@@ -359,7 +360,6 @@
359360
"application": "${APPLICATION_NAME}"
360361
},
361362
"annotations": {
362-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
363363
"description": "The JGroups ping port for clustering."
364364
}
365365
}

templates/sso75-x509-https.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
"port": 8888
151151
}
152152
],
153+
"publishNotReadyAddresses": true,
153154
"selector": {
154155
"deploymentConfig": "${APPLICATION_NAME}"
155156
}
@@ -160,7 +161,6 @@
160161
"application": "${APPLICATION_NAME}"
161162
},
162163
"annotations": {
163-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
164164
"service.alpha.openshift.io/serving-cert-secret-name": "sso-x509-jgroups-secret",
165165
"description": "The JGroups ping port for clustering."
166166
}

templates/sso75-x509-postgresql-persistent.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@
331331
"port": 8888
332332
}
333333
],
334+
"publishNotReadyAddresses": true,
334335
"selector": {
335336
"deploymentConfig": "${APPLICATION_NAME}"
336337
}
@@ -341,7 +342,6 @@
341342
"application": "${APPLICATION_NAME}"
342343
},
343344
"annotations": {
344-
"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
345345
"service.alpha.openshift.io/serving-cert-secret-name": "sso-x509-jgroups-secret",
346346
"description": "The JGroups ping port for clustering."
347347
}

0 commit comments

Comments
 (0)