streamlist show port forwaring
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
curl -X POST http://localhost:5000/api/workloads/containers \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"vdc": "864657c1-aa98-4d77-a5d0-6119a94c6d37",
|
||||
"use_dns": False,
|
||||
"vdc": "df628c76-7d55-4cdf-82b6-c5a9502f6ccf",
|
||||
"use_dns": false,
|
||||
"containers": [
|
||||
{
|
||||
"docker_image": "nginx:latest",
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM traefik/whoami
|
||||
ENV WHOAMI_PORT_NUMBER=81
|
||||
ENV WHOAMI_NAME=whoami81
|
||||
@@ -122,7 +122,14 @@ def render_list():
|
||||
st.markdown(f"**Virtual Data Center ID:** `{pod['vdc_id']}`")
|
||||
st.markdown(f"**Region ID:** `{pod.get('region_id', 'N/A')}`")
|
||||
st.markdown(f"**NSController ID:** `{pod['nscontroller_workload_id']}`")
|
||||
st.markdown("---")
|
||||
|
||||
# Port Forwardings
|
||||
if 'port_forwardings' in pod and pod['port_forwardings']:
|
||||
st.markdown("🔁 **Port Forwarding:**")
|
||||
for pf in pod['port_forwardings']:
|
||||
st.text(f" {pf['protocol'].upper()} → {pf['external_port']} ↦ {pf['internal_port']}")
|
||||
else:
|
||||
st.text("No port forwardings")
|
||||
|
||||
# Container List
|
||||
for container in pod['containers']:
|
||||
|
||||
Reference in New Issue
Block a user