Updated microbot to use traefik ingress with FQN

This commit is contained in:
2024-03-04 23:05:27 +01:00
parent e36ba7d9df
commit 95914fe2d5
3 changed files with 39 additions and 1 deletions

24
microbot/daemon.yml Normal file
View File

@@ -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

View File

@@ -1,3 +1,4 @@
---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
@@ -5,7 +6,7 @@ metadata:
namespace: microbot namespace: microbot
spec: spec:
rules: rules:
- host: microbot.kazan.schleppe - host: microbot.kazan.schleppe.cloud
http: http:
paths: paths:
- path: / - path: /

13
microbot/svc-traefik.yml Normal file
View File

@@ -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