imporved the DNS capabilities

Linked the logs and console to streamlit
This commit is contained in:
2025-05-27 01:00:40 +09:30
parent 557f848179
commit 84d14e75a1
3 changed files with 35 additions and 10 deletions
+7 -2
View File
@@ -216,8 +216,8 @@ def render_list():
with cols[2]:
st.text(dns_status)
if pf.get('dns_hostname'):
st.page_link(f"http://{pf['dns_hostname']}", label=f"http://{pf['dns_hostname']}")
if pf.get('dns_record_hostname'):
st.page_link(f"http://{pf['dns_record_hostname']}", label=f"http://{pf['dns_record_hostname']}")
else:
st.page_link(f"http://{pf['ip_address']}:{pf['external_port']}", label=f"http://{pf['ip_address']}:{pf['external_port']}")
@@ -240,6 +240,11 @@ def render_list():
st.session_state.view_type = 'detail'
st.session_state.selected_resource_type = 'container'
st.rerun()
st.page_link(
f"http://127.0.0.5:5000/ui/container_logs/{container['container_id']}",
label="Console & Logs",
icon="🖥️"
)
st.markdown("---")
# Delete pod button