masterone: pin storageClassName empty on hostPath PVCs (default-SC injection fix)
This commit is contained in:
parent
bfc8dd7809
commit
d30dcd58d9
2 changed files with 8 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
# PostgreSQL for the MasterOne portal (hostPath PV — single-node local cluster;
|
# PostgreSQL for the MasterOne portal (hostPath PV — single-node local cluster;
|
||||||
# data persists on the host under /root/rancher/data/masterone/postgres).
|
# data persists on the host under /root/rancher/data/masterone/postgres).
|
||||||
|
# NOTE: Longhorn migration pending — Longhorn volumes fail to attach on this
|
||||||
|
# nested-docker node (iscsid lifetime issue). hostPath is the working config.
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -21,6 +23,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ReadWriteOnce]
|
accessModes: [ReadWriteOnce]
|
||||||
volumeName: masterone-postgres-pv
|
volumeName: masterone-postgres-pv
|
||||||
|
storageClassName: ""
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# MasterOne portal app. Image is built and imported locally (masterone-portal:k8s);
|
# MasterOne portal app. Image built/imported locally (masterone-portal:k8s);
|
||||||
# uploads persist on hostPath PV. Secrets (API keys, DB creds, PORTAL_SECRET_KEY)
|
# uploads on hostPath PV. Secrets from OpenBao (synced to masterone-secrets by
|
||||||
# live in the masterone-secrets Secret — created imperatively, NEVER committed to git.
|
# /root/openbao/sync-openbao.sh).
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -22,6 +22,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ReadWriteOnce]
|
accessModes: [ReadWriteOnce]
|
||||||
volumeName: masterone-uploads-pv
|
volumeName: masterone-uploads-pv
|
||||||
|
storageClassName: ""
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
|
|
@ -43,6 +44,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: portal
|
app: portal
|
||||||
spec:
|
spec:
|
||||||
|
serviceAccountName: portal-sa
|
||||||
containers:
|
containers:
|
||||||
- name: portal
|
- name: portal
|
||||||
image: masterone-portal:k8s
|
image: masterone-portal:k8s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue