This commit is contained in:
2026-02-10 14:35:42 +02:00
parent 09432be8c2
commit 502f00d4e0
4 changed files with 16 additions and 24 deletions

View File

@@ -1,13 +1,10 @@
# kubectl create namespace memelord-laurivosandi
# kubectl diff -n memelord-laurivosandi -f memelord.yaml
# kubectl apply -n memelord-laurivosandi -f memelord.yaml
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment # see on stateless rakenduste jaoks kind: Deployment
metadata: metadata:
name: memelord name: memelord
spec: spec:
replicas: 1 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: memelord app: memelord
@@ -15,21 +12,15 @@ spec:
metadata: metadata:
labels: labels:
app: memelord app: memelord
spec: # SEE ON PODI LOOMISE SPEKK spec:
containers: containers:
- name: memelord - name: memelord
# image: codemowers/memelord:latest
image: ghcr.io/l4rm4nd/memelord:latest image: ghcr.io/l4rm4nd/memelord:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- name: http - name: http
containerPort: 8000 containerPort: 8000
env: env:
- name: AWS_S3_ADDRESSING_STYLE
value: path
- name: DOMAIN - name: DOMAIN
value: memelord-laurivosandi.ee-lte-1.codemowers.io value: memelord-laurivosandi.ee-lte-1.codemowers.io
- name: DB_ENGINE - name: DB_ENGINE
@@ -61,8 +52,10 @@ spec:
key: redis-password key: redis-password
- name: STORAGE_BACKEND - name: STORAGE_BACKEND
value: s3 value: s3
- name: CSP_IMG_SRC_EXTRA
value: https://minio.ee-lte-1.codemowers.io
- name: AWS_QUERYSTRING_AUTH
value: "true"
# S3/MinIO Storage Configuration # S3/MinIO Storage Configuration
- name: STORAGE_BACKEND - name: STORAGE_BACKEND
value: "s3" value: "s3"
@@ -76,21 +69,20 @@ spec:
secretKeyRef: secretKeyRef:
name: memelord-laurivosandi-bucket name: memelord-laurivosandi-bucket
key: secretKey key: secretKey
- name: AWS_S3_CUSTOM_DOMAIN
value: minio.ee-lte-1.codemowers.io
- name: AWS_STORAGE_BUCKET_NAME - name: AWS_STORAGE_BUCKET_NAME
value: "memelord-laurivosandi" value: "memelord-laurivosandi"
- name: AWS_S3_ENDPOINT_URL
value: "https://minio.ee-lte-1.codemowers.io"
- name: AWS_S3_REGION_NAME - name: AWS_S3_REGION_NAME
value: "ee-lte-1" value: "ee-lte-1"
- name: AWS_S3_ENDPOINT_URL
value: "https://minio.ee-lte-1.codemowers.io"
- name: AWS_LOCATION
value: "" # why is this set to 'media' in original?
- name: AWS_S3_ADDRESSING_STYLE
value: path
- name: DEBUG - name: DEBUG
value: "True" value: "True"
- name: SECURE_COOKIES - name: SECURE_COOKIES
value: "True" value: "True"
- name: OIDC_ENABLED - name: OIDC_ENABLED
value: "True" value: "True"
- name: OIDC_RP_SIGN_ALGO - name: OIDC_RP_SIGN_ALGO

View File

@@ -51,7 +51,7 @@ metadata:
name: memelord-laurivosandi name: memelord-laurivosandi
spec: spec:
displayName: Memelord laurivosandi displayName: Memelord laurivosandi
uri: https://memelord-laurivosandi.ee-lte-1.codemowers.io/ uri: https://memelord-laurivosandi.ee-lte-1.codemowers.io/oidc/authenticate/
redirectUris: redirectUris:
- https://memelord-laurivosandi.ee-lte-1.codemowers.io/oidc/callback/ - https://memelord-laurivosandi.ee-lte-1.codemowers.io/oidc/callback/
grantTypes: grantTypes:

View File

@@ -18,7 +18,7 @@ kind: Cluster
metadata: metadata:
name: memelord-laurivosandi-database name: memelord-laurivosandi-database
spec: spec:
instances: 1 instances: 2
imageName: ghcr.io/cloudnative-pg/postgresql:17 imageName: ghcr.io/cloudnative-pg/postgresql:17
storage: storage:
size: 1Gi size: 1Gi

View File

@@ -18,7 +18,7 @@ spec:
passwordFromSecret: passwordFromSecret:
name: memelord-laurivosandi-redis name: memelord-laurivosandi-redis
key: redis-password key: redis-password
replicas: 1 replicas: 2
resources: resources:
requests: requests:
cpu: 500m cpu: 500m