apiVersion: apps/v1
kind: Deployment
metadata: # kpt-merge: /dex
  labels:
    app: dex
  name: dex
  annotations:
    internal.kpt.dev/upstream-identifier: 'apps|Deployment|default|dex'
spec:
  selector:
    matchLabels:
      app: dex
  template:
    metadata:
      labels:
        app: dex
    spec:
      serviceAccountName: dex
      containers:
        - name: dex
          image: ghcr.io/dexidp/dex:v2.35.0
          args:
            - dex
            - serve
            - /data/config.yaml
          ports:
            - name: http
              containerPort: 5556
          volumeMounts:
            - mountPath: /data
              name: config
      volumes:
        - name: config
          configMap:
            name: dex
