Skip to content

Commit

Permalink
lowered nextcloud probe timeouts
Browse files Browse the repository at this point in the history
v1nsai committed Jul 5, 2024
1 parent a193635 commit 96e8940
Showing 3 changed files with 21 additions and 12 deletions.
11 changes: 7 additions & 4 deletions projects/nextcloud/argocd.yaml
Original file line number Diff line number Diff line change
@@ -4,6 +4,13 @@ metadata:
name: nextcloud
spec:
project: default
source:
repoURL: 'https://nextcloud.github.io/helm/'
targetRevision: "*"
helm:
valueFiles:
- $values/projects/nextcloud/values.yaml
chart: nextcloud
sources:
- repoURL: 'https://nextcloud.github.io/helm/'
helm:
@@ -24,7 +31,3 @@ spec:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- Validate=false
# sources:
# - repoURL: 'https://github.com/v1nsai/homelab.git'
# ref: values
# target: projects/nextcloud/values.yaml
16 changes: 11 additions & 5 deletions projects/nextcloud/install.sh
Original file line number Diff line number Diff line change
@@ -5,6 +5,12 @@ set -e
echo "Generating or retrieving credentials..."
source projects/nextcloud/secrets.env

# if NC_HOST is not defined, prompt for it
if [ -z "$NC_HOST" ]; then
read -sn1 -p "Enter Nextcloud host: " NC_HOST
cat "NC_HOST=$NC_HOST" >> projects/nextcloud/secrets.env
fi

read -sn1 -p "Delete namespace first? (y/N) " DELETE
if [ "$DELETE" == "y" ]; then
helm delete -n nextcloud nextcloud --wait || true
@@ -24,11 +30,11 @@ else
--from-literal=nextcloud-password=$NC_PASSWORD \
--from-literal=nextcloud-host=$NC_HOST \
--from-literal=nextcloud-username=admin \
--from-literal=nextcloud-token=$NC_PASSWORD \
--from-literal=smtp-password=$SMTP_PASS \
--from-literal=smtp-host=$SMTP_HOST \
--from-literal=smtp-port=$SMTP_PORT \
--from-literal=smtp-username=$SMTP_USER
--from-literal=nextcloud-token=$NC_PASSWORD
# --from-literal=smtp-password=$SMTP_PASS \
# --from-literal=smtp-host=$SMTP_HOST \
# --from-literal=smtp-port=$SMTP_PORT \
# --from-literal=smtp-username=$SMTP_USER
fi

echo "Generating mariadb passwords..."
6 changes: 3 additions & 3 deletions projects/nextcloud/values.yaml
Original file line number Diff line number Diff line change
@@ -42,8 +42,8 @@ redis:
service:
type: LoadBalancer
livenessProbe:
initialDelaySeconds: 7200
initialDelaySeconds: 1800
readinessProbe:
initialDelaySeconds: 7200
initialDelaySeconds: 1800
startupProbe:
initialDelaySeconds: 7200
initialDelaySeconds: 1800

0 comments on commit 96e8940

Please sign in to comment.