mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
k8s - fix missing namespace in pod hostname
This commit is contained in:
parent
6bbbbac224
commit
c339a43d0c
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class IngressController(Controller):
|
|||
def _to_instances(self, controller_instance) -> List[dict]:
|
||||
instance = {
|
||||
"name": controller_instance.metadata.name,
|
||||
"hostname": f"{controller_instance.status.pod_ip.replace(".", "-")}.pod.{self.__domain_name}" if self.__use_fqdn else controller_instance.status.pod_ip,
|
||||
"hostname": f"{controller_instance.status.pod_ip.replace(".", "-")}.{controller_instance.metadata.namespace}.pod.{self.__domain_name}" if self.__use_fqdn else controller_instance.status.pod_ip,
|
||||
"health": False,
|
||||
"type": "pod",
|
||||
"env": {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue