From 1fbc5b8d06b68313aa3abd2756add2101279c8f9 Mon Sep 17 00:00:00 2001 From: Danil Uzlov <36223296+d-uzlov@users.noreply.github.com> Date: Mon, 30 Oct 2023 19:37:51 +0700 Subject: [PATCH] Revert "remove hostport from apps (#10142)" (#10153) This reverts commit 3ebf1bf0881f6851d205b863d97bd3ff32bce9f7. Signed-off-by: Danil Uzlov --- apps/nsmgr-proxy/nsmgr-proxy.yaml | 1 + apps/nsmgr/nsmgr.yaml | 1 + apps/registry-k8s/registry-k8s.yaml | 1 + apps/registry-memory/registry-memory.yaml | 1 + apps/registry-proxy-dns/registry-proxy-dns.yaml | 1 + apps/vl3-ipam/vl3-ipam.yaml | 1 + .../interdomain/nsm_consul_vl3/cluster1/vl3-ipam/vl3-ipam.yaml | 1 + 7 files changed, 7 insertions(+) diff --git a/apps/nsmgr-proxy/nsmgr-proxy.yaml b/apps/nsmgr-proxy/nsmgr-proxy.yaml index 944d1a8d45ca..4ecb72f147fe 100644 --- a/apps/nsmgr-proxy/nsmgr-proxy.yaml +++ b/apps/nsmgr-proxy/nsmgr-proxy.yaml @@ -22,6 +22,7 @@ spec: name: nsmgr-proxy ports: - containerPort: 5004 + hostPort: 5004 env: - name: SPIFFE_ENDPOINT_SOCKET value: unix:///run/spire/sockets/agent.sock diff --git a/apps/nsmgr/nsmgr.yaml b/apps/nsmgr/nsmgr.yaml index 93ac8a145722..464230f5505c 100644 --- a/apps/nsmgr/nsmgr.yaml +++ b/apps/nsmgr/nsmgr.yaml @@ -22,6 +22,7 @@ spec: name: nsmgr ports: - containerPort: 5001 + hostPort: 5001 env: - name: SPIFFE_ENDPOINT_SOCKET value: unix:///run/spire/sockets/agent.sock diff --git a/apps/registry-k8s/registry-k8s.yaml b/apps/registry-k8s/registry-k8s.yaml index 23c5359902dc..c0385591f7c4 100644 --- a/apps/registry-k8s/registry-k8s.yaml +++ b/apps/registry-k8s/registry-k8s.yaml @@ -35,6 +35,7 @@ spec: name: registry ports: - containerPort: 5002 + hostPort: 5002 volumeMounts: - name: spire-agent-socket mountPath: /run/spire/sockets diff --git a/apps/registry-memory/registry-memory.yaml b/apps/registry-memory/registry-memory.yaml index 8cad65487eb2..10955c9d2540 100644 --- a/apps/registry-memory/registry-memory.yaml +++ b/apps/registry-memory/registry-memory.yaml @@ -30,6 +30,7 @@ spec: name: registry ports: - containerPort: 5002 + hostPort: 5002 volumeMounts: - name: spire-agent-socket mountPath: /run/spire/sockets diff --git a/apps/registry-proxy-dns/registry-proxy-dns.yaml b/apps/registry-proxy-dns/registry-proxy-dns.yaml index e8a9de3daf8c..85406b256dad 100644 --- a/apps/registry-proxy-dns/registry-proxy-dns.yaml +++ b/apps/registry-proxy-dns/registry-proxy-dns.yaml @@ -28,6 +28,7 @@ spec: name: registry ports: - containerPort: 5005 + hostPort: 5005 volumeMounts: - name: spire-agent-socket mountPath: /run/spire/sockets diff --git a/apps/vl3-ipam/vl3-ipam.yaml b/apps/vl3-ipam/vl3-ipam.yaml index 2000d39cebb3..1fdd91e33c8a 100644 --- a/apps/vl3-ipam/vl3-ipam.yaml +++ b/apps/vl3-ipam/vl3-ipam.yaml @@ -30,6 +30,7 @@ spec: name: vl3-ipam ports: - containerPort: 5006 + hostPort: 5006 volumeMounts: - name: spire-agent-socket mountPath: /run/spire/sockets diff --git a/examples/interdomain/nsm_consul_vl3/cluster1/vl3-ipam/vl3-ipam.yaml b/examples/interdomain/nsm_consul_vl3/cluster1/vl3-ipam/vl3-ipam.yaml index aab23897da94..b86262f1280d 100644 --- a/examples/interdomain/nsm_consul_vl3/cluster1/vl3-ipam/vl3-ipam.yaml +++ b/examples/interdomain/nsm_consul_vl3/cluster1/vl3-ipam/vl3-ipam.yaml @@ -30,6 +30,7 @@ spec: name: vl3-ipam ports: - containerPort: 5006 + hostPort: 5006 volumeMounts: - name: spire-agent-socket mountPath: /run/spire/sockets