enabled: false

replicaCount: 1
image:
  repository: nginx
  tag: "latest"
  pullPolicy: IfNotPresent

# command:
#   - npm
#   - -s
#   - start

env:
  WHITELIST: "*"
  CORS: "*"
  MAX_REQUEST: "0"


secret:
  SAMPLE_SECRET: "abcdefg"

config:
  SERVICE_DOMAIN: "{{SERVICE_DOMAIN}}"

service:
  type: ClusterIP
  port: 80

ingress:
  annotations:
   nginx.ingress.kubernetes.io/ssl-redirect: "true"
   nginx.ingress.kubernetes.io/rewrite-target: /$1
  hosts:
   - host: www.sample.com
     paths: ["/api/?(.*)"]
  tls:
   - secretName: SERVICE_BASE_DOMAIN_CERT
     hosts:
       - www.sample.com

readinessProbe:
  httpGet:
    path: /readiness
    port: 80
  initialDelaySeconds: 10
  periodSeconds: 5
