Skip to content

Commit

Permalink
Updated liveness readiness paths (#207)
Browse files Browse the repository at this point in the history
* PharmaLedger-IMI/epi-workspace#1106 changed defaults in envJson and apihubJson

* PharmaLedger-IMI/epi-workspace#1106 updated liveness and readiness probe paths
  • Loading branch information
skutner authored Dec 18, 2022
1 parent 21b345c commit 7164202
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions charts/epi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.12

version: 0.5.13

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "1.6.1"
appVersion: "1.6.2"

icon: https://avatars.githubusercontent.com/u/60230259?s=200&v=4

Expand Down
12 changes: 6 additions & 6 deletions charts/epi/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# epi

![Version: 0.5.12](https://img.shields.io/badge/Version-0.5.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.6.1](https://img.shields.io/badge/AppVersion-1.6.1-informational?style=flat-square)
![Version: 0.5.13](https://img.shields.io/badge/Version-0.5.13-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.6.2](https://img.shields.io/badge/AppVersion-1.6.2-informational?style=flat-square)

A Helm chart for Pharma Ledger epi (electronic product information) application

Expand Down Expand Up @@ -158,7 +158,7 @@ It is recommended to put non-sensitive configuration values in an configuration
2. Install via helm to namespace `default`

```bash
helm upgrade my-release-name pharmaledger-imi/epi --version=0.5.12 \
helm upgrade my-release-name pharmaledger-imi/epi --version=0.5.13 \
--install \
--values my-config.yaml \
```
Expand Down Expand Up @@ -364,7 +364,7 @@ Run `helm upgrade --helm` for full list of options.
You can install into other namespace than `default` by setting the `--namespace` parameter, e.g.

```bash
helm upgrade my-release-name pharmaledger-imi/epi --version=0.5.12 \
helm upgrade my-release-name pharmaledger-imi/epi --version=0.5.13 \
--install \
--namespace=my-namespace \
--values my-config.yaml \
Expand All @@ -375,7 +375,7 @@ Run `helm upgrade --helm` for full list of options.
Provide the `--wait` argument and time to wait (default is 5 minutes) via `--timeout`

```bash
helm upgrade my-release-name pharmaledger-imi/epi --version=0.5.12 \
helm upgrade my-release-name pharmaledger-imi/epi --version=0.5.13 \
--install \
--wait --timeout=600s \
--values my-config.yaml \
Expand Down Expand Up @@ -477,10 +477,10 @@ Tests can be found in [tests](./tests)
| runner.image.repository | string | `"pharmaledger/epi-runner"` | The repository of the container image for the runner |
| runner.image.sha | string | `"d9613cbf530cf057a3a1a781ff81b491e03a2d0194165a0045bee37c1c6c57da"` | sha256 digest of the image. Do not add the prefix "@sha256:" Default to v1.3.1 <!-- # pragma: allowlist secret --> |
| runner.image.tag | string | `"1.3.1"` | Overrides the image tag whose default is the chart appVersion. Default to v1.3.1 |
| runner.livenessProbe | object | `{"failureThreshold":3,"httpGet":{"httpHeaders":[{"name":"Host","value":"localhost"}],"path":"/","port":"http"},"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}` | Liveness probe. See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) |
| runner.livenessProbe | object | `{"failureThreshold":3,"httpGet":{"httpHeaders":[{"name":"Host","value":"localhost"}],"path":"/installation-details","port":"http"},"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}` | Liveness probe. See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) |
| runner.podAnnotations | object | `{}` | Annotations added to the runner pod |
| runner.podSecurityContext | object | `{"fsGroup":1000,"runAsGroup":1000,"runAsUser":1000}` | Pod Security Context for the runner. See [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) |
| runner.readinessProbe | object | `{"failureThreshold":3,"httpGet":{"httpHeaders":[{"name":"Host","value":"localhost"}],"path":"/","port":"http"},"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}` | Readiness probe. See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) |
| runner.readinessProbe | object | `{"failureThreshold":3,"httpGet":{"httpHeaders":[{"name":"Host","value":"localhost"}],"path":"/ready-probe","port":"http"},"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}` | Readiness probe. See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) |
| runner.replicaCount | int | `1` | The number of replicas for the runner |
| runner.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":false,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000}` | Security Context for the runner container See [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) |
| secretProviderClass.apiVersion | string | `"secrets-store.csi.x-k8s.io/v1"` | API Version of the SecretProviderClass |
Expand Down
4 changes: 2 additions & 2 deletions charts/epi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ runner:
# See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
livenessProbe:
httpGet:
path: /
path: /installation-details
port: http
# It is required to set the Host header to localhost. Reason: With SSO enabled, the default response at / without Header Host=localhost is HTTP 301 which results in warning.
httpHeaders:
Expand All @@ -123,7 +123,7 @@ runner:
# See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
readinessProbe:
httpGet:
path: /
path: /ready-probe
port: http
# It is required to set the Host header to localhost. Reason: With SSO enabled, the default response at / without Header Host=localhost is HTTP 301 which results in warning.
httpHeaders:
Expand Down

0 comments on commit 7164202

Please sign in to comment.