core-deployments/dashboard/base/dashboard.yaml
Aaron Riedel e36d33795d
All checks were successful
continuous-integration/drone/push Build is passing
put dashboard config back into dashboard app repo
2023-10-23 15:49:54 +02:00

59 lines
1 KiB
YAML

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: yolokube/dashboard:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
---
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:
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