From 33d3feda033b624bb0da3110e96405f7daf2c69f Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 13 Oct 2024 17:28:23 +0200 Subject: [PATCH] test traefik nodeport --- whoami/base/whoami-svc.yaml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/whoami/base/whoami-svc.yaml b/whoami/base/whoami-svc.yaml index 5a00c25..f34351e 100644 --- a/whoami/base/whoami-svc.yaml +++ b/whoami/base/whoami-svc.yaml @@ -9,3 +9,45 @@ spec: targetPort: web selector: app: whoami +--- +apiVersion: v1 +kind: Service +metadata: + name: whoami-np + namespace: whoami +spec: + type: NodePort + ports: + - nodePort: 30007 + port: 80 + targetPort: 80 + selector: + app: whoami +--- +apiVersion: v1 +kind: Service +metadata: + name: traefik-np + namespace: traefik +spec: + type: NodePort + ports: + - nodePort: 30010 + port: 80 + targetPort: 80 + selector: + app: traefik +--- +apiVersion: v1 +kind: Service +metadata: + name: traefik-npssl + namespace: whoami +spec: + type: NodePort + ports: + - nodePort: 30011 + port: 443 + targetPort: 443 + selector: + app: traefik