Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add {bvg,db}-rest, connect *-rest to Redis #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion kubernetes/apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ resources:
- bahn-guru
- link-bahn-guru
- example-app
# - v5-vbb-transport-rest
- v6-bvg-transport-rest
- v6-db-transport-rest
- v6-vbb-transport-rest
- umami
- chore-score-bot
- travel-price-map-redirects
38 changes: 38 additions & 0 deletions kubernetes/apps/v6-bvg-transport-rest/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: v6-bvg-transport-rest
namespace: app-releases
spec:
chart:
spec:
chart: simple-app
sourceRef:
kind: HelmRepository
name: charts
namespace: flux-system
version: '^2.0.0'
interval: 5m
values:
image:
repositoryWithRegistry: "ghcr.io/derhuerst/bvg-rest" # {"$imagepolicy": "flux-system:v6-bvg-transport-rest-image-policy:name"}
tag: 'v6_461782d_2023-12-20T12.27.32Z' # {"$imagepolicy": "flux-system:v6-bvg-transport-rest-image-policy:tag"}
tagUpdatePattern: '^v6_[a-fA-F0-9]{7}_(?P<datetime>.*)Z$'
tagUpdateExtract: '$datetime'
exposedPort: 3000
environment:
HOSTNAME: 'b.v6.bvg.transport.rest'
PORT: 3000
REDIS_URL: 'redis://:[email protected]:6379/1'
NODE_ENV: 'production'
hosts:
- 'b.v6.bvg.transport.rest'
resources:
limits:
cpu: 1
memory: 600Mi
requests:
cpu: .3
memory: 220Mi
livenessProbe: '/health'
startupProbe: '/health'
4 changes: 4 additions & 0 deletions kubernetes/apps/v6-db-transport-rest/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- release.yaml
38 changes: 38 additions & 0 deletions kubernetes/apps/v6-db-transport-rest/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: v6-db-transport-rest
namespace: app-releases
spec:
chart:
spec:
chart: simple-app
sourceRef:
kind: HelmRepository
name: charts
namespace: flux-system
version: '^2.0.0'
interval: 5m
values:
image:
repositoryWithRegistry: "ghcr.io/derhuerst/db-rest" # {"$imagepolicy": "flux-system:v6-db-transport-rest-image-policy:name"}
tag: 'v6_a294db5_2023-11-24T15.27.12Z' # {"$imagepolicy": "flux-system:v6-db-transport-rest-image-policy:tag"}
tagUpdatePattern: '^v6_[a-fA-F0-9]{7}_(?P<datetime>.*)Z$'
tagUpdateExtract: '$datetime'
exposedPort: 3000
environment:
HOSTNAME: 'b.v6.db.transport.rest'
PORT: 3000
REDIS_URL: 'redis://:[email protected]:6379/2'
NODE_ENV: 'production'
hosts:
- 'b.v6.db.transport.rest'
resources:
limits:
cpu: 1
memory: 600Mi
requests:
cpu: .3
memory: 220Mi
livenessProbe: '/health'
startupProbe: '/health'
4 changes: 4 additions & 0 deletions kubernetes/apps/v6-vbb-transport-rest/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: v5-vbb-transport-rest
name: v6-vbb-transport-rest
namespace: app-releases
spec:
chart:
Expand All @@ -15,18 +15,18 @@ spec:
interval: 5m
values:
image:
repositoryWithRegistry: "ghcr.io/derhuerst/vbb-rest" # {"$imagepolicy": "flux-system:v5-vbb-transport-rest-image-policy:name"}
tag: 'v5_5d109e7_2023-05-08T13.42.48Z' # {"$imagepolicy": "flux-system:v5-vbb-transport-rest-image-policy:tag"}
tagUpdatePattern: '^v5_[a-fA-F0-9]{7}_(?P<datetime>.*)Z$'
repositoryWithRegistry: "ghcr.io/derhuerst/vbb-rest" # {"$imagepolicy": "flux-system:v6-vbb-transport-rest-image-policy:name"}
tag: 'v6_e84abb3_2023-11-07T18.26.54Z' # {"$imagepolicy": "flux-system:v6-vbb-transport-rest-image-policy:tag"}
tagUpdatePattern: '^v6_[a-fA-F0-9]{7}_(?P<datetime>.*)Z$'
tagUpdateExtract: '$datetime'
exposedPort: 3000
environment:
HOSTNAME: 'b.v5.vbb.transport.rest'
HOSTNAME: 'b.v6.vbb.transport.rest'
PORT: 3000
# todo: REDIS_URL
REDIS_URL: 'redis://:[email protected]:6379/4'
NODE_ENV: 'production'
hosts:
- 'b.v5.vbb.transport.rest'
- 'b.v6.vbb.transport.rest'
resources:
limits:
cpu: 1
Expand Down