Added Seadex service
This commit is contained in:
1 parent
129d468ef0
commit
736fd94f01
4 files changed
+134
No files matched your search
@@ -0,0 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: service-royalroad-chapters-cron-gitea
|
||||
namespace: app-notifications
|
||||
spec:
|
||||
serviceName: service-royalroad-chapters-cron-gitea
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: service-royalroad-chapters-cron
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: service-royalroad-chapters-cron
|
||||
spec:
|
||||
containers:
|
||||
- name: cron
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
echo "{\"timestamp\":\"$(date '+%Y-%m-%dT%H:%M:%S%z')\",\"event\":\"startup\"}"
|
||||
while true; do
|
||||
echo "{\"timestamp\":\"$(date '+%Y-%m-%dT%H:%M:%S%z')\",\"event\":\"curl start\"}"
|
||||
curl -s -X GET --max-time 150 http://service-seadex-internal:5000/update
|
||||
echo
|
||||
echo "{\"timestamp\":\"$(date '+%Y-%m-%dT%H:%M:%S%z')\",\"event\":\"curl end\"}"
|
||||
sleep 300
|
||||
done
|
||||
Reference in new issue
Block a user