1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/test/resources/resource_validate_healthChecks.yaml
Batuhan Apaydın 41b24fb769
move from k8s.gcr.io to registry.k8s.io (#6263)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2023-02-09 00:09:15 +08:00

33 lines
No EOL
648 B
YAML

apiVersion: v1
kind: Pod
metadata:
labels:
test: probe
name: probe
spec:
containers:
- name: check-readiness
image: registry.k8s.io/busybox
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
readinessProbe:
successThreshold: 3
exec:
command:
- cat
- /tmp/healthy
- name: check-liveness
image: registry.k8s.io/liveness
args:
- /server
livenessProbe:
httpGet:
path: /healthz
port: 8080
scheme: HTTP
httpHeaders:
- name: Custom-Header
value: Awesome
periodSeconds: 3