Skip to content

Commit

Permalink
Add generator
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrited committed Jun 9, 2024
1 parent c9f04c9 commit 21a5ea8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,18 @@ spec:
volumes:
- name: workout-volume
persistentVolumeClaim:
claimName: workout-pvc
claimName: workout-pvc

---

apiVersion: v1
kind: Service
metadata:
name: daily-workout
spec:
selector:
app: daily-workout
ports:
- protocol: TCP
port: 80
targetPort: 3000
21 changes: 21 additions & 0 deletions manifests/daily-workout/generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: workout-generator
spec:
schedule: "0 0 * * *" # Täglich um Mitternacht
jobTemplate:
spec:
template:
spec:
containers:
- name: generate-workout
image: ghcr.io/gerrited/workout-generator:latest
volumeMounts:
- name: workout-volume
mountPath: "/app/data"
restartPolicy: OnFailure
volumes:
- name: workout-volume
persistentVolumeClaim:
claimName: workout-pvc
11 changes: 0 additions & 11 deletions manifests/daily-workout/service.yaml

This file was deleted.

0 comments on commit 21a5ea8

Please sign in to comment.