beaverhabits

This commit is contained in:
2025-01-12 16:25:05 -05:00
parent 74ea85b10e
commit 3d4650c540
7 changed files with 113 additions and 0 deletions

29
habits/deployment.yaml Normal file
View File

@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: beaverhabits
namespace: habits
spec:
selector:
matchLabels:
app: beaverhabits
template:
metadata:
labels:
app: beaverhabits
spec:
containers:
- name: beaverhabits
image: daya0576/beaverhabits:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: http
protocol: TCP
volumeMounts:
- name: data
mountPath: /app/.user
volumes:
- name: data
persistentVolumeClaim:
claimName: beaverhabits

12
habits/dns-endpoint.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: externaldns.k8s.io/v1alpha1
kind: DNSEndpoint
metadata:
name: habits.michaelthomson.dev
namespace: media
spec:
endpoints:
- dnsName: habits.michaelthomson.dev
recordTTL: 180
recordType: CNAME
targets:
- server.michaelthomson.dev

25
habits/ingress.yaml Normal file
View File

@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: beaverhabits
namespace: habits
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
# traefik.ingress.kubernetes.io/router.middlewares: authentik-bazarr@kubernetescrd
spec:
rules:
- host: habits.michaelthomson.dev
http:
paths:
- pathType: ImplementationSpecific
path: /
backend:
service:
name: beaverhabits
port:
name: http
tls:
- hosts:
- habits.michaelthomson.dev
secretName: letsencrypt-wildcard-cert-michaelthomson.dev

12
habits/pvc-data.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: beaverhabits
namespace: habits
spec:
resources:
requests:
storage: 8Gi
storageClassName: longhorn
accessModes:
- ReadWriteOnce

12
habits/service.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: beaverhabits
namespace: habits
spec:
selector:
app: beaverhabits
ports:
- port: 80
targetPort: http
name: http