apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: tidb-mgmt-service
spec:
  template:
    spec:
      containers:
        - name: tidb-mgmt-service
          volumeMounts:
            - name: tidb-mgmt-service-config
              mountPath: /etc/tidb-mgmt-service/config.yaml
              subPath: config.yaml
              readOnly: true
      volumes:
        - name: tidb-mgmt-service-config
          configMap:
            name: tidb-mgmt-service-config
