Add bucket envs and ingress for museum

This commit is contained in:
Ruben Hensen
2024-09-12 16:20:59 +02:00
parent 02749288d5
commit 8eb46e9a4b
3 changed files with 49 additions and 1 deletions
+15
View File
@@ -29,6 +29,21 @@ spec:
secretKeyRef:
name: ente-photos-config
key: pgpass
- name: ENTE_S3_ARE_LOCAL_BUCKETS
value: "false"
- name: ENTE_S3_ENTE-PHOTOS_KEY
value: "ente-photos-user"
- name: ENTE_S3_ENTE-PHOTOS_SECRET
valueFrom:
secretKeyRef:
name: ente-photos-config
key: miniopass
- name: ENTE_S3_ENTE-PHOTOS_ENDPOINT
value: "minio.hensen.io:3200"
- name: ENTE_S3_ENTE-PHOTOS_REGION
value: "nl"
- name: ENTE_S3_ENTE-PHOTOS_BUCKET
value: "ente-photos"
image: ghcr.io/ente-io/server
name: museum
# command: [ "sh", "-c"]
+33
View File
@@ -0,0 +1,33 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ente-server-ingress
annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /
cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
# then you need to force the nginx ingress to connect to the backend using HTTPS.
#
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
namespace: ente-photos
spec:
ingressClassName: nginx
rules:
- host: argocd.hensen.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ente-service
port:
name: "8080"
# TLS configuration for HTTPS
tls:
# TLS secretName used on ClusterIssuer
- secretName: letsencrypt-prod
hosts:
- ente-server.hensen.io
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: museum
name: ente-service
spec:
selector:
app: ente