From 48e76367fc47ea6858b370c50d0293ac16fc93ec Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 30 Jan 2026 13:48:10 +0100 Subject: [PATCH] Add port forwarding for the ak registration service The port forwarding for the host is useful in case we want to test the operator with some external VMs, like created using libvirt. Signed-off-by: Alice Frosi --- Makefile | 1 + kind/ak-register-forward.yaml | 17 +++++++++++++++++ kind/config.yaml | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 kind/ak-register-forward.yaml diff --git a/Makefile b/Makefile index 2ca89cd6..cae74fa4 100644 --- a/Makefile +++ b/Makefile @@ -153,6 +153,7 @@ endif @if [ "$(PLATFORM)" = "openshift" ]; then \ sed 's//$(NAMESPACE)/g' config/openshift/scc.yaml | $(KUBECTL) apply -f -; \ else \ + sed 's//$(NAMESPACE)/g' kind/ak-register-forward.yaml | $(KUBECTL) apply -f -; \ sed 's//$(NAMESPACE)/g' kind/register-forward.yaml | $(KUBECTL) apply -f -; \ sed 's//$(NAMESPACE)/g' kind/kbs-forward.yaml | $(KUBECTL) apply -f -; \ fi diff --git a/kind/ak-register-forward.yaml b/kind/ak-register-forward.yaml new file mode 100644 index 00000000..84cfa59d --- /dev/null +++ b/kind/ak-register-forward.yaml @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: Alice Frosi +# +# SPDX-License-Identifier: CC0-1.0 + +apiVersion: v1 +kind: Service +metadata: + name: ak-register-forward + namespace: +spec: + type: NodePort + ports: + - name: http + nodePort: 31002 + port: 8001 + selector: + app: attestation-key-register diff --git a/kind/config.yaml b/kind/config.yaml index d14cf0c7..b4db668f 100644 --- a/kind/config.yaml +++ b/kind/config.yaml @@ -16,6 +16,8 @@ nodes: hostPort: 8080 - containerPort: 31001 hostPort: 8000 + - containerPort: 31002 + hostPort: 8001 featureGates: "ImageVolume": true networking: