mirror of
https://github.com/thejimnicholson/pdns-admin.git
synced 2025-12-06 03:30:42 +00:00
Switch to nfs for storage
This commit is contained in:
parent
88be42be0e
commit
787ca80f4d
@ -32,8 +32,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: pdns-admin-vol
|
||||
mountPath: /data
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
# securityContext:
|
||||
# fsGroup: 101
|
||||
volumes:
|
||||
- name: pdns-admin-vol
|
||||
persistentVolumeClaim:
|
||||
|
||||
@ -6,6 +6,8 @@ metadata:
|
||||
namespace: pdns
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||
cert-manager.io/cluster-issuer: dns-clusterissuer
|
||||
spec:
|
||||
rules:
|
||||
- host: pdns.home.thejimnicholson.com
|
||||
@ -18,3 +20,7 @@ spec:
|
||||
name: pdns-admin
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- pdns.home.thejimnicholson.com
|
||||
secretName: pdns.home.thejimnicholson.com
|
||||
|
||||
@ -1,5 +1,25 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: pdns-pv
|
||||
namespace: pdns
|
||||
labels:
|
||||
app: pdns
|
||||
spec:
|
||||
storageClassName: "local-path"
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
mountOptions:
|
||||
- nolock
|
||||
nfs:
|
||||
server: 10.0.96.14
|
||||
path: "/mnt/data/pdns-admin"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pdns-admin-claim
|
||||
@ -7,7 +27,8 @@ metadata:
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
storageClassName: "local-path"
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storage: 5Gi
|
||||
volumeName: pdns-pv
|
||||
Loading…
Reference in New Issue
Block a user