Portworx Documentation has moved to https://docs.portworx.com
Portworx Enterprise version 2.13 has reached end of life and end of extended maintenance. Refer to the release support policy doc here.
Upgrade to the latest version of Portworx Enterprise for continued support. Documentation for the latest version of Portworx Enterprise can be found here.
Upgrade to the latest version of Portworx Enterprise for continued support. Documentation for the latest version of Portworx Enterprise can be found here.
Example application
Example PVC and Application
Create and apply the following
pvc.yaml
file:kind: PersistentVolumeClaim apiVersion: v1 metadata: name: mysql-data annotations: volume.beta.kubernetes.io/storage-class: px-storage spec: accessModes: - ReadWriteOnce resources: requests: storage: 2Gi
Create and apply the following
mysql.yaml
file:apiVersion: apps/v1 kind: Deployment metadata: name: mysql spec: strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate replicas: 1 selector: matchLabels: app: mysql template: metadata: labels: app: mysql version: "1" spec: containers: - image: mysql:5.6 name: mysql env: - name: MYSQL_ROOT_PASSWORD value: password ports: - containerPort: 3306 volumeMounts: - name: mysql-persistent-storage mountPath: /var/lib/mysql volumes: - name: mysql-persistent-storage persistentVolumeClaim: claimName: mysql-data
Last edited: Tuesday, May 16, 2023
Questions? Visit the Portworx forum.