Skip to content

Conversation

@MinhSon86
Copy link

@MinhSon86 MinhSon86 commented Nov 17, 2025

This pull request adds a complete set of Kubernetes manifests to deploy a WordPress application backed by a MySQL database, including persistent storage, secrets management, and ingress configuration. The changes enable secure and scalable deployment of WordPress in a dedicated namespace, with proper separation of resources and access.

WordPress and MySQL Deployment

  • Added wordpress.yaml manifest to deploy WordPress using a Deployment, expose it via a Service, and persist content with a PersistentVolumeClaim (wordpress-pvc). Environment variables for database connection are securely sourced from secrets.
  • Added mysql-deployment.yaml manifest to deploy MySQL with a Deployment, expose it via a Service, and persist data using a PersistentVolumeClaim (mysql-pvc). Database credentials are managed through Kubernetes secrets.

Persistent Storage Configuration

  • Added mysql-pv-pvc.yaml manifest to define a PersistentVolume and PersistentVolumeClaim for MySQL data, ensuring database persistence across pod restarts.

Secrets Management

  • Added mysql-secret.yaml manifest to securely store MySQL root and user passwords as Kubernetes secrets, referenced by both WordPress and MySQL deployments.

Ingress Setup

  • Added ingress.yaml manifest to expose the WordPress service externally via an NGINX ingress, mapping the hostname wordpress.local to the WordPress service.

@MinhSon86 MinhSon86 changed the title Feature/wordpress ingress fix Feature/wordpress ingress Nov 17, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we have this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mấy file này e tạo thừa lúc tạo folder để đẩy lên git

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we have this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we have this?

@MinhSon86 MinhSon86 changed the title Feature/wordpress ingress Feature-Son/wordpress ingress Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants