Skip to content

Commit

Permalink
feat(iac): add production configuration for pizza time
Browse files Browse the repository at this point in the history
  • Loading branch information
gm112 committed Jan 18, 2025
1 parent 9a63a28 commit 22a3341
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 40 deletions.
8 changes: 7 additions & 1 deletion iac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Pizza.

- [ZFGBB IaC (Infrastructure as Code)](#zfgbb-iac-infrastructure-as-code)
- [Table of Contents](#table-of-contents)
- [Projects](#projects)
- [Environment Setup](#environment-setup)
- [Development Process](#development-process)
- [Scripts](#scripts)
Expand All @@ -19,6 +20,10 @@ Pizza.
- [Domain Structure](#domain-structure)
- [Notes](#notes)

## Projects

- [zfgc.com](./zfgc.com/README.md)

## Environment Setup

To setup your environment, follow the [setup instructions](../README.md#setup) in the main README.
Expand Down Expand Up @@ -107,11 +112,12 @@ domain-name.tld
│ │ ├── deployment.yml
│ │ ├── kustomization.yml
│ │ ├── service.yml
│ │ ├── secret-[dependency-service-A].yml
├── scripts
│ ├── setup-environment-files.sh
```

## Notes

Regarding the [Domain Structure](#domain-structure), for now, we're slightly breaking the convention and including `crystalrookarts` and legacy zfgc.com services under the `old-skool` service. This is because we're still using the old zfgc.com domain for legacy services, and we want to keep the domain name consistent. This will be addressed in the future.

For more details, see the [ZFGBB IaC README](./zfgc.com/README.md).
32 changes: 32 additions & 0 deletions iac/zfgc.com/environments/main/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace: zfgbb-main

resources:
- namespace.yml
- ../../base
- ../../services/zfgbb
- ../../services/old-skool

configMapGenerator:
- behavior: merge
envs:
- .env
name: old-skool-config
- behavior: merge
envs:
- .env
name: zfgbb-config

secretGenerator:
- behavior: merge
envs:
- .env
name: old-skool-secrets
type: Opaque
- behavior: merge
envs:
- .env.secret
name: zfgbb-secrets
type: Opaque

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
4 changes: 4 additions & 0 deletions iac/zfgc.com/environments/main/namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: zfgbb-main
39 changes: 0 additions & 39 deletions iac/zfgc.com/environments/production/kustomization.yml

This file was deleted.

0 comments on commit 22a3341

Please sign in to comment.