Skip to content

Commit 80e96ac

Browse files
authored
Merge pull request #889 from BobyMCbobs/use-kubernetes-incluster-fqdn-for-endpoint
chore: use Kubernetes incluster fqdn for endpoint
2 parents 8e15aac + e299e5f commit 80e96ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/snoopdb/postgres/snoopUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def download_url_to_path(url, local_path, dl_dict):
108108

109109
def cluster_swagger():
110110
"""Gets the swagger generated by a k8s api server, checking if incluster token is available"""
111-
url = "https://kubernetes/openapi/v2"
111+
url = "https://kubernetes.default.svc/openapi/v2"
112112
in_cluster_tokenfile = "/opt/token.txt"
113113
tokenfile = "/token.txt"
114114
if os.path.isfile(in_cluster_tokenfile) and os.access(in_cluster_tokenfile, os.R_OK):

0 commit comments

Comments
 (0)