diff --git a/charts/podinfo/README.md b/charts/podinfo/README.md index 4518156..2275286 100644 --- a/charts/podinfo/README.md +++ b/charts/podinfo/README.md @@ -36,6 +36,8 @@ Parameter | Description | Default `backends` | echo backend URL array | None `faults.delay` | random HTTP response delays between 0 and 5 seconds | `false` `faults.error` | 1/3 chances of a random HTTP response error | `false` +`faults.unhealthy` | when set, the healthy state is never reached | `false` +`faults.unready` | when set, the ready state is never reached | `false` `hpa.enabled` | enables HPA | `false` `hpa.cpu` | target CPU usage per pod | None `hpa.memory` | target memory usage per pod | None diff --git a/charts/podinfo/templates/deployment.yaml b/charts/podinfo/templates/deployment.yaml index d8160e3..95c381a 100644 --- a/charts/podinfo/templates/deployment.yaml +++ b/charts/podinfo/templates/deployment.yaml @@ -54,6 +54,12 @@ spec: - --level={{ .Values.logLevel }} - --random-delay={{ .Values.faults.delay }} - --random-error={{ .Values.faults.error }} + {{- if .Values.faults.unhealthy }} + - --unhealthy + {{- end }} + {{- if .Values.faults.unready }} + - --unready + {{- end }} {{- if .Values.h2c.enabled }} - --h2c {{- end }} diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index 398c150..b46fccf 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -13,6 +13,8 @@ ui: faults: delay: false error: false + unhealthy: false + unready: false h2c: enabled: false