--- apiVersion: apps/v1 kind: Deployment metadata: name: mysql-exporter-wfmmysqlmaster namespace: wfm spec: progressDeadlineSeconds: 600 replicas: 1 selector: matchLabels: k8s-app: mysql-exporter-wfmmysqlmaster strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: app_name: mysql-wfm-prod-master app_describle: 10.10.33.131:3306 prometheus.com/path: /metrics prometheus.com/port: '9104' prometheus.com/scheme: http prometheus.com/scraped: 'true' labels: k8s-app: mysql-exporter-wfmmysqlmaster spec: containers: - env: - name: MYSQLD_EXPORTER_PASSWORD value: "u3FEzeuYM7oq" image: harbor.uenpay.com/base/mysqld-exporter imagePullPolicy: Always name: mysql-exporter-wfmmysqlmaster args: - '--mysqld.address=10.10.33.131:3306' - '--mysqld.username=dbmonitor' ports: - containerPort: 9104 name: metrics protocol: TCP dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30