Compare commits

...

14 Commits

Author SHA1 Message Date
5a41004ee3 back to nfs for restore 2026-01-14 18:51:59 +11:00
c0277e3d40 fixed volume name 2026-01-14 18:42:54 +11:00
0192b3d062 Migrate n8n PVC to nvme-local-retain storage class
Change from nfs-csi to nvme-local-retain to avoid NFS UID constraint.
This enables restricted-v2 SCC without MyCloud NAS permissions issues.
2026-01-14 07:11:14 +00:00
e6c9738fb3 hardened environment. removed scc hacks 2026-01-14 17:02:28 +11:00
acbab11902 removed host 2026-01-02 23:41:00 +11:00
b07106eac0 updated port 2026-01-02 23:38:44 +11:00
894d5d6dcc change to HTPPS 2026-01-02 23:36:09 +11:00
a7012fbb20 fix duplicated port 2026-01-02 23:33:23 +11:00
554244acba update host and port 2026-01-02 23:30:48 +11:00
498e2c6631 kubetctl to oc 2025-12-30 20:53:38 +11:00
00c45d23bd fixed path for argo application 2025-12-30 20:49:13 +11:00
fc00bd5b4a re-org for argo 2025-12-30 20:47:52 +11:00
630c70c95a cleaned up garbage file 2025-12-24 19:51:54 +11:00
e569967d21 changed to nfs-csi 2025-12-24 19:50:15 +11:00
16 changed files with 36 additions and 47 deletions

13
@
View File

@@ -1,13 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
service: n8n-claim0
name: n8n-claim0
namespace: n8n
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi

View File

@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: n8n
namespace: openshift-gitops
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: n8n
source:
repoURL: https://gitea.apilab.us/cscott/n8n.git
targetRevision: main
path: manifests
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- PruneLast=true

View File

@@ -1,13 +0,0 @@
k apply -f namespace.yaml
k apply -f postgres-claim0-persistentvolumeclaim.yaml
k apply -f postgres-configmap.yaml
k apply -f postgres-secret.yaml
k apply -f postgres-deployment.yaml
k apply -f postgres-service.yaml
./scc-updates.sh
k apply -f n8n-pvc.yaml
k apply -f n8n-pv.yaml
k apply -f n8n-service.yaml
k apply -f n8n-deployment.yaml
k apply -f route.yaml
echo n8n Deployed!

12
manifests/deploy.sh Executable file
View File

@@ -0,0 +1,12 @@
oc apply -f namespace.yaml
oc apply -f postgres-claim0-persistentvolumeclaim.yaml
oc apply -f postgres-configmap.yaml
oc apply -f postgres-secret.yaml
oc apply -f postgres-deployment.yaml
oc apply -f postgres-service.yaml
./scc-updates.sh
oc apply -f n8n-pvc.yaml
oc apply -f n8n-service.yaml
oc apply -f n8n-deployment.yaml
oc apply -f route.yaml
echo n8n Deployed!

View File

@@ -52,7 +52,7 @@ spec:
name: postgres-secret
key: POSTGRES_NON_ROOT_PASSWORD
- name: N8N_PROTOCOL
value: http
value: https
- name: N8N_PORT
value: "5678"
image: docker.io/n8nio/n8n

View File

@@ -9,5 +9,4 @@ spec:
resources:
requests:
storage: 4Gi
storageClassName: nfs
volumeName: n8n
storageClassName: nfs-csi

View File

@@ -1,15 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: n8n
namespace: n8n
spec:
capacity:
storage: 4Gi
nfs:
server: 192.168.0.105
path: /nfs/NFS/ocp/n8n
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: nfs

View File

@@ -1,3 +0,0 @@
oc create sa n8n-sa -n n8n
oc adm policy add-scc-to-user anyuid -z n8n-sa -n n8n
oc adm policy add-scc-to-user privileged -z n8n-sa -n n8n