apiVersion: apps/v1
kind: Deployment
metadata:
  name: dex
  namespace: sso
spec:
  selector:
    matchLabels:
      app: dex
  replicas: 1
  template:
    metadata:
      labels:
        app: dex
    spec:
      containers:
      - name: dex
        image: registry.gitlab.com/target-digital-transformation/sso:3.7.2
        command: 
         - dex
         - serve 
         - /usr/local/config/config.yaml
        ports:
        - containerPort: 5556
        - containerPort: 5557
        volumeMounts:
        - name: sso-config
          mountPath: /usr/local/config/config.yaml
          subPath: config.yaml
      volumes:
        - name: sso-config
          configMap:
            name: sso-config
      imagePullSecrets:
      - name: registry.gitlab.com
