This commit is contained in:
Steffen Illium 2024-05-10 10:33:35 +02:00
parent 95332fa179
commit 053befc19b
7 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dashy
name: dashy
spec:
replicas: 1
selector:
matchLabels:
app: dashy
strategy: {}
template:
metadata:
labels:
app: dashy
spec:
containers:
- env:
- name: NODE_ENV
value: production
image: ghcr.io/lissy93/dashy.:latest
livenessProbe:
exec:
command:
- node
- /app/services/healthcheck
failureThreshold: 3
initialDelaySeconds: 40
periodSeconds: 90
timeoutSeconds: 10
name: dashy
ports:
- name: http
containerPort: 8080
protocol: TCP
resources: {}
restartPolicy: Always

View File

@ -0,0 +1,15 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: dashy
namespace: dashy
spec:
entryPoints:
- websecure-local
tls: {}
routes:
- match: Host(`dashy.steffenillium.de`)
kind: Rule
services:
- name: dashy-service
port: http

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- ingress.yaml
- namespace.yaml
- service.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: dashy

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: dashy
name: dashy
spec:
ports:
- name: http
port: 4000
targetPort: http
selector:
app: dashy

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: dashy
resources:
- base