From 95914fe2d5cb8532f03b021ef7ef159d377f00d1 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 4 Mar 2024 23:05:27 +0100 Subject: [PATCH] Updated microbot to use traefik ingress with FQN --- microbot/daemon.yml | 24 ++++++++++++++++++++++++ microbot/ingress.yml | 3 ++- microbot/svc-traefik.yml | 13 +++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 microbot/daemon.yml create mode 100644 microbot/svc-traefik.yml diff --git a/microbot/daemon.yml b/microbot/daemon.yml new file mode 100644 index 0000000..d40ee24 --- /dev/null +++ b/microbot/daemon.yml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + labels: + app: microbot + name: microbot-daemonset + namespace: microbot +spec: + selector: + matchLabels: + app: microbot + template: + metadata: + labels: + app: microbot + spec: + containers: + - image: dontrebootme/microbot:v1 + imagePullPolicy: IfNotPresent + name: microbot + resources: {} + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + diff --git a/microbot/ingress.yml b/microbot/ingress.yml index 4ed2124..96ac234 100644 --- a/microbot/ingress.yml +++ b/microbot/ingress.yml @@ -1,3 +1,4 @@ +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -5,7 +6,7 @@ metadata: namespace: microbot spec: rules: - - host: microbot.kazan.schleppe + - host: microbot.kazan.schleppe.cloud http: paths: - path: / diff --git a/microbot/svc-traefik.yml b/microbot/svc-traefik.yml new file mode 100644 index 0000000..072161e --- /dev/null +++ b/microbot/svc-traefik.yml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: microbot-service + namespace: microbot +spec: + selector: + app: microbot + type: ClusterIP + ports: + - name: http + port: 80