mirror of
https://github.com/thejimnicholson/heimdall-k8s.git
synced 2025-12-06 11:40:45 +00:00
Compare commits
No commits in common. "d49452758622b4a4eb476ac343d78a8715af34ae" and "65269b2eee6f54fef4b830728c99b0e5fde58a76" have entirely different histories.
d494527586
...
65269b2eee
@ -21,9 +21,9 @@ spec:
|
||||
app: heimdall
|
||||
spec:
|
||||
volumes:
|
||||
- name: heimdall-storage-new
|
||||
- name: heimdall-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: heimdall-storage-new
|
||||
claimName: heimdall-storage
|
||||
containers:
|
||||
- image: ghcr.io/linuxserver/heimdall:2.5.8 # < the name of the docker image we will use
|
||||
name: heimdall # < name of container
|
||||
@ -40,5 +40,5 @@ spec:
|
||||
name: http-80
|
||||
protocol: TCP
|
||||
volumeMounts: # < the volume mount in the container. Look at the relation volumelabel->pvc->pv
|
||||
- mountPath: /config # < mount location in the container
|
||||
name: heimdall-storage-new
|
||||
- mountPath: /config # < mount location in the container
|
||||
name: heimdall-storage # < volumelabel configured earlier in the yaml file
|
||||
|
||||
28
volume.yaml
28
volume.yaml
@ -1,13 +1,35 @@
|
||||
---
|
||||
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
|
||||
metadata:
|
||||
name: heimdall-storage-new
|
||||
name: heimdall-storage
|
||||
namespace: heimdall
|
||||
annotations:
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
storageClassName: "local-path"
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storage: 5Gi
|
||||
volumeName: heimdall-pv
|
||||
Loading…
Reference in New Issue
Block a user