71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: dashboard
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: dashboard-service
|
|
namespace: dashboard
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 8080
|
|
selector:
|
|
app: dashboard
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: dashboard
|
|
name: dashboard-deployment
|
|
namespace: dashboard
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: dashboard
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dashboard
|
|
spec:
|
|
containers:
|
|
- image: git.ar21.de/yolokube/dashboard:1117
|
|
imagePullPolicy: Always
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 4
|
|
periodSeconds: 3
|
|
name: dashboard
|
|
ports:
|
|
- containerPort: 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:
|
|
- backend:
|
|
service:
|
|
name: dashboard-service
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- hosts:
|
|
- dashboard.services.yolokube.de
|
|
secretName: dashboard-tls-key
|