Cleanup
This commit is contained in:
1 parent
3559ef95bf
commit
083910cb4e
4 files changed
-126
No files matched your search
@@ -1,55 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: service-docker-repository-query
|
|
||||||
namespace: app-notifications
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: service-docker-repository-query
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: service-docker-repository-query
|
|
||||||
spec:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: ghcr-secret
|
|
||||||
initContainers:
|
|
||||||
- name: copy-secrets
|
|
||||||
image: busybox
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
for f in /secrets/*; do
|
|
||||||
cp "$f" /etc/secrets/
|
|
||||||
chmod 666 "/etc/secrets/$(basename $f)"
|
|
||||||
done
|
|
||||||
volumeMounts:
|
|
||||||
- name: service-docker-repository-query-secrets
|
|
||||||
mountPath: /secrets
|
|
||||||
- name: writable-secrets
|
|
||||||
mountPath: /etc/secrets
|
|
||||||
containers:
|
|
||||||
- name: service-docker-repository-query
|
|
||||||
image: ghcr.io/gansejunge/app-notifications-service-docker-repository-query:19
|
|
||||||
ports:
|
|
||||||
- containerPort: 5000
|
|
||||||
name: fastapi
|
|
||||||
- containerPort: 9000
|
|
||||||
name: metrics
|
|
||||||
env:
|
|
||||||
- name: DB_HOST
|
|
||||||
value: "mysql.app-notifications.svc.cluster.local"
|
|
||||||
- name: BACKEND_API_URL
|
|
||||||
value: "http://backend-api-internal.app-notifications.svc.cluster.local:8101/internal/receive-notifications"
|
|
||||||
volumeMounts:
|
|
||||||
- name: writable-secrets
|
|
||||||
mountPath: /etc/secrets
|
|
||||||
volumes:
|
|
||||||
- name: service-docker-repository-query-secrets
|
|
||||||
secret:
|
|
||||||
secretName: service-docker-repository-query
|
|
||||||
- name: writable-secrets
|
|
||||||
emptyDir: {}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: check-pihole-updates
|
|
||||||
namespace: app-notifications
|
|
||||||
spec:
|
|
||||||
schedule: "0 7 * * *"
|
|
||||||
successfulJobsHistoryLimit: 1
|
|
||||||
failedJobsHistoryLimit: 1
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: curl
|
|
||||||
image: curlimages/curl:latest
|
|
||||||
command: ["curl"]
|
|
||||||
args:
|
|
||||||
- -s
|
|
||||||
- -X
|
|
||||||
- GET
|
|
||||||
- http://service-docker-repository-query-internal:5000/pihole
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: check-suwayomi-updates
|
|
||||||
namespace: app-notifications
|
|
||||||
spec:
|
|
||||||
schedule: "0 8 * * *"
|
|
||||||
successfulJobsHistoryLimit: 1
|
|
||||||
failedJobsHistoryLimit: 1
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: curl
|
|
||||||
image: curlimages/curl:latest
|
|
||||||
command: ["curl"]
|
|
||||||
args:
|
|
||||||
- -s
|
|
||||||
- -X
|
|
||||||
- GET
|
|
||||||
- http://service-docker-repository-query-internal:5000/suwayomi
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: check-new-royalroad-chapters
|
|
||||||
namespace: app-notifications
|
|
||||||
spec:
|
|
||||||
schedule: "5-59/10 * * * *"
|
|
||||||
successfulJobsHistoryLimit: 1
|
|
||||||
concurrencyPolicy: Forbid
|
|
||||||
failedJobsHistoryLimit: 1
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
activeDeadlineSeconds: 120
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: curl
|
|
||||||
image: curlimages/curl:latest
|
|
||||||
command: ["curl"]
|
|
||||||
args:
|
|
||||||
- -s
|
|
||||||
- -X
|
|
||||||
- GET
|
|
||||||
- http://service-royalroad-chapters-internal:5000/royalroad
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
Reference in new issue
Block a user