changeset 79:3f7d4626234c

fix kubectl call
author drewp@bigasterisk.com
date Sat, 18 Jun 2022 13:40:55 -0700
parents fb68881b79a0
children bc909bf8b80e
files dns.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dns.py	Wed Jun 15 21:32:25 2022 -0700
+++ b/dns.py	Sat Jun 18 13:40:55 2022 -0700
@@ -11,8 +11,8 @@
         'kubectl',
         'get',
         'svc',
-        '--field-selector=metadata.name=lanscape',
-        "-o=jsonpath={.items[0].spec.clusterIP}",
+        'lanscape',
+        "-o=jsonpath={.spec.clusterIP}",
     ],
                                           encoding='ascii')
     url = f'http://{lanscape_ip}/dnsConfig'