Finished vaultwarden
This commit is contained in:
@@ -15,12 +15,22 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
releaseName: vaultwarden
|
releaseName: vaultwarden
|
||||||
valuesObject:
|
valuesObject:
|
||||||
|
domain: {{ .Values.vaultwarden.fqdn }}
|
||||||
|
timeZone: {{ .Values.vaultwarden.timeZone }}
|
||||||
database:
|
database:
|
||||||
type: postgresql
|
type: postgresql
|
||||||
existingSecret: {{ .Values.vaultwarden.dbCluster.secretName }}
|
existingSecret: {{ .Values.vaultwarden.dbCluster.secretName }}
|
||||||
existingSecretKey: uri
|
existingSecretKey: uri
|
||||||
|
data:
|
||||||
|
name: {{ .Values.vaultwarden.dataPvc.name }}
|
||||||
|
size: {{ .Values.vaultwarden.dataPvc.size }}
|
||||||
|
class: {{ .Values.vaultwarden.dataPvc.storageClassName }}
|
||||||
|
attachments:
|
||||||
|
name: {{ .Values.vaultwarden.attachmentPvc.name }}
|
||||||
|
size: {{ .Values.vaultwarden.attachmentPvc.size }}
|
||||||
|
class: {{ .Values.vaultwarden.attachmentPvc.storageClassName }}
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: false
|
||||||
destination:
|
destination:
|
||||||
server: {{ .Values.mainDestination }}
|
server: {{ .Values.mainDestination }}
|
||||||
namespace: {{ .Values.mainNamespace }}
|
namespace: {{ .Values.mainNamespace }}
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: vaultwarden-postinstall
|
||||||
|
namespace: {{ .Values.argocd.namespace }}
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
||||||
|
spec:
|
||||||
|
project: {{ .Values.argocd.project }}
|
||||||
|
source:
|
||||||
|
repoURL: {{ .Values.argocd.postinstall.repoURL }}
|
||||||
|
targetRevision: {{ .Values.argocd.postinstall.targetRevision }}
|
||||||
|
path: {{ .Values.argocd.postinstall.path }}
|
||||||
|
helm:
|
||||||
|
releaseName: vaultwarden-postinstall
|
||||||
|
valuesObject:
|
||||||
|
tailscaleIngresses:
|
||||||
|
vaultwardenHostname: {{ .Values.tailscaleIngresses.vaultwardenHostname }}
|
||||||
|
destination:
|
||||||
|
server: {{ .Values.destination.server }}
|
||||||
|
namespace: {{ .Values.destination.namespace }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true # Automatically remove resources no longer in the repo
|
||||||
|
selfHeal: true # Automatically self-heal when drift is detected
|
||||||
|
syncOptions:
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -23,8 +23,12 @@ vaultwarden:
|
|||||||
name: vaultwarden-data
|
name: vaultwarden-data
|
||||||
storageClassName: ''
|
storageClassName: ''
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
FQDN: vaultwarden.domain.net
|
attachmentPvc:
|
||||||
replicaCount: 1
|
name: vaultwarden-attachments
|
||||||
|
storageClassName: ''
|
||||||
|
size: 10Gi
|
||||||
|
fqdn: vaultwarden.domain.net
|
||||||
|
timeZone: "Europe/Lisbon"
|
||||||
|
|
||||||
tailscaleIngresses:
|
tailscaleIngresses:
|
||||||
odooHostname: odoo
|
vaultwardenHostname: vaultwarden
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: vaultwarden-postinstall
|
name: vaultwarden-postinstall
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for deploynig vaultwarden's ingress
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|||||||
16
vaultwarden-postinstall/templates/vaultwarden-ingress.yaml
Normal file
16
vaultwarden-postinstall/templates/vaultwarden-ingress.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ts-vaultwarden
|
||||||
|
annotations:
|
||||||
|
tailscale.com/funnel: "true"
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: vaultwarden
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
ingressClassName: tailscale
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .Values.tailscaleIngresses.vaultwardenHostname }}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
tailscaleIngresses:
|
||||||
|
vaultwardenHostname: vaultwarden
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if false -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@@ -9,3 +10,4 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.vaultwarden.dataPvc.size }}
|
storage: {{ .Values.vaultwarden.dataPvc.size }}
|
||||||
|
{{- end }}
|
||||||
Reference in New Issue
Block a user