Kubernetes Configurations Structure
A scalable and maintainable folder structure for Kubernetes configurations
File Structure
- k8s
- deployment.yaml
- service.yaml
- configmap.yaml
- secret.yaml
- README.md
Directory Structure Explanation
k8s/
Contains all Kubernetes manifest files for deploying applications to a cluster.
deployment.yaml
Defines how to deploy and manage application pods in the Kubernetes cluster.
service.yaml
Exposes the application pods and provides network access within the cluster.
configmap.yaml
Stores configuration data that can be consumed by pods as environment variables or files.
secret.yaml
Stores sensitive data like passwords, tokens, and keys in an encrypted format.