core-deployments/dashboard/base/dashboard.yaml

72 lines
1.3 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: Namespace
metadata:
name: dashboard
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dashboard-deployment
namespace: dashboard
labels:
app: dashboard
spec:
replicas: 3
selector:
matchLabels:
app: dashboard
template:
metadata:
labels:
app: dashboard
spec:
containers:
- name: dashboard
image: git.ar21.de/yolokube/dashboard:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
2024-02-02 11:23:21 +01:00
livenessProbe:
httpGet:
path: /
port: 8080
2024-02-02 11:41:40 +01:00
initialDelaySeconds: 4
2024-02-02 11:23:21 +01:00
periodSeconds: 3
---
apiVersion: v1
kind: Service
metadata:
name: dashboard-service
namespace: dashboard
spec:
selector:
app: dashboard
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
name: dashboard-ingress
namespace: dashboard
spec:
rules:
- host: "dashboard.services.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: dashboard-service
port:
number: 80
tls:
- hosts:
- dashboard.services.yolokube.de
secretName: dashboard-tls-key