From fcf89a5152b054ec60cf4c59a0d87fc04b917ebd Mon Sep 17 00:00:00 2001
From: David Arnold <dar@xoe.solutions>
Date: Mon, 26 Oct 2020 16:35:08 -0500
Subject: [PATCH] use new official flag for headless service

---
 live-demo/k8s/03-asterisk.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/live-demo/k8s/03-asterisk.yaml b/live-demo/k8s/03-asterisk.yaml
index 3e0b7de..e215bda 100644
--- a/live-demo/k8s/03-asterisk.yaml
+++ b/live-demo/k8s/03-asterisk.yaml
@@ -3,9 +3,8 @@ kind: Service
 metadata:
   name: asterisk
   namespace: voip
-  annotations:
-    service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
 spec:
+  publishNotReadyAddresses: true
   selector:
     component: asterisk
   ports: