Complete runtime resilience and audit controls
This commit is contained in:
parent
ea55108f44
commit
728abdbbf1
1 changed files with 1466 additions and 251 deletions
39
tests/kind/wp12-health.yaml.in
Normal file
39
tests/kind/wp12-health.yaml.in
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: @@JOB_NAME@@
|
||||
namespace: nuthatch-testbed
|
||||
spec:
|
||||
activeDeadlineSeconds: 60
|
||||
backoffLimit: 0
|
||||
template:
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
enableServiceLinks: false
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: health
|
||||
image: @@CURL_IMAGE@@
|
||||
imagePullPolicy: Never
|
||||
command: [/bin/sh, -ec]
|
||||
args:
|
||||
- |
|
||||
base="https://nuthatch-@@LANE@@:8080"
|
||||
test "$(
|
||||
curl --insecure --silent --output /tmp/health \
|
||||
--write-out '%{http_code}' "$base/healthz"
|
||||
)" = 200
|
||||
grep -F '"ok":true' /tmp/health
|
||||
test "$(
|
||||
curl --insecure --silent --output /tmp/ready \
|
||||
--write-out '%{http_code}' "$base/readyz"
|
||||
)" = "@@READY_STATUS@@"
|
||||
curl --insecure --silent --output /dev/null "$base/app"
|
||||
test "$(
|
||||
curl --insecure --silent --output /dev/null \
|
||||
--write-out '%{http_code}' "$base/api/session"
|
||||
)" = 303
|
||||
printf 'runtime health semantics passed\n'
|
||||
resources:
|
||||
requests: {cpu: 25m, memory: 16Mi}
|
||||
limits: {cpu: 250m, memory: 64Mi}
|
||||
Loading…
Reference in a new issue