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

Devel #1559

Merged
merged 2 commits into from
May 23, 2024
Merged

Devel #1559

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion IM/connectors/Kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import time
import os
import re
import socket
from netaddr import IPNetwork, IPAddress
try:
from urlparse import urlparse
Expand Down Expand Up @@ -650,7 +651,7 @@ def setIPs(self, vm, pod_info):
host_ip = str(pod_info["status"]["hostIP"])
is_private = any([IPAddress(host_ip) in IPNetwork(mask) for mask in Config.PRIVATE_NET_MASKS])
if is_private:
public_ips = [self.cloud.server]
public_ips = [socket.gethostbyname(self.cloud.server)]
else:
public_ips = [host_ip]
if 'podIP' in pod_info["status"]:
Expand Down