mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-18 02:22:56 +02:00
Add bucket envs and ingress for museum
This commit is contained in:
@@ -29,6 +29,21 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: ente-photos-config
|
name: ente-photos-config
|
||||||
key: pgpass
|
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
|
image: ghcr.io/ente-io/server
|
||||||
name: museum
|
name: museum
|
||||||
# command: [ "sh", "-c"]
|
# command: [ "sh", "-c"]
|
||||||
|
|||||||
@@ -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,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: museum
|
name: ente-service
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: ente
|
app: ente
|
||||||
|
|||||||
Reference in New Issue
Block a user