From cc9ca46a67cb0b09c2b793a07cf0a0085a15a722 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Thu, 31 Aug 2023 15:02:37 +0200 Subject: [PATCH] Create a debug website to test ingress/service/deployment --- debug/debug-hello-website.yaml | 61 ++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 debug/debug-hello-website.yaml diff --git a/debug/debug-hello-website.yaml b/debug/debug-hello-website.yaml new file mode 100644 index 0000000..1a25fde --- /dev/null +++ b/debug/debug-hello-website.yaml @@ -0,0 +1,61 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: debug + labels: + app: webserv + name: debug-webserv +spec: + replicas: 1 + selector: + matchLabels: + app: webserv + template: + metadata: + labels: + app: webserv + spec: + containers: + - image: crccheck/hello-world:latest + imagePullPolicy: Always + name: api + ports: + - containerPort: 8000 + nodeSelector: + k8s.kiwix.org/role: system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: debug + name: debug-webserv + labels: + app: webserv +spec: + selector: + app: webserv + ports: + - protocol: TCP + port: 8000 + targetPort: 8000 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: debug-webserv + namespace: debug + annotations: + nginx.ingress.kubernetes.io/rewrite-target: / + nginx.ingress.kubernetes.io/proxy-body-size: "20m" +spec: + rules: + - host: debug-webserv.acme.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: debug-webserv + port: + number: 8000