apiVersion: apps/v1
kind: Deployment
metadata:
  name: configurator
  namespace: configurator
spec:
  selector:
    matchLabels:
      app: configurator
  replicas: 1
  template:
    metadata:
      labels:
        app: configurator
    spec:
      containers:
      - name: configurator
        image: registry.gitlab.com/target-digital-transformation/subscription-store:4.12.2
        command: 
         - /usr/local/bin/subscription-store 
         - serve
         - --address=:9302
         - --grpc-address=:9301
         - --ac-grpc=grpc.ac:7001
         - --profile-grpc=profile.profile:50051
         - --dsn=postgres://postgres:password@postgres.postgres/configurator?sslmode=disable
         - --oidc=http://dex.sso:5556
         - --cors-hosts=*
         - --redis-addr=redis.redis:6379
         - --license-grpc=license.license:16000
         - --rabbitmq-dsn=amqp://guest:guest@rabbitmq.rabbitmq:5672/
        ports:
        - containerPort: 9301
        - containerPort: 9302
        env:
        - name: MEERA_APP_PRODUCT_WORKSPACE_URL
          value: "http://127.0.0.1:9302"
        - name: TARGET_CONFIGURATOR_SUPER_ADMIN
          value: "CiQwOGE4Njg0Yi1kYjg4LTRiNzMtOTBhOS0zY2QxNjYxZjU0NjYSBWxvY2Fs"
        - name: CLIENT_ID
          value: "configurator"
        - name: CLIENT_SECRET
          value: "CEmDmDPI10s3gaKKID4tFhqgW8V3wjAa"
      imagePullSecrets:
      - name: registry.gitlab.com
