To store some kubernetes example configurations, including most of resources.
Kustomize is a native configuration management.
It introduces a template-free way to customize application configuration that simplifies the use of off-the-shelf applications.
/kustomize
shows how to use it for base and overlay configuration management.
To demonstrate how to configure a general-purpose Web application, here is a set of configuration files in /wordpress-mysql
that contain the scalable Deployment, the Ingress Service that exposes the service, and PV and PVC that provide persistent storage that most Of the Web should use.
StatefulSet is a less common resource that provides scalable persistent storage applications.
A typical scenario is to deploy a master-slave database, that each instance has a separate storage and can be easily scaled.
/ms-redis
shows how to use StatefulSet and also how to use initContainers to configure master and slave applications.