mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 04:59:54 +00:00
taskchampion
This commit is contained in:
18
bootstrap/kustomizations/kustomization-taskchampion.yaml
Normal file
18
bootstrap/kustomizations/kustomization-taskchampion.yaml
Normal 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
|
||||
4
bootstrap/namespaces/namespace-taskchampion.yaml
Normal file
4
bootstrap/namespaces/namespace-taskchampion.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: taskchampion
|
||||
33
taskchampion/deployment.yaml
Normal file
33
taskchampion/deployment.yaml
Normal 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
|
||||
15
taskchampion/dns-endpoint.yaml
Normal file
15
taskchampion/dns-endpoint.yaml
Normal 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
24
taskchampion/ingress.yaml
Normal 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
|
||||
12
taskchampion/pvc-data.yaml
Normal file
12
taskchampion/pvc-data.yaml
Normal 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
12
taskchampion/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user