kube-exam/helm/values.yaml

95 lines
1.8 KiB
YAML

tls:
enabled: true
host: kube.slc.ar
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.slc.ar
paths:
- path: /()(.*)
pathType: ImplementationSpecific
name: "client"
port: 8080
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
name: "api"
port: 5000
tls:
- secretName: exam-crt
hosts:
- kube.slc.ar
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:
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:
nonsecrets:
app-settings: src.config.ProductionConfig
port: "5000"
secrets:
database-url: database-url
image:
repository: api
tag: prod
port: 5000
replicas: 1
- 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
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