added ingress for minio, and configured it for S3 storage
This commit is contained in:
+31
-13
@@ -81,7 +81,7 @@ spec:
|
||||
- name: AWS_REGION
|
||||
value: us-east-1
|
||||
- name: AWS_S3_UPLOAD_BUCKET_URL
|
||||
value: http://outline-minio:9000
|
||||
value: https://outline-minio.dooplex.hu # Changed from http://outline-minio:9000
|
||||
- name: AWS_S3_UPLOAD_BUCKET_NAME
|
||||
value: outline
|
||||
- name: AWS_S3_FORCE_PATH_STYLE
|
||||
@@ -262,18 +262,6 @@ spec:
|
||||
app.kubernetes.io/instance: outline
|
||||
app.kubernetes.io/name: minio
|
||||
spec:
|
||||
initContainers:
|
||||
- name: create-bucket
|
||||
image: busybox:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
mkdir -p /data/outline
|
||||
echo "Bucket directory created"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: minio
|
||||
image: minio/minio:latest
|
||||
@@ -437,6 +425,36 @@ spec:
|
||||
- outline.dooplex.hu
|
||||
secretName: outline-tls
|
||||
---
|
||||
# Add MinIO Ingress
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: 100m
|
||||
labels:
|
||||
app.kubernetes.io/instance: outline
|
||||
app.kubernetes.io/name: minio
|
||||
name: outline-minio
|
||||
namespace: outline-system
|
||||
spec:
|
||||
ingressClassName: nginx-internal
|
||||
rules:
|
||||
- host: outline-minio.dooplex.hu
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: outline-minio
|
||||
port:
|
||||
number: 9000
|
||||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- outline-minio.dooplex.hu
|
||||
secretName: outline-minio-tls
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
|
||||
Reference in New Issue
Block a user