mirror of
https://github.com/thejimnicholson/heimdall-k8s.git
synced 2025-12-06 11:40:45 +00:00
Compare commits
2 Commits
6e07c2ffe1
...
1205e233c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 1205e233c3 | |||
| 5d92f24348 |
@ -21,9 +21,9 @@ spec:
|
|||||||
app: heimdall
|
app: heimdall
|
||||||
spec:
|
spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: heimdall-data
|
- name: heimdall-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: heimdall-claim
|
claimName: heimdall-storage
|
||||||
containers:
|
containers:
|
||||||
- image: ghcr.io/linuxserver/heimdall:2.5.3 # < the name of the docker image we will use
|
- image: ghcr.io/linuxserver/heimdall:2.5.3 # < the name of the docker image we will use
|
||||||
name: heimdall # < name of container
|
name: heimdall # < name of container
|
||||||
@ -41,4 +41,4 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts: # < the volume mount in the container. Look at the relation volumelabel->pvc->pv
|
volumeMounts: # < the volume mount in the container. Look at the relation volumelabel->pvc->pv
|
||||||
- mountPath: /config # < mount location in the container
|
- mountPath: /config # < mount location in the container
|
||||||
name: heimdall-data # < volumelabel configured earlier in the yaml file
|
name: heimdall-storage # < volumelabel configured earlier in the yaml file
|
||||||
|
|||||||
26
volume.yaml
26
volume.yaml
@ -1,13 +1,35 @@
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: heimdall-pv
|
||||||
|
namespace: heimdall
|
||||||
|
labels:
|
||||||
|
app: heimdall
|
||||||
|
spec:
|
||||||
|
storageClassName: "local-path"
|
||||||
|
capacity:
|
||||||
|
storage: 5Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
mountOptions:
|
||||||
|
- nolock
|
||||||
|
nfs:
|
||||||
|
server: 10.0.96.14
|
||||||
|
path: "/mnt/data/heimdall-config"
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: heimdall-claim
|
name: heimdall-storage
|
||||||
namespace: heimdall
|
namespace: heimdall
|
||||||
|
annotations:
|
||||||
spec:
|
spec:
|
||||||
|
storageClassName: "local-path"
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
storageClassName: local-path
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 5Gi
|
||||||
|
volumeName: heimdall-pv
|
||||||
Loading…
Reference in New Issue
Block a user