apiVersion: apps/v1
kind: Deployment
metadata:
  name: authserver-central
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: authserver-central
  template:
    metadata:
      labels:
        app.kubernetes.io/name: authserver-central
    spec:
      containers:
        - name: authserver-central
          image: cp9.local/authserver-central:placeholder
          args: ["http"]
          ports:
            - name: http
              containerPort: 8080
          env:
            - name: DB_PASSWORD
              value: cp9-local
          volumeMounts:
            - name: dbaas-authserver-config
              mountPath: /etc/dbaas
      volumes:
        - name: dbaas-authserver-config
          configMap:
            name: authserver-central-conf
