From 4f5eedf20f85b73843985c1082a5ff21052fd93e Mon Sep 17 00:00:00 2001 From: Victor Roest Date: Wed, 27 Oct 2021 15:33:29 +0200 Subject: [PATCH] update: wooloofan.club to real container + add whoami subdomain --- .../wooloofanclub/wooloo.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/cluster/apps/presidential-paradise/wooloofanclub/wooloo.yaml b/cluster/apps/presidential-paradise/wooloofanclub/wooloo.yaml index 4676739..fd2d56d 100644 --- a/cluster/apps/presidential-paradise/wooloofanclub/wooloo.yaml +++ b/cluster/apps/presidential-paradise/wooloofanclub/wooloo.yaml @@ -17,6 +17,29 @@ spec: spec: containers: - name: wooloofan-club + image: 0x76/wooloofan.club + ports: + - containerPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: wooloofan-club-whoami + namespace: presidential-paradise + labels: + app: wooloofan-club-whoami +spec: + replicas: 1 + selector: + matchLabels: + app: wooloofan-club-whoami + template: + metadata: + labels: + app: wooloofan-club-whoami + spec: + containers: + - name: wooloofan-club-whoami image: containous/whoami ports: - containerPort: 80 @@ -33,6 +56,18 @@ spec: - protocol: TCP port: 80 --- +apiVersion: v1 +kind: Service +metadata: + name: wooloofan-club-whoami-service + namespace: presidential-paradise +spec: + selector: + app: wooloofan-club-whoami + ports: + - protocol: TCP + port: 80 +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -51,3 +86,13 @@ spec: name: wooloofan-club-service port: number: 80 + - host: "whoami.wooloofan.club" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: wooloofan-club-whoami-service + port: + number: 80