taskchampion

This commit is contained in:
2025-01-15 09:56:47 -05:00
parent 86e76fb6c5
commit f6e317bc30
7 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: taskchampion
namespace: flux-system
spec:
interval: 15m
path: ./taskchampion
prune: true # remove any elements later removed from the above path
timeout: 2m # if not set, this defaults to interval duration, which is 1h
sourceRef:
kind: GitRepository
name: flux-system
healthChecks:
- apiVersion: apps/v1
kind: Deployment
name: taskchampion
namespace: taskchampion

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: taskchampion

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: taskchampion
namespace: taskchampion
spec:
selector:
matchLabels:
app: taskchampion
template:
metadata:
labels:
app: taskchampion
spec:
containers:
- name: taskchampion
image: ghcr.io/gothenburgbitfactory/taskchampion-sync-server:latest
imagePullPolicy: Always
args: ["--data-dir", "/tss", "--port", "8080"]
env:
- name: RUST_LOG
value: info
ports:
- containerPort: 8080
name: http
protocol: TCP
volumeMounts:
- name: data
mountPath: /tss
volumes:
- name: data
persistentVolumeClaim:
claimName: taskchampion-data

View File

@@ -0,0 +1,15 @@
apiVersion: externaldns.k8s.io/v1alpha1
kind: DNSEndpoint
metadata:
name: taskchampion.michaelthomson.dev
namespace: taskchampion
spec:
endpoints:
- dnsName: taskchampion.michaelthomson.dev
recordTTL: 180
recordType: CNAME
targets:
- michaelthomson.ddns.net
providerSpecific:
- name: external-dns.alpha.kubernetes.io/cloudflare-proxied
value: "true"

24
taskchampion/ingress.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: taskchampion
namespace: taskchampion
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
rules:
- host: taskchampion.michaelthomson.dev
http:
paths:
- pathType: ImplementationSpecific
path: /
backend:
service:
name: taskchampion
port:
name: http
tls:
- hosts:
- taskchampion.michaelthomson.dev
secretName: letsencrypt-wildcard-cert-michaelthomson.dev

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: taskchampion-data
namespace: taskchampion
spec:
resources:
requests:
storage: 1Gi
storageClassName: longhorn
accessModes:
- ReadWriteOnce

12
taskchampion/service.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: taskchampion
namespace: taskchampion
spec:
selector:
app: taskchampion
ports:
- port: 80
targetPort: http
name: http