Nextcloud: can't customize hostname from custom Eole³ Tools values file
If I set an hostname in custom helm values file which will parse by Eole³ Tools build command (`eole3 -c eole3.yaml build -c custom-vars/nextcloud-vars.yml addon -n nextcloud`), I have errors when I deploy.
My custom values :
nextcloud:
hostname: cloud
Errors when deploy :
================================================================================
Wait for Nextcloud to be up
================================================================================
error: no matching resources found
================================================================================
Nextcloud post-install configuration
================================================================================
Error from server (BadRequest): pod cloud-54b8889d7-gf8v4 does not have a host assigned
Error from server (BadRequest): pod cloud-54b8889d7-gf8v4 does not have a host assigned
Deployment seems to be ok, but post conf isn't played (no OIDC login is configured).
kubectl get pod result :
NAMESPACE NAME READY STATUS RESTARTS AGE
nextcloud cloud-54b8889d7-gf8v4 0/1 Running 1 (5s ago) 70s
nextcloud nextcloud-redis-master-0 1/1 Running 0 70s
nextcloud nextcloud-redis-replicas-0 1/1 Running 0 70s
nextcloud nextcloud-redis-replicas-1 1/1 Running 0 35s
nextcloud nextcloud-redis-replicas-2 0/1 Running 0 10sPod
Pod describe
kubectl describe pod cloud -n nextcloud
Name: cloud-54b8889d7-gf8v4
Namespace: nextcloud
Priority: 0
Service Account: default
Node: k3d-eole3-server-0/172.22.0.2
Start Time: Tue, 29 Oct 2024 07:52:50 +0000
Labels: app.kubernetes.io/component=app
app.kubernetes.io/instance=nextcloud
app.kubernetes.io/name=nextcloud
nextcloud-redis-client=true
pod-template-hash=54b8889d7
Annotations: hooks-hash: 9525c2748a6c7cd0e28ec740623d0b3fa5a75c83b51ccfd136bc89c76737b204
nextcloud-config-hash: fe1f26dc9a5c04bbbcfc1e56dcb83dc4f66c610ced7075fb1dd14538c7b8c310
php-config-hash: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
Status: Running
IP: 10.42.0.17
IPs:
IP: 10.42.0.17
Controlled By: ReplicaSet/cloud-54b8889d7
Containers:
nextcloud:
Container ID: containerd://206013690a06c6d6448db0e84e912489a588112750736bad579ea4287d855f5a
Image: nextcloud:28.0.11
Image ID: docker.io/library/nextcloud@sha256:a9a9a66d05e06ae42fe4a4eadb9328dde4cfe2d0322b421aa2d83d47fb7a8c38
Port: 80/TCP
Host Port: 0/TCP
State: Running
Started: Tue, 29 Oct 2024 07:53:51 +0000
Last State: Terminated
Reason: Error
Exit Code: 137
Started: Tue, 29 Oct 2024 07:52:51 +0000
Finished: Tue, 29 Oct 2024 07:53:51 +0000
Ready: True
Restart Count: 1
Limits:
cpu: 1
memory: 1200Mi
Requests:
cpu: 1
memory: 1200Mi
Liveness: http-get http://:80/status.php delay=10s timeout=5s period=10s #success=1 #failure=3
Readiness: http-get http://:80/status.php delay=10s timeout=5s period=10s #success=1 #failure=3
Environment:
POSTGRES_HOST: postgresql.postgresql:5432
POSTGRES_DB: nextcloud
POSTGRES_USER: <set to the key 'db-username' in secret 'nextcloud-db'> Optional: false
POSTGRES_PASSWORD: <set to the key 'db-password' in secret 'nextcloud-db'> Optional: false
NEXTCLOUD_ADMIN_USER: <set to the key 'nextcloud-username' in secret 'cloud'> Optional: false
NEXTCLOUD_ADMIN_PASSWORD: <set to the key 'nextcloud-password' in secret 'cloud'> Optional: false
NEXTCLOUD_TRUSTED_DOMAINS: cloud.eole3.ac-test.fr
NEXTCLOUD_DATA_DIR: /var/www/html/data
REDIS_HOST: nextcloud-redis-master
REDIS_HOST_PORT: 6379
REDIS_HOST_PASSWORD: changeme
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-nxhkc (ro)
/var/www/ from nextcloud-main (rw,path="root")
/var/www/html from nextcloud-main (rw,path="html")
/var/www/html/config from nextcloud-main (rw,path="config")
/var/www/html/config/.htaccess from nextcloud-config (rw,path=".htaccess")
/var/www/html/config/apache-pretty-urls.config.php from nextcloud-config (rw,path="apache-pretty-urls.config.php")
/var/www/html/config/apcu.config.php from nextcloud-config (rw,path="apcu.config.php")
/var/www/html/config/apps.config.php from nextcloud-config (rw,path="apps.config.php")
/var/www/html/config/autoconfig.php from nextcloud-config (rw,path="autoconfig.php")
/var/www/html/config/log.config.php from nextcloud-config (rw,path="log.config.php")
/var/www/html/config/minio.config.php from nextcloud-config (rw,path="minio.config.php")
/var/www/html/config/oidc.config.php from nextcloud-config (rw,path="oidc.config.php")
/var/www/html/config/redis.config.php from nextcloud-config (rw,path="redis.config.php")
/var/www/html/config/reverse-proxy.config.php from nextcloud-config (rw,path="reverse-proxy.config.php")
/var/www/html/config/s3.config.php from nextcloud-config (rw,path="s3.config.php")
/var/www/html/config/smtp.config.php from nextcloud-config (rw,path="smtp.config.php")
/var/www/html/config/swift.config.php from nextcloud-config (rw,path="swift.config.php")
/var/www/html/config/upgrade-disable-web.config.php from nextcloud-config (rw,path="upgrade-disable-web.config.php")
/var/www/html/custom_apps from nextcloud-main (rw,path="custom_apps")
/var/www/html/data from nextcloud-main (rw,path="data")
/var/www/html/themes from nextcloud-main (rw,path="themes")
/var/www/tmp from nextcloud-main (rw,path="tmp")
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
nextcloud-main:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: cloud-nextcloud
ReadOnly: false
nextcloud-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: cloud-config
Optional: false
kube-api-access-nxhkc:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Guaranteed
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 12m default-scheduler Successfully assigned nextcloud/cloud-54b8889d7-gf8v4 to k3d-eole3-server-0
Warning Unhealthy 11m (x3 over 12m) kubelet Liveness probe failed: Get "http://10.42.0.17:80/status.php": dial tcp 10.42.0.17:80: connect: connection refused
Normal Killing 11m kubelet Container nextcloud failed liveness probe, will be restarted
Warning Unhealthy 11m (x6 over 12m) kubelet Readiness probe failed: Get "http://10.42.0.17:80/status.php": dial tcp 10.42.0.17:80: connect: connection refused
Normal Pulled 11m (x2 over 12m) kubelet Container image "nextcloud:28.0.11" already present on machine
Normal Created 11m (x2 over 12m) kubelet Created container nextcloud
Normal Started 11m (x2 over 12m) kubelet Started container nextcloud
Warning Unhealthy 11m kubelet Readiness probe failed: Get "http://10.42.0.17:80/status.php": EOF
Edited by Stéphane PAILLET