mirror of
https://github.com/TwiN/gatus.git
synced 2025-06-22 18:51:52 +02:00
Add ServiceAccount to Kubernetes example
This commit is contained in:
parent
813fea93ee
commit
b59ff6f89e
@ -9,14 +9,17 @@ data:
|
|||||||
endpoints:
|
endpoints:
|
||||||
- name: website
|
- name: website
|
||||||
url: https://twin.sh/health
|
url: https://twin.sh/health
|
||||||
interval: 1m
|
interval: 5m
|
||||||
conditions:
|
conditions:
|
||||||
- "[STATUS] == 200"
|
- "[STATUS] == 200"
|
||||||
|
- "[BODY].status == UP"
|
||||||
|
|
||||||
- name: github
|
- name: github
|
||||||
url: https://api.github.com/healthz
|
url: https://api.github.com/healthz
|
||||||
interval: 5m
|
interval: 5m
|
||||||
conditions:
|
conditions:
|
||||||
- "[STATUS] == 200"
|
- "[STATUS] == 200"
|
||||||
|
|
||||||
- name: cat-fact
|
- name: cat-fact
|
||||||
url: "https://cat-fact.herokuapp.com/facts/random"
|
url: "https://cat-fact.herokuapp.com/facts/random"
|
||||||
interval: 5m
|
interval: 5m
|
||||||
@ -27,11 +30,18 @@ data:
|
|||||||
- "[BODY].text == pat(*cat*)"
|
- "[BODY].text == pat(*cat*)"
|
||||||
- "[STATUS] == pat(2*)"
|
- "[STATUS] == pat(2*)"
|
||||||
- "[CONNECTED] == true"
|
- "[CONNECTED] == true"
|
||||||
|
|
||||||
- name: example
|
- name: example
|
||||||
url: https://example.com/
|
url: https://example.com/
|
||||||
conditions:
|
conditions:
|
||||||
- "[STATUS] == 200"
|
- "[STATUS] == 200"
|
||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: gatus
|
||||||
|
namespace: kube-system
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -41,14 +51,16 @@ spec:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
k8s-app: gatus
|
app: gatus
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
k8s-app: gatus
|
app: gatus
|
||||||
name: gatus
|
name: gatus
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
|
serviceAccountName: gatus
|
||||||
|
terminationGracePeriodSeconds: 5
|
||||||
containers:
|
containers:
|
||||||
- image: twinproduction/gatus
|
- image: twinproduction/gatus
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
@ -84,4 +96,4 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
k8s-app: gatus
|
app: gatus
|
Loading…
x
Reference in New Issue
Block a user