Add plantwiki dev svelte app

main
trivernis 1 year ago
parent 48f41bed97
commit 17dd3da70c
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
metadata:
name: plantwiki-dev
resources:
- app/namespace.yaml
- app/release.yaml
- app/route.yaml

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: plantwiki-dev
labels:
name: plantwiki-dev

@ -0,0 +1,20 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: plantwiki-dev
namespace: plantwiki-dev
spec:
releaseName: plantwiki-dev
chart:
spec:
chart: chart
sourceRef:
kind: GitRepository
name: plantwiki-svelte
namespace: repos
interval: 60m
install:
remediation:
retries: 3
values:
replicaCount: 2

@ -0,0 +1,17 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: plantwiki-dev-route
namespace: plantwiki-dev
spec:
entryPoints:
- web
routes:
- match: Host(`plantwiki.trivernis.dev`)
kind: Rule
middlewares:
- name: strict-security-headers
namespace: default
services:
- name: plantwiki
port: http

@ -57,7 +57,7 @@ spec:
entryPoints:
- web
routes:
- match: Host(`plantwiki.trivernis.dev`, `plantwiki.trivernis.net`)
- match: Host(`plantwiki.trivernis.net`)
kind: Rule
middlewares:
- name: strict-security-headers

@ -119,6 +119,23 @@ spec:
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: apps-plantwiki-dev
namespace: flux-system
spec:
dependsOn:
- name: repos
interval: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/plantwiki-dev
prune: true
wait: true
timeout: 5m0s
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: apps-searxng
namespace: flux-system

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: plantwiki-svelte
namespace: repos
spec:
interval: 60m
url: https://git.trivernis.net/Trivernis/plantwiki-svelte
Loading…
Cancel
Save