2024-10-07 09:19:39 +02:00
|
|
|
---
|
2023-09-21 23:04:44 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
name: dashboard
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: dashboard-deployment
|
|
|
|
namespace: dashboard
|
2023-09-21 23:54:34 +02:00
|
|
|
labels:
|
|
|
|
app: dashboard
|
2023-09-21 23:04:44 +02:00
|
|
|
spec:
|
|
|
|
replicas: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: dashboard
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: dashboard
|
|
|
|
spec:
|
|
|
|
containers:
|
2024-10-07 09:19:39 +02:00
|
|
|
- name: dashboard
|
|
|
|
image: git.ar21.de/yolokube/dashboard:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 4
|
|
|
|
periodSeconds: 3
|
2023-09-21 23:54:34 +02:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: dashboard-service
|
|
|
|
namespace: dashboard
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: dashboard
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 80
|
|
|
|
targetPort: 8080
|
2023-09-21 23:04:44 +02:00
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2024-05-28 17:42:47 +02:00
|
|
|
annotations:
|
|
|
|
kubernetes.io/tls-acme: "true"
|
2023-09-21 23:04:44 +02:00
|
|
|
name: dashboard-ingress
|
|
|
|
namespace: dashboard
|
|
|
|
spec:
|
|
|
|
rules:
|
2024-10-07 09:19:39 +02:00
|
|
|
- host: "dashboard.services.yolokube.de"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: "/"
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: dashboard-service
|
|
|
|
port:
|
|
|
|
number: 80
|
2024-05-28 17:42:47 +02:00
|
|
|
tls:
|
2024-10-07 09:19:39 +02:00
|
|
|
- hosts:
|
|
|
|
- dashboard.services.yolokube.de
|
|
|
|
secretName: dashboard-tls-key
|