Common Kubernetes objects for a WordPress site
- Deployment (for Pods such as MySQL and the web server)
- PersistentVolume (PV) and PersistentVolumeClaim (PVC) for database storage
- Service to expose the web server
- Secret to store sensitive credentials (admin password, API keys)
- Jobs, CronJobs, or backup resources for maintenance tasks
Below are example manifests for these objects and the kubectl commands to apply them. These examples show the manual, file-per-object approach that becomes hard to maintain across upgrades.
Example Secret (base64-encoded data)
data: in a Secret, values must be base64-encoded (for example: echo -n 'your-password' | base64).
Example Service
selector labels match the Pod template labels and that the Service port aligns with the container’s exposed port.
Example PersistentVolumeClaim
Example Deployment
Example PersistentVolume
Example multi-document YAML (single file)
What Helm solves
Helm reframes a Kubernetes application as a single package — a chart — that groups related manifests and exposes configuration points through avalues.yaml. Helm is often described as the package manager for Kubernetes because it automates installing, upgrading, and uninstalling collections of Kubernetes resources as a single release.
Benefits of using Helm:
- Package multiple Kubernetes manifests as a chart
- Centralize configuration in
values.yaml - Install, upgrade, rollback, and uninstall via simple commands
- Track release revisions, enabling safe rollbacks
- Reuse charts across environments (dev/stage/prod) by supplying different values files
Centralized configuration example (values.yaml)
Common Helm commands
Helm tracks releases and revisions. That lets you upgrade or rollback an application with a single command instead of manually editing multiple manifests. Helm also handles uninstalling by removing all objects that were part of a release.
values.yaml schema, and practical workflows for installing, upgrading, and rolling back releases.