Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit a550320

Browse files
authored
Merge pull request #55 from kops-dev/fix-heartbeat
fix heart beat issue in service
2 parents bc17bda + 21e1888 commit a550320

2 files changed

Lines changed: 35 additions & 35 deletions

File tree

charts/service/README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -38,39 +38,39 @@ _See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command doc
3838

3939
# Configuration
4040

41-
| Inputs | Type | Description | Default |
42-
|------------------------------------|---------|---------------------------------------------------------------------------------------------------------------------|--------------------------------------|
43-
| app_secrets | boolean | Boolean whether to mount csi secrets on the container | `false` |
44-
| cliService | boolean | Whether application is a CLI service | `false` |
45-
| env | map | Environment Variables can be provided to the container | `eg APP_NAME: hello-api` |
46-
| envFrom.configmaps | list | List of Configmaps from which env should be mounted on to containers | `[]` |
47-
| envFrom.secrets | list | List of secrets from which env should be mounted on to containers | `[]` |
48-
| heartbeatURL | string | Heartbeat URL of the service | `"/"` |
49-
| httpPort | number | Port on which container runs its services | `8000` |
41+
| Inputs | Type | Description | Default |
42+
|------------------------------------|---------|---------------------------------------------------------------------------------------------------------------------|-------------------------------------|
43+
| app_secrets | boolean | Boolean whether to mount csi secrets on the container | `false` |
44+
| cliService | boolean | Whether application is a CLI service | `false` |
45+
| env | map | Environment Variables can be provided to the container | `eg APP_NAME: hello-api` |
46+
| envFrom.configmaps | list | List of Configmaps from which env should be mounted on to containers | `[]` |
47+
| envFrom.secrets | list | List of secrets from which env should be mounted on to containers | `[]` |
48+
| heartbeatURL | string | Heartbeat URL of the service | `""` |
49+
| httpPort | number | Port on which container runs its services | `8000` |
5050
| image | string | Docker container image with tag | `ghcr.io/kops-dev/sample-api:latest` |
51-
| livenessProbe.enable | boolean | Whether liveness Probe should be configured on the container or not | `true` |
52-
| livenessProbe.initialDelaySeconds | number | Specifies how long Kubernetes should wait after the container starts before it begins liveness probes (in seconds) | `3` |
53-
| livenessProbe.timeoutSeconds | number | Specifies the number of seconds after which the probe times out | `3` |
54-
| livenessProbe.periodSeconds | number | Specifies how often (in seconds) to perform the liveness probe | `10` |
55-
| livenessProbe.failureThreshold | number | Specifies the number of consecutive failures needed to mark the probe as failed | `3` |
56-
| maxCPU | string | Specify the maximum amount of CPU that the container is limited to use | `"500m"` |
57-
| maxMemory | string | Specify the maximum amount of Memory that the container is limited to use | `"512Mi"` |
58-
| maxReplicas | number | Specify maximum number of pod replicas that the autoscaler can scale up to in response to increased load | `4` |
59-
| metricsPort | number | Metrics port for scraping the metrics from container | `2121` |
60-
| metricsScrapeInterval | string | Time interval that metrics will be scraped | `"30s"` |
61-
| minAvailable | number | Minimum number of pods that must be available during voluntary disruptions | `1` |
62-
| minCPU | string | Specify the minimum amount of CPU that the container requires | `"250m"` |
63-
| minMemory | string | Specify the minimum amount of Memory that the container requires | `"128Mi"` |
64-
| minReplicas | number | Specify the baseline number of identical pods allowed to be running | `2` |
65-
| name | string | Name of the service | `"hello-api"` |
66-
| readinessProbe.enable | boolean | Whether Readiness Probe should be configured on the container or not | `true` |
67-
| readinessProbe.initialDelaySeconds | number | Specifies how long Kubernetes should wait after the container starts before it begins readiness probes (in seconds) | `3` |
68-
| readinessProbe.timeoutSeconds | number | Specifies the number of seconds after which the probe times out | `3` |
69-
| readinessProbe.periodSeconds | number | Specifies how often (in seconds) to perform the readiness probe | `10` |
70-
| readinessProbe.failureThreshold | number | Specifies the number of consecutive failures needed to mark the probe as failed | `3` |
71-
| replicaCount | number | Number of replicas to run | `2` |
72-
| volumeMounts.configmaps | list | List of Configmaps with name and mount-path to be mounted into the container to inject configuration data | `[]` |
73-
| volumeMounts.secrets | list | List of Secrets with name and mount-path to be mounted into the container to inject sensitive information | `[]` |
51+
| livenessProbe.enable | boolean | Whether liveness Probe should be configured on the container or not | `false` |
52+
| livenessProbe.initialDelaySeconds | number | Specifies how long Kubernetes should wait after the container starts before it begins liveness probes (in seconds) | `3` |
53+
| livenessProbe.timeoutSeconds | number | Specifies the number of seconds after which the probe times out | `3` |
54+
| livenessProbe.periodSeconds | number | Specifies how often (in seconds) to perform the liveness probe | `10` |
55+
| livenessProbe.failureThreshold | number | Specifies the number of consecutive failures needed to mark the probe as failed | `3` |
56+
| maxCPU | string | Specify the maximum amount of CPU that the container is limited to use | `"500m"` |
57+
| maxMemory | string | Specify the maximum amount of Memory that the container is limited to use | `"512Mi"` |
58+
| maxReplicas | number | Specify maximum number of pod replicas that the autoscaler can scale up to in response to increased load | `4` |
59+
| metricsPort | number | Metrics port for scraping the metrics from container | `2121` |
60+
| metricsScrapeInterval | string | Time interval that metrics will be scraped | `"30s"` |
61+
| minAvailable | number | Minimum number of pods that must be available during voluntary disruptions | `1` |
62+
| minCPU | string | Specify the minimum amount of CPU that the container requires | `"250m"` |
63+
| minMemory | string | Specify the minimum amount of Memory that the container requires | `"128Mi"` |
64+
| minReplicas | number | Specify the baseline number of identical pods allowed to be running | `2` |
65+
| name | string | Name of the service | `"hello-api"` |
66+
| readinessProbe.enable | boolean | Whether Readiness Probe should be configured on the container or not | `false` |
67+
| readinessProbe.initialDelaySeconds | number | Specifies how long Kubernetes should wait after the container starts before it begins readiness probes (in seconds) | `3` |
68+
| readinessProbe.timeoutSeconds | number | Specifies the number of seconds after which the probe times out | `3` |
69+
| readinessProbe.periodSeconds | number | Specifies how often (in seconds) to perform the readiness probe | `10` |
70+
| readinessProbe.failureThreshold | number | Specifies the number of consecutive failures needed to mark the probe as failed | `3` |
71+
| replicaCount | number | Number of replicas to run | `2` |
72+
| volumeMounts.configmaps | list | List of Configmaps with name and mount-path to be mounted into the container to inject configuration data | `[]` |
73+
| volumeMounts.secrets | list | List of Secrets with name and mount-path to be mounted into the container to inject sensitive information | `[]` |
7474

7575

7676
### Note:

charts/service/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ minAvailable: 1
3030
cliService: false
3131

3232
# Heartbeat URL
33-
heartbeatURL: "/"
33+
heartbeatURL: ""
3434

3535
readinessProbe:
36-
enable: true
36+
enable: false
3737
# initialDelaySeconds: 3
3838
# timeoutSeconds: 3
3939
# periodSeconds: 10
4040
# failureThreshold: 3
4141

4242
livenessProbe:
43-
enable: true
43+
enable: false
4444
# initialDelaySeconds: 3
4545
# timeoutSeconds: 3
4646
# periodSeconds: 10

0 commit comments

Comments
 (0)