mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 04:59:54 +00:00
booklore
This commit is contained in:
12
apps/booklore/dns-endpoint.yaml
Normal file
12
apps/booklore/dns-endpoint.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: externaldns.k8s.io/v1alpha1
|
||||||
|
kind: DNSEndpoint
|
||||||
|
metadata:
|
||||||
|
name: booklore.michaelthomson.dev
|
||||||
|
namespace: booklore
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- dnsName: booklore.michaelthomson.dev
|
||||||
|
recordTTL: 180
|
||||||
|
recordType: CNAME
|
||||||
|
targets:
|
||||||
|
- server.michaelthomson.dev
|
||||||
4
apps/booklore/namespace.yaml
Normal file
4
apps/booklore/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: booklore
|
||||||
38
apps/booklore/release.yaml
Normal file
38
apps/booklore/release.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: booklore
|
||||||
|
namespace: booklore
|
||||||
|
spec:
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: ./example-chart
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: booklore
|
||||||
|
interval: 15m
|
||||||
|
releaseName: booklore
|
||||||
|
values:
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
hosts:
|
||||||
|
- host: booklore.michaelthomson.dev
|
||||||
|
paths:
|
||||||
|
- path: "/"
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- booklore.michaelthomson.dev
|
||||||
|
secretName: letsencrypt-wildcard-cert-michaelthomson.dev
|
||||||
|
|
||||||
|
# If you want to bring your own persistence (such as a hostPath),
|
||||||
|
# disable these and do so in extraVolumes/extraVolumeMounts
|
||||||
|
persistence:
|
||||||
|
dataVolume:
|
||||||
|
enabled: true
|
||||||
|
size: 1Gi
|
||||||
|
booksVolume:
|
||||||
|
enabled: true
|
||||||
|
size: 10Gi
|
||||||
10
apps/booklore/repository.yaml
Normal file
10
apps/booklore/repository.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: GitRepository
|
||||||
|
metadata:
|
||||||
|
name: booklore
|
||||||
|
namespace: booklore
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
url: https://github.com/booklore-app/booklore.git
|
||||||
|
ref:
|
||||||
|
branch: develop
|
||||||
15
bootstrap/apps/kustomization-booklore.yaml
Normal file
15
bootstrap/apps/kustomization-booklore.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: booklore
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
path: ./apps/booklore
|
||||||
|
prune: true # remove any elements later removed from the above path
|
||||||
|
wait: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
dependsOn:
|
||||||
|
- name: infra-configs
|
||||||
Reference in New Issue
Block a user