PHP Classes

File: deploy/mysql/mysql-deployment.yaml

Recommend this page to a friend!
  Classes of Nahidul Hasan  >  Laravel Docker Kubernetes  >  deploy/mysql/mysql-deployment.yaml  >  Download  
File: deploy/mysql/mysql-deployment.yaml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Docker Kubernetes
Run a Laravel project using Docker and Kubernetes
Author: By
Last change:
Date: 6 months ago
Size: 701 bytes
 

Contents

Class file image Download
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: mysql-quest-pod
  namespace: quests-staging-svc
spec:
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: mysql-quest-pod
    spec:
      containers:
      - image: mysql:5.6
        name: mysql
        env:
          # Use secret in real usage
        - name: MYSQL_ROOT_PASSWORD
          value: c0mm0nZaq123useer
        ports:
        - containerPort: 3306
          name: mysql
        volumeMounts:
        - name: mysql-persistent-storage
          mountPath: /var/lib/mysql
      volumes:
      - name: mysql-persistent-storage
        persistentVolumeClaim:
          claimName: mysql-quest-pv-claim
For more information send a message to info at phpclasses dot org.