kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.46k stars 14.36k forks source link

Missing Persistent Volume and Storage Class Configuration in MySQL-WordPress Tutorial #46814

Open lsdeva opened 3 months ago

lsdeva commented 3 months ago

The current MySQL-WordPress tutorial does not include the necessary steps for creating Persistent Volumes (PVs) and defining the storage class. This can lead to Persistent Volume Claims (PVCs) remaining in a Pending state due to the absence of available PVs with the required storage class.

Create Persistent Volumes (PVs) with the Standard Storage Class:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: mysql-pv
spec:
  capacity:
    storage: 20Gi
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  storageClassName: standard
  hostPath:
    path: /mnt/data/mysql
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: wordpress-pv
spec:
  capacity:
    storage: 20Gi
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  storageClassName: standard
  hostPath:
    path: /mnt/data/wordpress

Define Persistent Volume Claims (PVCs) with Matching Storage Class:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: mysql-pv-claim
  labels:
    app: wordpress
spec:
  accessModes:
    - ReadWriteOnce
  **storageClassName: standard**
  resources:
    requests:
      storage: 20Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: wp-pv-claim
  labels:
    app: wordpress
spec:
  accessModes:
    - ReadWriteOnce
  **storageClassName: standard**
  resources:
    requests:
      storage: 20Gi
k8s-ci-robot commented 3 months ago

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
thisisharrsh commented 3 months ago

/language en /sig docs

thisisharrsh commented 3 months ago

Page related to the issue : https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/ /sig storage

sftim commented 3 months ago

I'm confident that the tutorial needs an update; maybe we should split it into two tutorials:

How does that sound? This could be quite a bit of work.

lsdeva commented 3 months ago

+1

Thanks Deva

On Tue, 18 Jun 2024, 20:23 Tim Bannister, @.***> wrote:

I'm confident that the tutorial needs an update; maybe we should split it into two tutorials:

  • setting up a storage driver, defining a StorageClass and making an initial PersistentVolume
  • working with PVCs and deploying a sample workload

How does that sound? This could be quite a bit of work.

— Reply to this email directly, view it on GitHub https://github.com/kubernetes/website/issues/46814#issuecomment-2175971374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPYD5LVL4DX4NC2MG4LGRDZIARCRAVCNFSM6AAAAABJJN3CNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZVHE3TCMZXGQ . You are receiving this because you authored the thread.Message ID: @.***>

k8s-triage-robot commented 2 weeks ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale