From c52798e957ca341f54c93e9aac78a434d3405c88 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Thu, 19 Sep 2024 19:59:02 +0200 Subject: [PATCH] add two simple applications --- ip_mziesel_nl/ip_mziesel_nl-deployment.yaml | 20 ++++++++++++++++++++ ip_mziesel_nl/ip_mziesel_nl-svc.yaml | 12 ++++++++++++ whoami/whoami-deployment.yaml | 20 ++++++++++++++++++++ whoami/whoami-svc.yaml | 12 ++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 ip_mziesel_nl/ip_mziesel_nl-deployment.yaml create mode 100644 ip_mziesel_nl/ip_mziesel_nl-svc.yaml create mode 100644 whoami/whoami-deployment.yaml create mode 100644 whoami/whoami-svc.yaml diff --git a/ip_mziesel_nl/ip_mziesel_nl-deployment.yaml b/ip_mziesel_nl/ip_mziesel_nl-deployment.yaml new file mode 100644 index 0000000..a9ff83a --- /dev/null +++ b/ip_mziesel_nl/ip_mziesel_nl-deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ip_mziesel_nl +spec: + replicas: 3 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: ip_mziesel_nl + template: + metadata: + labels: + app: ip_mziesel_nl + spec: + containers: + - image: git.mziesel.nl/mans/ip-svc:2024-06-03 + name: ip_mziesel_nl + ports: + - containerPort: 8080 diff --git a/ip_mziesel_nl/ip_mziesel_nl-svc.yaml b/ip_mziesel_nl/ip_mziesel_nl-svc.yaml new file mode 100644 index 0000000..72b4742 --- /dev/null +++ b/ip_mziesel_nl/ip_mziesel_nl-svc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: ip_mziesel_nl +spec: + type: NodePort + ports: + - port: 8080 + targetPort: 8080 + nodePort: 31339 + selector: + app: ip_mziesel_nl diff --git a/whoami/whoami-deployment.yaml b/whoami/whoami-deployment.yaml new file mode 100644 index 0000000..2ea60a9 --- /dev/null +++ b/whoami/whoami-deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: whoami +spec: + replicas: 3 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: whoami + template: + metadata: + labels: + app: whoami + spec: + containers: + - image: ghcr.io/traefik/whoami:v1.10.3 + name: whoami + ports: + - containerPort: 80 diff --git a/whoami/whoami-svc.yaml b/whoami/whoami-svc.yaml new file mode 100644 index 0000000..f9c62d4 --- /dev/null +++ b/whoami/whoami-svc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: whoami +spec: + type: NodePort + ports: + - port: 80 + targetPort: 80 + nodePort: 31338 + selector: + app: whoami