Skip to content

Commit 48e7636

Browse files
committed
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 <[email protected]>
1 parent 85d5fe5 commit 48e7636

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ endif
153153
@if [ "$(PLATFORM)" = "openshift" ]; then \
154154
sed 's/<NAMESPACE>/$(NAMESPACE)/g' config/openshift/scc.yaml | $(KUBECTL) apply -f -; \
155155
else \
156+
sed 's/<NAMESPACE>/$(NAMESPACE)/g' kind/ak-register-forward.yaml | $(KUBECTL) apply -f -; \
156157
sed 's/<NAMESPACE>/$(NAMESPACE)/g' kind/register-forward.yaml | $(KUBECTL) apply -f -; \
157158
sed 's/<NAMESPACE>/$(NAMESPACE)/g' kind/kbs-forward.yaml | $(KUBECTL) apply -f -; \
158159
fi

kind/ak-register-forward.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-FileCopyrightText: Alice Frosi <[email protected]>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
apiVersion: v1
6+
kind: Service
7+
metadata:
8+
name: ak-register-forward
9+
namespace: <NAMESPACE>
10+
spec:
11+
type: NodePort
12+
ports:
13+
- name: http
14+
nodePort: 31002
15+
port: 8001
16+
selector:
17+
app: attestation-key-register

kind/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ nodes:
1616
hostPort: 8080
1717
- containerPort: 31001
1818
hostPort: 8000
19+
- containerPort: 31002
20+
hostPort: 8001
1921
featureGates:
2022
"ImageVolume": true
2123
networking:

0 commit comments

Comments
 (0)