initial checkin

This commit is contained in:
Radar231 2021-07-23 15:58:33 -04:00
commit af5e487f72
5 changed files with 127 additions and 0 deletions

52
heimdall_deployment.yml Normal file
View File

@ -0,0 +1,52 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: heimdall
labels:
app: heimdall
spec:
replicas: 1
selector:
matchLabels:
app: heimdall
strategy:
type: Recreate
template:
metadata:
labels:
app: heimdall
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- arm64
containers:
- name: heimdall
image: linuxserver/heimdall
env:
- name: PUID
value: "65534"
- name: PGID
value: "65534"
- name: UMASK
value: "022"
- name: TZ
value: "EST5EDT"
ports:
- containerPort: 80
- containerPort: 443
volumeMounts:
- name: heimdall-config
mountPath: /config
volumes:
- name: heimdall-config
persistentVolumeClaim:
claimName: heimdall-config-pvc
# EOF

18
heimdall_ingress.yml Normal file
View File

@ -0,0 +1,18 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: heimdall
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: heimdall.lan
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: heimdall
servicePort: 80
# EOF

21
heimdall_pv.yml Normal file
View File

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

19
heimdall_pvc.yml Normal file
View File

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

17
heimdall_service.yml Normal file
View File

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