Created
August 5, 2020 12:54
-
-
Save tshak/20899406bd0bbf7faede5002b5184d90 to your computer and use it in GitHub Desktop.
Example kconfig with always failing readiness probe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
TESTDUMMY_FALSE
env var tells the testdummy to always return a non success status code from the/health
endpoint.