feat: serve Belki images through private MinIO
This commit is contained in:
1 parent
b45e4925a6
commit
ecc1f696da
14 files changed
+196
-121
No files matched your search
@@ -123,8 +123,18 @@ spec:
|
||||
secretKeyRef:
|
||||
name: belki-runtime
|
||||
key: BELKI_ADMIN_PASSWORD
|
||||
- name: BELKI_IMAGE_HOST_API_URL
|
||||
value: https://nyan.nyan404.ru
|
||||
- name: BELKI_S3_ENDPOINTS
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_ENDPOINTS}}
|
||||
- name: BELKI_S3_ACCESS_KEY
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_ACCESS_KEY}}
|
||||
- name: BELKI_S3_SECRET_KEY
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_SECRET_KEY}}
|
||||
- name: BELKI_S3_BUCKET
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_BUCKET}}
|
||||
- name: BELKI_IMAGE_PUBLIC_URL
|
||||
value: https://cat.nyan404.ru
|
||||
- name: BELKI_S3_SECURE
|
||||
value: "false"
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
@@ -204,6 +214,16 @@ spec:
|
||||
secretKeyRef:
|
||||
name: belki-runtime
|
||||
key: BELKI_DATABASE_URL
|
||||
- name: BELKI_IMAGE_HOST_API_URL
|
||||
value: https://nyan.nyan404.ru
|
||||
- name: BELKI_S3_ENDPOINTS
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_ENDPOINTS}}
|
||||
- name: BELKI_S3_ACCESS_KEY
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_ACCESS_KEY}}
|
||||
- name: BELKI_S3_SECRET_KEY
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_SECRET_KEY}}
|
||||
- name: BELKI_S3_BUCKET
|
||||
valueFrom: {secretKeyRef: {name: belki-image-store, key: BELKI_S3_BUCKET}}
|
||||
- name: BELKI_IMAGE_PUBLIC_URL
|
||||
value: https://cat.nyan404.ru
|
||||
- name: BELKI_S3_SECURE
|
||||
value: "false"
|
||||
# production.yaml defines the production production resource; keep namespace and secret references aligned with belki.
|
||||
@@ -11,4 +11,17 @@ stringData:
|
||||
BELKI_DATABASE_URL: postgresql://belki:replace-out-of-band@postgres:5432/belki
|
||||
POSTGRES_PASSWORD: replace-out-of-band
|
||||
BELKI_ADMIN_PASSWORD: replace-out-of-band
|
||||
# Create separately as `belki-image-store`; do not add these values to CI-managed belki-runtime.
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: belki-image-store
|
||||
namespace: belki
|
||||
type: Opaque
|
||||
stringData:
|
||||
BELKI_S3_ENDPOINTS: 10.18.0.50:9000,10.18.0.51:9000,10.18.0.52:9000,10.18.0.53:9000,10.18.0.55:9000
|
||||
BELKI_S3_ACCESS_KEY: replace-out-of-band
|
||||
BELKI_S3_SECRET_KEY: replace-out-of-band
|
||||
BELKI_S3_BUCKET: belki-images
|
||||
# secret.example.yaml defines the secret.example production resource; keep namespace and secret references aligned with belki.
|
||||
Reference in new issue
Block a user