Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change kubernetes cluster domain on KUBE_API_URL #1002

Open
PedroCapdevila opened this issue Jul 10, 2024 · 0 comments · May be fixed by #1003
Open

Allow to change kubernetes cluster domain on KUBE_API_URL #1002

PedroCapdevila opened this issue Jul 10, 2024 · 0 comments · May be fixed by #1003

Comments

@PedroCapdevila
Copy link

Using an external etcd as the DCS instead of the native Kubernetes API, when the callback is performed to change the labels pointing to the master, it fails if you have configured a different cluster domain for the Kubernetes cluster, because KUBE_API_URL always points to cluster.local as the domain:

KUBE_API_URL = 'https://kubernetes.default.svc.cluster.local/api/v1/namespaces'

Example log:

2024-07-10 16:22:18,822 WARNING: Exception when executing PATCH on https://kubernetes.default.svc.cluster.local/api/v1/namespaces/app-postgres/endpoints/primary-postgres-cluster: HTTPSConnectionPool(host='kubernetes.default.svc.cluster.local', port=443): Max retries exceeded with url: /api/v1/namespaces/app-postgres/endpoints/primary-postgres-cluster (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a632b2470>: Failed to establish a new connection: [Errno -2] Name or service not known'))

It should be possible to change the kubernetes cluster domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant