Skip to content

Commit

Permalink
Merge pull request #106 from SeldonIO/axsaucedo-patch-1
Browse files Browse the repository at this point in the history
Updated to support hostname on minio
  • Loading branch information
axsaucedo authored Apr 22, 2021
2 parents 5ed2d83 + 4dd39a5 commit 93ffe44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tempo/examples/minio.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def create_minio_rclone(path: str):
api_instance = client.CoreV1Api()
res = api_instance.list_namespaced_service("minio-system", field_selector="metadata.name=minio")
minio_ip = res.items[0].status.load_balancer.ingress[0].ip
if not minio_ip:
minio_ip = res.items[0].status.load_balancer.ingress[0].hostname
rclone_conf = RCloneConf.replace("{MINIO_IP}", minio_ip)
with open(path, "w") as f:
f.write(rclone_conf)
Expand Down

0 comments on commit 93ffe44

Please sign in to comment.