Skip to content

Commit

Permalink
feat: add stirling-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed May 1, 2024
1 parent 427fd00 commit 54af49e
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
9 changes: 9 additions & 0 deletions k8s/apps/tools/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
# - ./cloudnative-pg/ks.yaml
# - ./minio/ks.yaml
# - ./csi-driver-nfs/ks.yaml
- ./stirling-pdf/ks.yaml
4 changes: 4 additions & 0 deletions k8s/apps/tools/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: tools
50 changes: 50 additions & 0 deletions k8s/apps/tools/stirling-pdf/app/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# yaml-language-server: $schema=/workspaces/homelab/.devcontainer/helmrelease.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: stirling-pdf
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 3.1.0
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
maxHistory: 3
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controllers:
main:
strategy: RollingUpdate
rollingUpdate:
unavailable: 0
containers:
main:
image:
repository: ghcr.io/frooodle/s-pdf
tag: 0.18.1
service:
main:
controller: main
ports:
http:
port: 8080
route:
main:
hostnames:
- pdf.${SECRET_DOMAIN}
rules:
- backendRefs:
- name: stirling-pdf
port: 8080
5 changes: 5 additions & 0 deletions k8s/apps/tools/stirling-pdf/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
17 changes: 17 additions & 0 deletions k8s/apps/tools/stirling-pdf/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: stirling-pdf
namespace: flux-system
spec:
path: ./k8s/apps/tools/stirling-pdf/app
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m

0 comments on commit 54af49e

Please sign in to comment.