# $ kubectl create -f mysql-rs.yaml
apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: mysql-rs
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mysql
  template:
    metadata:
      labels:
        app: mysql
    spec:
      containers:
        - name: mysql-c
          image: mysql:8
          env:
            - name: MYSQL_ROOT_PASSWORD
              value: "123456"