initial checkin

This commit is contained in:
Radar231 2023-09-08 11:26:34 -04:00
commit a17f74e44a
6 changed files with 135 additions and 0 deletions

12
README.md Normal file
View File

@ -0,0 +1,12 @@
# dashy k8s manifest
## Introduction
This deploys a dashy server.
## Links
* https://dashy.to/
* https://github.com/Lissy93/dashy
* https://hub.docker.com/r/lissy93/dashy

49
dashy_deployment.yml Normal file
View File

@ -0,0 +1,49 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dashy
labels:
app: dashy
spec:
replicas: 1
selector:
matchLabels:
app: dashy
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: dashy
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
containers:
- name: dashy
image: lissy93/dashy
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "EST5EDT"
ports:
- containerPort: 80
volumeMounts:
- name: dashy
mountPath: /app/public
volumes:
- name: dashy
persistentVolumeClaim:
claimName: dashy-pvc
# EOF

20
dashy_ingress.yml Normal file
View File

@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dashy
annotations:
kubernetes.io/ingress.class: haproxy
spec:
rules:
- host: dashy.lan
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dashy
port:
number: 80
# EOF

21
dashy_pv.yml Normal file
View File

@ -0,0 +1,21 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: dashy-pv
labels:
name: dashy-pv
spec:
storageClassName: manual
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
mountOptions:
- hard
- nfsvers=4.0
nfs:
server: 192.168.20.11
path: "/volume1/k8s-storage/dashy"
# EOF

19
dashy_pvc.yml Normal file
View File

@ -0,0 +1,19 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dashy-pvc
labels:
app: dashy
spec:
accessModes:
- ReadWriteOnce
storageClassName: "manual"
resources:
requests:
storage: 1Gi
selector:
matchLabels:
name: dashy-pv
# EOF

14
dashy_service.yml Normal file
View File

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: dashy
spec:
selector:
app: dashy
ports:
- protocol: TCP
port: 80
name: toport80
# EOF