Deploys Nextcloud with an FPM-alpine image and Caddy sidecar for web serving. Integrates an external CloudNativePG cluster for PostgreSQL database. Utilizes an external Valkey instance for caching. Configures S3-compatible object storage for file data. Includes an initialization job to create admin and Valkey secrets. Sets up Ingress for external access with TLS via cert-manager.
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
a8r.io/repository: ssh://git@git.tr1ceracop.de:222/gitea_admin/k8s-and-chill.git
|
|
labels:
|
|
app.kubernetes.io/instance: nextcloud
|
|
app.kubernetes.io/name: valkey
|
|
name: nextcloud-valkey
|
|
namespace: nextcloud
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: nextcloud
|
|
app.kubernetes.io/name: valkey
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/instance: nextcloud
|
|
app.kubernetes.io/name: valkey
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- valkey-server
|
|
- --requirepass
|
|
- $(VALKEY_PASSWORD)
|
|
env:
|
|
- name: VALKEY_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: password
|
|
name: nextcloud-valkey-password
|
|
image: valkey/valkey:8-alpine
|
|
livenessProbe:
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
tcpSocket:
|
|
port: valkey
|
|
name: valkey
|
|
ports:
|
|
- containerPort: 6379
|
|
name: valkey
|
|
protocol: TCP
|
|
readinessProbe:
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
tcpSocket:
|
|
port: valkey
|
|
resources:
|
|
limits:
|
|
memory: 128Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|