Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.73 KB

RepositoryStructure.md

File metadata and controls

48 lines (37 loc) · 1.73 KB

Repository Directory Structure

apps

MetaCPAN application manifests are contained in the apps directory. Each application has its own subdirectory, within each application directory is a base/ directory to contain the application manifests. Each environment that the application is deployed to is contained in a separate directory at the same level as the base/ directory. For example:

apps/web
├── base
├── environments
│   ├── prod
│   └── stage
└── hz
  • base/ the MetaCPAN web application manifests
  • environments directories for each of the environments an application can exist in
    • prod/ kustomization manifests to apply to web manifests for the production environment
    • stage/ kustomization manifests to apply to web manifests for the stage environment
  • hz/ kustomization and manifests to apply to the hz cluster. This includes manifests like sealedsecrets that are specific to the cluster to which they're created. The kustomization file references the environments directories deployed to the cluster.

kustomization manifests are patch manifests that alter the base/ manifests for components like URLs, secrets (passwords), and configuration.

db

Database applications are shared amongst all applications within the cluster. Subdirectories within the db directory contain the manifests for these applcations. The directory structure reflects the namespaces used for the applications. For example, db/mongodb is namespace db--mongodb.

docs

Directory containing the kubernetes environment documentation (like this document).

platform

This directory contains the manifests (deployment and kustomization) for running the kubernetes environment.