---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: "{name}"
spec:
  selector:
    matchLabels:
      app: "{name}"
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: "{name}"
    spec:
      containers:
      - image: mysql:5.6
        name: mysql
        env:
          # Use secret in real usage
        - name: MYSQL_ROOT_PASSWORD
          value: "{mysql_password}"
        ports:
        - containerPort: 3306
          name: mysql

