name: front-idm-micro

replicaCount: 1

resources:
  requests:
    memory: '100Mi'
    cpu: '50m'
  limits:
    memory: '512Mi'
    cpu: '1'

env:
  - name: SSO_AUTH
    value: '{{ $.Values.sso.auth }}'
  - name: SSO_UI
    value: '{{ $.Values.sso.ui }}'
  - name: SHOW_LOGIN
    value: '{{ $.Values.extra_options.show_login }}'
  - name: VUE_APP_TARGET
    value: 'ervu'

ports:
  - name: http
    containerPort: 80

services:
  - name: '{{ $.Values.name }}'
    type: ClusterIP
    ports:
      - name: http
        port: 80
        targetPort: http

sso:
  auth: ''
  ui: ''

extra_options:
  show_login: 'true'

ingress:
- name: '{{ $.Values.name }}'
  annotations:
    mon/group: microarm
    mon/path: /front-idm-micro/health
    nginx.ingress.kubernetes.io/rewrite-target: /$2
  labels:
    app/name: front-idm-micro
    appID: '0'
    mon/enable: 'true'
    mon/project: ARM
    orgID: ''
  rules:
  - host: '{{ $.Values.ingress_base_host_sso }}'
    http:
      paths:
      - path: /front-idm-micro(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: '{{ $.Values.name }}'
            port:
              name: http
