++nextcloud
This commit is contained in:
parent
90b68eaaf8
commit
9c96efd824
2 changed files with 52 additions and 68 deletions
|
@ -2,23 +2,8 @@ apiVersion: v2
|
||||||
name: ungleich-nextcloud
|
name: ungleich-nextcloud
|
||||||
description: ungleich managed nextcloud
|
description: ungleich managed nextcloud
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
|
||||||
#
|
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
|
||||||
# to be deployed.
|
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
|
||||||
# to the chart and its templates, including the app version.
|
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
appVersion: "21.0.7-apache"
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
|
||||||
# It is recommended to use it with quotes.
|
|
||||||
appVersion: "21.0.3"
|
|
||||||
|
|
|
@ -48,39 +48,43 @@ spec:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Release.Name }}-zammad
|
name: {{ .Release.Name }}-nextcloud
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ .Release.Name }}-zammad
|
app: {{ .Release.Name }}-nextcloud
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-zammad
|
app: {{ .Release.Name }}-nextcloud
|
||||||
spec:
|
spec:
|
||||||
# initContainers:
|
|
||||||
# - name: wait-for-cert
|
|
||||||
# image: busybox
|
|
||||||
# command:
|
|
||||||
# - sh
|
|
||||||
# - -c
|
|
||||||
# - until ls /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/fullchain.pem; do sleep 5; done
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: etcletsencrypt
|
|
||||||
# mountPath: "/etc/letsencrypt"
|
|
||||||
containers:
|
containers:
|
||||||
# - name: nginx
|
- name: nginx
|
||||||
# image: nginx:1.21-alpine
|
image: ungleich/ungleich-certbot:0.3.2
|
||||||
# ports:
|
ports:
|
||||||
# - containerPort: 443
|
- containerPort: 443
|
||||||
# volumeMounts:
|
name: https
|
||||||
# - name: nginx-config
|
- containerPort: 80
|
||||||
# mountPath: "/etc/nginx/conf.d/"
|
name: http
|
||||||
# - name: etcletsencrypt
|
env:
|
||||||
# mountPath: "/etc/letsencrypt"
|
- name: DOMAIN
|
||||||
# - name: zammad-data
|
value: "{{ tpl .Values.fqdn . }}"
|
||||||
# mountPath: "/var/www/html"
|
- name: EMAIL
|
||||||
|
value: "{{ .Values.email }}"
|
||||||
|
- name: NGINX
|
||||||
|
value: "yes"
|
||||||
|
{{ if eq .Values.letsencryptStaging "no" }}
|
||||||
|
- name: STAGING
|
||||||
|
value: "no"
|
||||||
|
{{ end }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: nginx-config
|
||||||
|
mountPath: "/etc/nginx/conf.d/"
|
||||||
|
- name: etcletsencrypt
|
||||||
|
mountPath: "/etc/letsencrypt"
|
||||||
|
- name: nextcloud-data
|
||||||
|
mountPath: "/opt/nextcloud"
|
||||||
# # Is it ready to work?
|
# # Is it ready to work?
|
||||||
# readinessProbe:
|
# readinessProbe:
|
||||||
# tcpSocket:
|
# tcpSocket:
|
||||||
|
@ -93,14 +97,8 @@ spec:
|
||||||
# port: 443
|
# port: 443
|
||||||
# initialDelaySeconds: 15
|
# initialDelaySeconds: 15
|
||||||
# periodSeconds: 20
|
# periodSeconds: 20
|
||||||
- name: elasticsearch
|
- name: nextcloud
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.1
|
image: nextcloud:{{ .Chart.AppVersion }}
|
||||||
ports:
|
|
||||||
- containerPort: 9200
|
|
||||||
name: elastic
|
|
||||||
|
|
||||||
- name: zammad
|
|
||||||
image: index.docker.io/zammad/zammad-docker-compose:zammad-{{ .Chart.AppVersion }}
|
|
||||||
# # Wait for 10 minutes to get ready
|
# # Wait for 10 minutes to get ready
|
||||||
# startupProbe:
|
# startupProbe:
|
||||||
# httpGet:
|
# httpGet:
|
||||||
|
@ -122,7 +120,7 @@ spec:
|
||||||
# failureThreshold: 3
|
# failureThreshold: 3
|
||||||
# periodSeconds: 30
|
# periodSeconds: 30
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 80
|
||||||
name: fpm
|
name: fpm
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
|
@ -130,18 +128,6 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ tpl .Values.identifier . }}-postgres-config
|
name: {{ tpl .Values.identifier . }}-postgres-config
|
||||||
key: POSTGRES_DB
|
key: POSTGRES_DB
|
||||||
- name: ZAMMAD_TRUSTED_DOMAINS
|
|
||||||
value: "{{ tpl .Values.fqdn . }}"
|
|
||||||
- name: ZAMMAD_ADMIN_USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ tpl .Values.identifier . }}-zammad
|
|
||||||
key: USERNAME
|
|
||||||
- name: ZAMMAD_ADMIN_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ tpl .Values.identifier . }}-zammad
|
|
||||||
key: PASSWORD
|
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
@ -154,14 +140,27 @@ spec:
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
value: {{ .Release.Name }}-postgres
|
value: {{ .Release.Name }}-postgres
|
||||||
|
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
||||||
|
value: "{{ tpl .Values.fqdn . }}"
|
||||||
|
|
||||||
|
- name: NEXTCLOUD_ADMIN_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ tpl .Values.identifier . }}-nextcloud
|
||||||
|
key: USERNAME
|
||||||
|
- name: NEXTCLOUD_ADMIN_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ tpl .Values.identifier . }}-nextcloud
|
||||||
|
key: PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: zammad-data
|
- name: nextcloud-data
|
||||||
mountPath: "/var/www/html"
|
mountPath: "/var/www/html"
|
||||||
volumes:
|
volumes:
|
||||||
- name: etcletsencrypt
|
- name: etcletsencrypt
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ tpl .Values.identifier . }}-letsencrypt-certs
|
claimName: {{ tpl .Values.identifier . }}-letsencrypt-certs
|
||||||
- name: zammad-data
|
- name: nextcloud-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ tpl .Values.identifier . }}-data
|
claimName: {{ tpl .Values.identifier . }}-data
|
||||||
- name: postgres-data
|
- name: postgres-data
|
||||||
|
@ -186,7 +185,7 @@ spec:
|
||||||
- port: 443
|
- port: 443
|
||||||
name: https
|
name: https
|
||||||
selector:
|
selector:
|
||||||
app: {{ .Release.Name }}-zammad
|
app: {{ .Release.Name }}-nextcloud
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
@ -232,7 +231,7 @@ spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-zammad
|
app: {{ .Release.Name }}-nextcloud
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
|
@ -275,13 +274,13 @@ metadata:
|
||||||
secret-generator.v1.mittwald.de/autogenerate: POSTGRES_PASSWORD
|
secret-generator.v1.mittwald.de/autogenerate: POSTGRES_PASSWORD
|
||||||
stringData:
|
stringData:
|
||||||
POSTGRES_USER: "postgres"
|
POSTGRES_USER: "postgres"
|
||||||
POSTGRES_DB: "zammad"
|
POSTGRES_DB: "nextcloud"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ tpl .Values.identifier . }}-zammad
|
name: {{ tpl .Values.identifier . }}-nextcloud
|
||||||
annotations:
|
annotations:
|
||||||
secret-generator.v1.mittwald.de/autogenerate: PASSWORD
|
secret-generator.v1.mittwald.de/autogenerate: PASSWORD
|
||||||
stringData:
|
stringData:
|
||||||
USERNAME: "zammad"
|
USERNAME: "nextcloud"
|
||||||
|
|
Loading…
Reference in a new issue