Skip to content

Instantly share code, notes, and snippets.

@tshak
Created August 5, 2020 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tshak/20899406bd0bbf7faede5002b5184d90 to your computer and use it in GitHub Desktop.
Save tshak/20899406bd0bbf7faede5002b5184d90 to your computer and use it in GitHub Desktop.
Example kconfig with always failing readiness probe
apiVersion: serving.knative.dev/v1
kind: Configuration
metadata:
name: testdummy
namespace: apps
spec:
template:
metadata:
name: testdummy
spec:
containers:
- env:
- name: TESTDUMMY_HEALTHY
value: "false"
image: tshak/testdummy:0.1.1
name: testdummy
ports:
- containerPort: 8000
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: 0
@tshak
Copy link
Author

tshak commented Aug 5, 2020

The TESTDUMMY_FALSE env var tells the testdummy to always return a non success status code from the /health endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment