Changing nextcloud.host vars results in crashloopbackoff
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- helm, kubernetes, yaml
- Ambito
- devops, infrastructure
Direzione di ricerca
Inizia con il values.yaml fornito e riproduci la modifica con Helm chart version 5.5.2, confrontando la configurazione renderizzata e il comportamento di avvio del container Nextcloud prima e dopo la modifica di nextcloud.host. Controlla i template del chart relativi all’host e i log del deployment; l’issue è completata quando la modifica del nome host non causa più CrashLoopBackOff.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe your Issue
Changing the helm value responsible for the ingress hostname and the nextcloud internal host results in crashloopbackoff.
After changing back the nextcloud.host to the old value the deployment come back online. But this help in this case because I and I'm sure many other needs to change the hostname sometimes because of a migration to a other network etc.
Changing
nextcloud:
host: mycoolserver.example.com
to
nextcloud:
host: mycoolserver.newnetwork.com
I need to change this because I want to use my other ingress controller which can be accessed from the WAN.
Logs and Errors
crashloopbackoff in the nexcloud container inside the nextcloud pod. Nothing helpfull inside the log. The log shows no indicator about this issue. It looks simply like a exit code 1
Describe your Environment
-
Kubernetes distribution: v1.30.2+rke2r1
-
Helm Version: ArgoCD version 2.11.7
-
Helm Chart Version: 5.5.2
-
values.yaml:
---
{{- if .Values.spec.nextcloud.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nextcloud
namespace: {{ .Values.spec.argocdNamespace }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: nextcloud
server: 'https://kubernetes.default.svc'
project: default
source:
chart: nextcloud
path: '.'
repoURL: {{ .Values.spec.nextcloud.repoURL }}
targetRevision: {{ .Values.spec.nextcloud.targetRevision }}
helm:
values: |
nextcloud:
host: {{ .Values.spec.nextcloud.host }}
username: admin
password: {{ .Values.spec.nextcloud.nextcloudAdminPW }}
containerPort: 80
datadir: /var/www/html/data
configs:
custom-overwrite.config.php: |-
<?php
$CONFIG = array (
'overwrite.cli.url' => 'https://nextcloud.nextcloud.svc.cluster.local',
'overwriteprotocol' => 'https',
);
proxy.config.php: |-
<?php
$CONFIG = array (
'trusted_proxies' => array(
0 => '127.0.0.1',
1 => '10.0.0.0/8',
),
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
);
cronjob:
enabled: true
persistence:
enabled: true
size: 150Gi
storageClass: "{{ .Values.spec.nextcloud.storageClass }}"
image:
flavor: fpm
nginx:
enabled: true
externalDatabase:
enabled: true
type: mysql
host: nextcloud-mariadb.svc
user: nextcloud
password: "{{ .Values.spec.nextcloud.mariadbPW }}"
database: nextcloud
internalDatabase:
enabled: false
mariadb:
enabled: true
primary:
persistence:
enabled: true
storageClass: "{{ .Values.spec.nextcloud.storageClass }}"
auth:
database: nextcloud
username: nextcloud
password: "{{ .Values.spec.nextcloud.mariadbPW }}"
existingSecret: ""
ingress:
enabled: true
labels: {}
path: /
pathType: Prefix
className: nginx
annotations:
# cert-manager.io/cluster-issuer: letsencrypt-prod
cert-manager.io/cluster-issuer: selfsigned-issuer
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"
nginx.ingress.kubernetes.io/server-snippet: |-
server_tokens off;
proxy_hide_header X-Powered-By;
rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last;
rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last;
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
deny all;
}
location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
deny all;
}
tls:
- secretName: nextcloud-tls
hosts:
- {{ .Values.spec.nextcloud.host }}
syncPolicy:
automated:
selfHeal: true
allowEmpty: true
syncOptions:
- CreateNamespace=true
{{- end }}
- Lingua principale
- Go Template
- Stelle
- 536
- Fork
- 316
- Merge medio
- 4g 16h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/helm
-
No native support for REDIS_USER enviroment varForse già presa @jholmes802 l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Failed to inspect imageAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
nextcloud.openmetrics.allowedClients is silently ignored unless nextcloud.configs is setForse già presa @JanWelker l’ha presa 19 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
-
External Redis not working: redis-session.ini: Permission deniedForse già presa @antoinetran l’ha presa 23 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Tutte le issue di nextcloud/helm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zerocracy/judges-action#2733 ·
I maintainer di solito rispondono entro 8 giorni
-
dependencies feature github_actions good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
wemake-services/wemake-django-template#3149 ·
I maintainer di solito rispondono entro 1 giorno
-
CI: OpenAPIの型チェックを独立させ、日次で回すApertaCI/CD
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
GiganticMinecraft/seichi-portal-frontend#1185 ·
I maintainer di solito rispondono entro 1 giorno
-
severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
luainkernel/lunatik#1848 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
zmo2s/agent-toolbox#22 ·