core-deployments/dashboard/prod/dashboard.yaml

60 lines
1 KiB
YAML
Raw Normal View History

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: yolokube/dashboard:383
2023-09-21 21:08:44 +02:00
imagePullPolicy: Always
name: dashboard
ports:
- containerPort: 8080
2023-09-20 18:02:01 +02:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dashboard-ingress
namespace: dashboard
spec:
rules:
- host: dashboard.services.yolokube.de
2023-09-20 18:02:01 +02:00
http:
paths:
- backend:
2023-09-20 18:02:01 +02:00
service:
name: dashboard-service
port:
2023-09-20 20:36:53 +02:00
number: 80
path: /
pathType: Prefix