From 5b3845163ff18ea4922b207ff63b7821da84c39f Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Fri, 6 Jun 2025 13:29:29 +0200 Subject: [PATCH] testest --- whoami/service.yaml | 71 +++++++++++++++++++++++++++++++++++++ whoami/steinhobelgruen.yaml | 71 +++++++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 whoami/service.yaml create mode 100644 whoami/steinhobelgruen.yaml diff --git a/whoami/service.yaml b/whoami/service.yaml new file mode 100644 index 0000000..28578eb --- /dev/null +++ b/whoami/service.yaml @@ -0,0 +1,71 @@ +kind: Ingress +apiVersion: networking.k8s.io/v1 +metadata: + name: whoami + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" + cert-manager.io/cluster-issuer: letsencrypt +spec: + tls: + - hosts: + - whoami.wazongtest.de + secretName: whoami.wazongtest.de-tls + rules: + - host: whoami.wazongtest.de + http: + paths: + - backend: + service: + name: whoami + port: + number: 80 + path: /bar + pathType: ImplementationSpecific + - backend: + service: + name: whoami + port: + number: 80 + path: /foo + pathType: ImplementationSpecific + +--- +kind: Deployment +apiVersion: apps/v1 +metadata: + name: whoami + labels: + app: containous + name: whoami + +spec: + replicas: 2 + selector: + matchLabels: + app: containous + task: whoami + template: + metadata: + labels: + app: containous + task: whoami + spec: + containers: + - name: containouswhoami + image: containous/whoami + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: whoami + +spec: + ports: + - name: http + port: 80 + selector: + app: containous + task: whoami \ No newline at end of file diff --git a/whoami/steinhobelgruen.yaml b/whoami/steinhobelgruen.yaml new file mode 100644 index 0000000..6abaefe --- /dev/null +++ b/whoami/steinhobelgruen.yaml @@ -0,0 +1,71 @@ +kind: Ingress +apiVersion: networking.k8s.io/v1 +metadata: + name: whoami + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" + cert-manager.io/cluster-issuer: letsencrypt +spec: + tls: + - hosts: + - whoami.steinhobelgruen.de + secretName: whoami.steinhobelgruen.de-tls + rules: + - host: whoami.steinhobelgruen.de + http: + paths: + - backend: + service: + name: whoami + port: + number: 80 + path: /bar + pathType: ImplementationSpecific + - backend: + service: + name: whoami + port: + number: 80 + path: /foo + pathType: ImplementationSpecific + +--- +kind: Deployment +apiVersion: apps/v1 +metadata: + name: whoami + labels: + app: containous + name: whoami + +spec: + replicas: 2 + selector: + matchLabels: + app: containous + task: whoami + template: + metadata: + labels: + app: containous + task: whoami + spec: + containers: + - name: containouswhoami + image: containous/whoami + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: whoami + +spec: + ports: + - name: http + port: 80 + selector: + app: containous + task: whoami \ No newline at end of file