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 <noreply@anthropic.com>
This commit is contained in:
parent
1e22b74a55
commit
53f358c34f
1 changed files with 0 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue