aac1b654bb
What changed: - Adds new v3 API and UI deployments (separate api-deployment.yaml, ui-deployment.yaml) alongside the existing monolithic artifactapi-deployment.yaml - Adds CNPG PostgreSQL cluster + pooler to replace the standalone postgres deployment - Adds new api-env configmap, new Vault secrets (postgres-credentials, environment), and a second VaultAuth (default1) - Adds new services targeting the split api and ui selectors - Adds HPAs for both new deployments - Updates kustomization to include all new resources --------- Co-authored-by: Ben Vincent <ben@unkin.net> Reviewed-on: #197
45 lines
985 B
YAML
45 lines
985 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: artifactapi-env
|
|
namespace: artifactapi
|
|
data:
|
|
CONFIG_PATH: /etc/artifactapi/conf.d/
|
|
DBHOST: postgres-service
|
|
DBNAME: artifacts
|
|
DBPORT: "5432"
|
|
DBUSER: artifacts
|
|
MINIO_BUCKET: artifactapi
|
|
MINIO_ENDPOINT: radosgw.service.consul
|
|
MINIO_SECURE: "true"
|
|
REDIS_URL: redis://redis-service:6379
|
|
REQUESTS_CA_BUNDLE: /etc/pki/tls/certs/ca-bundle.crt
|
|
SSL_CERT_FILE: /etc/pki/tls/certs/ca-bundle.crt
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: postgres-env
|
|
namespace: artifactapi
|
|
data:
|
|
POSTGRES_DB: artifacts
|
|
POSTGRES_USER: artifacts
|
|
###
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: api-env
|
|
namespace: artifactapi
|
|
data:
|
|
DBHOST: postgres-pooler
|
|
DBNAME: artifacts
|
|
DBPORT: "5432"
|
|
DBUSER: artifacts
|
|
MINIO_BUCKET: artifactapi-prod-k8s-syd1-au
|
|
MINIO_ENDPOINT: radosgw.service.consul
|
|
MINIO_SECURE: "true"
|
|
REDIS_URL: redis://redis:6379
|
|
SSL_CERT_FILE: /etc/ssl/combined/ca-certificates.crt
|