Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .holo/branches/k8s-manifests/balancer/app/manifests.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[holomapping]
holosource = "balancer"
root = "deploy/manifests/balancer/base"
files = [
"namespace.yaml",
"deployment.yaml",
"service.yaml",
]
# Excludes the upstream `ingress.yaml` (replaced by per-cluster
# _gateways/balancer.yaml) and `kustomization.yaml` (we compose our
# own at balancer/app/kustomization.yaml).
4 changes: 0 additions & 4 deletions .holo/branches/k8s-manifests/balancer/manifests.toml

This file was deleted.

2 changes: 1 addition & 1 deletion .holo/sources/balancer.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[holosource]
url = "https://github.com/CodeForPhilly/balancer-main.git"
ref = "refs/tags/v1.1.3"
ref = "refs/tags/v1.1.5"
36 changes: 36 additions & 0 deletions _gateways/balancer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: balancer
namespace: balancer
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
gatewayClassName: eg
listeners:
- name: https
protocol: HTTPS
port: 443
hostname: balancer.sandbox.k8s.phl.io
tls:
mode: Terminate
certificateRefs:
- name: balancer-gw-tls
allowedRoutes:
namespaces:
from: Same
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: balancer
namespace: balancer
spec:
parentRefs:
- name: balancer
hostnames:
- balancer.sandbox.k8s.phl.io
rules:
- backendRefs:
- name: balancer
port: 8000
13 changes: 13 additions & 0 deletions balancer/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: balancer

resources:
- manifests/namespace.yaml
- manifests/deployment.yaml
- manifests/service.yaml

images:
- name: ghcr.io/codeforphilly/balancer-main/app
newTag: "0.0.0-dev.20260211012449"
10 changes: 10 additions & 0 deletions balancer/cnpg/database.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
name: balancer
namespace: cloudnative-pg
spec:
name: balancer
owner: balancer
cluster:
name: shared-cluster
8 changes: 8 additions & 0 deletions balancer/cnpg/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# No namespace — database.yaml declares its own (cloudnative-pg). cnpg
# requires the Database CR to live in the same namespace as the Cluster
# it targets, so we keep it out of the balancer-app rewrite.
resources:
- database.yaml
25 changes: 7 additions & 18 deletions balancer/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: balancer

# No namespace here — each sub-kustomization sets its own:
# - app/ rewrites resources to `balancer`
# - cnpg/ leaves Database CR in its own `cloudnative-pg` namespace
# kustomize emits a single stream; k8s-normalize routes by each
# resource's metadata.namespace at deploy time.
resources:
- manifests/namespace.yaml
- manifests/deployment.yaml
- manifests/service.yaml

images:
- name: ghcr.io/codeforphilly/balancer-main/app
newTag: "0.0.0-dev.20260211012449"

patches:
- target:
kind: Namespace
name: balancer
patch: |-
- op: replace
path: /metadata/name
value: dev
- app
- cnpg