kube-exam/helm/values.yaml

97 lines
1.9 KiB
YAML

tls:
enabled: true
ingress:
className: ""
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-exam.local
paths:
- path: /()(.*)
pathType: ImplementationSpecific
name: "client"
port: 8080
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
name: "api"
port: 5000
tls:
- secretName: exam-crt
hosts:
- kube-exam.local
services:
- api:
name: "api"
tier: "backend"
port: 5000
target: 0
type: ClusterIP
- postgres:
name: "db"
tier: "backend"
port: 5432
target: 0
type: ClusterIP
- client:
name: "client"
tier: "frontend"
port: 8080
target: 80
type: ClusterIP
secrets:
password: "username"
username: "password1234"
pvc:
class: local-storage
request: 1Gi
deployments:
- api:
name: "api"
tier: "backend"
env:
nonsecrets:
app-settings: src.config.ProductionConfig
database-url: postgresql://$(POSTGRES_USER):$(POSTGRES_PASS)@api-db/$(POSTGRES_DB)
port: "5000"
postgres-db: api-db
secrets:
postgres-password: password
postgres-user: username
image:
repository: api
tag: prod
port: 5000
replicas: 3
- client:
tier: "frontend"
name: "client"
image:
repository: client
tag: prod
port: 8080
replicas: 1
- db:
tier: "backend"
name: "db"
env:
nonsecrets:
pgdata: /var/lib/postgresql/data/pgdata
postgresDb: db
secrets:
postgres-password: password
postgres-user: username
image:
repository: db
tag: 13.3
port: 5432
replicas: 1
mountPath: /var/lib/postgresql/data
storage: postgres-pv-storage