apiVersion: apps/v1
kind: Deployment
metadata:
  name: mariadb-world
spec:
  selector:
    matchLabels:
      app: mariadb-world
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: mariadb-world
    spec:
      containers:
      - image: mariadb:latest
        name: mariadb-world
        env:
          # Use secret in real usage
        - name: MYSQL_ROOT_PASSWORD
          value: skcc
        ports:
        - containerPort: 3306
          name: mariadb-world
        imagePullPolicy: IfNotPresent
