This commit is contained in:
ari committed 2023-03-16 17:37:12 +00:00
1 parent 3bde855cfc
commit f714ebdb78
7 files changed
+157 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
apiVersion: v2
name: nextcloud
description: An applications service for homelab
type: application
version: 0.1.0
dependencies:
- name: nextcloud
repository: https://nextcloud.github.io/helm/
version: 3.5.3
Whitespace-only changes.
Whitespace-only changes.
+89
View File
@@ -0,0 +1,89 @@
nextcloud:
image:
repository: nextcloud
tag: "25.0.3-fpm"
pullPolicy: IfNotPresent
flavor: fpm
replicaCount: 1
nextcloud:
existingSecret:
enabled: true
usernameKey: username
passwordKey: password
update: 0
defaultConfigs:
.htaccess: true
redis.config.php: true
apache-pretty-urls.config.php: true
apcu.config.php: true
apps.config.php: false
autoconfig.php: true
smtp.config.php: true
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'),
);
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
internalDatabase:
enabled: false
externalDatabase:
enabled: true
type: postgresql
database: nextcloud
host: postgres.${var.namespace}.svc.cluster.local
existingSecret:
enabled: true
usernameKey: username
passwordKey: password
exernalRedis:
enabled: false
auth:
enabled: true
existingSecretPasswordKey: password
cronjob:
enabled: true
persistence:
enabled: true
nextcloudData:
enabled: true
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 2
memory: 1Gi
hpa:
enabled: true
cputhreshold: 60
minPods: 1
maxPods: 5
nginx:
enabled: true
# service:
# port: 80
# phpClientHttpsFix:
# enabled: true
# protocol: https
@@ -0,0 +1,37 @@
{{- if .Values.selfapp.enabled -}}
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: "applications"
spec:
generators:
- git:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
revision: "{{ .Values.selfapp.commit }}"
directories:
- path: k8s/applications/*
template:
metadata:
name: '{{ `{{path.basename}}` }}'
spec:
project: "applications"
source:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
path: '{{ `{{path}}` }}'
helm:
values: |-
global:
{{- .Values.global | toYaml | nindent 28 }}
valueFiles:
- values.yaml
- values-{{ .Values.global.deployment }}.yaml
destination:
server: https://kubernetes.default.svc
namespace: 'app-{{ `{{path.basename}}` }}'
syncPolicy:
syncOptions:
- CreateNamespace=true
{{- end -}}
@@ -0,0 +1,21 @@
{{- if .Values.selfapp.enabled -}}
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: applications
namespace: "{{ .Release.Namespace }}"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: "homelab applications"
sourceRepos:
- "git@github.com:{{ .Values.selfapp.repo }}.git"
destinations:
- server: "*"
namespace: 'app-*'
name: '*'
clusterResourceWhitelist:
- group: "*"
kind: "*"
{{- end -}}
@@ -7,7 +7,7 @@ metadata:
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["list"]
verbs: ["list", "create"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "update", "create", "patch", "delete"]