-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-deploying nextcloud through argocd
- Loading branch information
Showing
5 changed files
with
95 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "Installing Argo CD..." | ||
helm repo add argo https://argoproj.github.io/argo-helm | ||
helm repo update | ||
helm upgrade --install argo-cd argo/argo-cd \ | ||
--namespace argocd \ | ||
--create-namespace \ | ||
--values projects/argo/argo-cd/values.yaml | ||
|
||
echo "Deploying argocd image updater to kubernetes..." | ||
kubectl apply \ | ||
--filename https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/stable/manifests/install.yaml \ | ||
--namespace argocd | ||
|
||
echo "Installing argocd-image-updater binary..." | ||
wget https://github.com/argoproj-labs/argocd-image-updater/releases/download/v0.13.1/argocd-image-updater-linux_amd64 -O /usr/bin/argocd-image-updater | ||
|
||
echo "Running post install config..." | ||
kubectl patch svc -n argocd argo-cd-argocd-server -p '{"spec": {"type": "LoadBalancer"}}' | ||
kubectl patch configmap argocd-cm -n argocd --type merge --patch '{"data": {"resourceTrackingMethod": "annotation+label"}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
server: | ||
service: | ||
type: LoadBalancer | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 2 | ||
|
||
redis-ha: | ||
enabled: true | ||
|
||
controller: | ||
replicas: 1 | ||
|
||
repoServer: | ||
autoscaling: | ||
enabled: true | ||
minReplicas: 2 | ||
|
||
applicationSet: | ||
replicas: 2 | ||
|
||
configs: | ||
params: | ||
application: | ||
namespaces: "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: nextcloud | ||
spec: | ||
project: default | ||
sources: | ||
- repoURL: 'https://nextcloud.github.io/helm/' | ||
helm: | ||
valueFiles: | ||
- $values/projects/nextcloud/values.yaml | ||
chart: nextcloud | ||
targetRevision: "*" | ||
- repoURL: 'https://github.com/v1nsai/homelab.git' | ||
ref: values | ||
destination: | ||
name: in-cluster | ||
namespace: nextcloud | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ApplyOutOfSyncOnly=true | ||
- Validate=false | ||
# sources: | ||
# - repoURL: 'https://github.com/v1nsai/homelab.git' | ||
# ref: values | ||
# target: projects/nextcloud/values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters