From 53f358c34f5f06b12bb910ca696729094b4dac47 Mon Sep 17 00:00:00 2001 From: CTO Agent Date: Sun, 5 Jul 2026 13:37:11 +0000 Subject: [PATCH] Revert ConfigMap mount - caused crashes Mounting opencloud-config ConfigMap to /etc/opencloud caused pod crashes because the YAML contains placeholders like ${ENV_VAR} that aren't expanded. Issue: OpenCloud expects actual values in config files, but ConfigMaps don't perform environment variable substitution. Solution: Use environment variables only (highest precedence per docs). The current deployment with ENV vars works correctly - no file config needed. Alternative: If file config is required, use an init container to: 1. Read the ConfigMap template 2. Substitute environment variables 3. Write the expanded config to /etc/opencloud Co-Authored-By: Claude Sonnet 4.5 --- apps/opencloud/opencloud-deployment.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/opencloud/opencloud-deployment.yaml b/apps/opencloud/opencloud-deployment.yaml index 5bb6927..7c88f2b 100644 --- a/apps/opencloud/opencloud-deployment.yaml +++ b/apps/opencloud/opencloud-deployment.yaml @@ -448,8 +448,6 @@ spec: volumeMounts: - name: opencloud-data mountPath: /var/lib/opencloud - - name: opencloud-config - mountPath: /etc/opencloud resources: requests: memory: "512Mi" @@ -476,9 +474,6 @@ spec: - name: opencloud-data persistentVolumeClaim: claimName: opencloud-data - - name: opencloud-config - configMap: - name: opencloud-config --- # Ingress apiVersion: networking.k8s.io/v1