kube-exam/helm/values.yaml

84 lines
1.5 KiB
YAML

tls:
enabled: true
host: kube.slc.ar
ingress:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
hosts:
- host: kube.slc.ar
paths:
- path: /()(.*)
name: "client"
port: 8080
- path: /api(/|$)(.*)
name: "api"
port: 5000
tls:
- secretName: exam-crt
hosts:
- kube.slc.ar
services:
- api:
name: "api"
tier: "backend"
port: 5000
- client:
name: "client"
tier: "frontend"
port: 8080
target: 80
- postgres:
name: "db"
tier: "backend"
port: 5432
# secrets.yaml
secrets:
username: "username"
password: "password1234"
database-url: "postgresql://username:password1234@exam-db/api_prod"
pvc:
class: local-storage
request: 1Gi
deployments:
- api:
name: "api"
tier: "backend"
env:
app-settings: src.config.ProductionConfig
port: "5000"
secrets:
database-url: database-url
image:
repository: api
tag: prod
port: 5000
- client:
tier: "frontend"
name: "client"
image:
repository: client
tag: prod
port: 8080
replicas: 3
- db:
tier: "backend"
name: "db"
env:
pgdata: /var/lib/postgresql/data/pgdata
secrets:
postgres-password: password
postgres-user: username
image:
repository: db
tag: 13.3
port: 5432
mountPath: /var/lib/postgresql/data
storage: postgres-pv-storage