Rename the app from tracker to fit
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m44s

The directory, the repo and the hostname are all fit; the module path,
the image, the namespace and the data file were still tracker. Nothing
is deployed yet, so this is free now and would not be later.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-01 22:03:33 -07:00
parent faf73c8be5
commit 3168a4ef96
14 changed files with 58 additions and 58 deletions

View File

@@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: tracker
name: fit
---
# The whole log is one JSON file, so the "database" is this volume. It is
@@ -10,8 +10,8 @@ metadata:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tracker-data-pvc
namespace: tracker
name: fit-data-pvc
namespace: fit
spec:
accessModes:
- ReadWriteOnce
@@ -23,11 +23,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: tracker-svc
namespace: tracker
name: fit-svc
namespace: fit
spec:
selector:
app: tracker
app: fit
ports:
- port: 80
targetPort: 8080
@@ -37,8 +37,8 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: tracker-dep
namespace: tracker
name: fit-dep
namespace: fit
spec:
replicas: 1
# Two pods would both hold the file in memory and overwrite each other's
@@ -48,11 +48,11 @@ spec:
type: Recreate
selector:
matchLabels:
app: tracker
app: fit
template:
metadata:
labels:
app: tracker
app: fit
spec:
imagePullSecrets:
- name: harborcred
@@ -64,8 +64,8 @@ spec:
# write the file it exists to hold.
fsGroup: 65534
containers:
- name: tracker
image: harbor.scottyah.com/scottyah/tracker:latest
- name: fit
image: harbor.scottyah.com/scottyah/fit:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
@@ -75,7 +75,7 @@ spec:
- name: BASE_URL
value: "https://fit.scottyah.com"
- name: DATA_PATH
value: "/data/tracker.json"
value: "/data/fit.json"
# Every date in the app is a local date, so this decides when the
# day rolls over.
- name: TZ_NAME
@@ -113,7 +113,7 @@ spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: tracker-data-pvc
claimName: fit-data-pvc
---
# The app has no login of its own; this is the only thing between the log and
@@ -121,22 +121,22 @@ spec:
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: tracker-basic-auth
namespace: tracker
name: fit-basic-auth
namespace: fit
spec:
basicAuth:
secret: tracker-basic-auth
secret: fit-basic-auth
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tracker-ingress
namespace: tracker
name: fit-ingress
namespace: fit
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.middlewares: tracker-tracker-basic-auth@kubernetescrd
traefik.ingress.kubernetes.io/router.middlewares: fit-fit-basic-auth@kubernetescrd
spec:
ingressClassName: traefik
tls:
@@ -151,6 +151,6 @@ spec:
pathType: Prefix
backend:
service:
name: tracker-svc
name: fit-svc
port:
number: 80