diff --git a/z2/service.yaml b/z2/service.yaml index 7d84860..03f018d 100644 --- a/z2/service.yaml +++ b/z2/service.yaml @@ -20,9 +20,9 @@ spec: nodePort: 30888 --- -# ───────────────────────────────────────────────────────────────────────────── + # Service – Frontend NodePort (accessible via localhost:30500) -# ───────────────────────────────────────────────────────────────────────────── + apiVersion: v1 kind: Service metadata: diff --git a/z2/statefulset.yaml b/z2/statefulset.yaml index 5ab3ea8..13f05c4 100644 --- a/z2/statefulset.yaml +++ b/z2/statefulset.yaml @@ -1,6 +1,5 @@ -# ───────────────────────────────────────────────────────────────────────────── # PersistentVolume – host-path volume for PostgreSQL data -# ───────────────────────────────────────────────────────────────────────────── + apiVersion: v1 kind: PersistentVolume metadata: @@ -19,9 +18,9 @@ spec: path: /home/cytech/vigimeteo-db-data --- -# ───────────────────────────────────────────────────────────────────────────── + # PersistentVolumeClaim – claimed by the StatefulSet below -# ───────────────────────────────────────────────────────────────────────────── + apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -38,9 +37,9 @@ spec: storage: 1Gi --- -# ───────────────────────────────────────────────────────────────────────────── + # StatefulSet – single PostgreSQL replica -# ───────────────────────────────────────────────────────────────────────────── + apiVersion: apps/v1 kind: StatefulSet metadata: @@ -96,9 +95,9 @@ spec: name: vigimeteo-db-init --- -# ───────────────────────────────────────────────────────────────────────────── + # Headless Service – required by the StatefulSet -# ───────────────────────────────────────────────────────────────────────────── + apiVersion: v1 kind: Service metadata: