Add liveness Delay for slow systems. Correct README chart parameters

This commit is contained in:
Rob Parker
2017-09-14 11:02:58 +01:00
parent a22637b043
commit 78ec896c03
4 changed files with 37 additions and 28 deletions

View File

@@ -43,18 +43,24 @@ kubectl delete pvc -l release=foo
The following table lists the configurable parameters of the `mq-advancedserver` chart and their default values. The following table lists the configurable parameters of the `mq-advancedserver` chart and their default values.
| Parameter | Description | Default | | Parameter | Description | Default |
| ---------------------------- | --------------------------------------------- | ---------------------------------------------------------- | | ------------------------------- | ----------------------------------------------- | ---------------------------------------------------------- |
| `license` | Set to `accept` to accept the terms of the IBM license | `not accepted` | | `license` | Set to `accept` to accept the terms of the IBM license | `not accepted` |
| `image.name` | Image name | `nil` | | `image.repository` | Image full name including repository | `nil` |
| `image.tag` | Image tag | `nil` | | `image.tag` | Image tag | `nil` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecret` | Image pull secret, if you are using a private Docker registry | `nil` | | `image.pullSecret` | Image pull secret, if you are using a private Docker registry | `nil` |
| `data.persistence.enabled` | Use a PersistentVolume to persist MQ data (under `/var/mqm`) | `true` | | `data.persistence.enabled` | Use a PersistentVolume to persist MQ data (under `/var/mqm`) | `true` |
| `data.persistence.storageClass` | Storage class of backing Persistent Volume | `nil` | | `data.persistence.storageClass` | Storage class of backing Persistent Volume | `nil` |
| `data.persistence.size` | Size of data volume | `2Gi` | | `data.persistence.size` | Size of data volume | `2Gi` |
| `service.name` | Name of the Kubernetes service to create | `qmgr` | | `service.name` | Name of the Kubernetes service to create | `qmgr` |
| `service.type` | Kubernetes service type exposing ports, e.g. `NodePort` | `ClusterIP` | | `service.type` | Kubernetes service type exposing ports, e.g. `NodePort` | `ClusterIP` |
| `queueManager.name` | MQ Queue Manager name | Helm release name | | `resources.limits.cpu` | Kubernetes CPU limit for the Queue Manager container | `1` |
| `resources.limits.memory` | Kubernetes memory limit for the Queue Manager container | `1Gi` |
| `resources.requests.cpu` | Kubernetes CPU request for the Queue Manager container | `1` |
| `resources.requests.memory` | Kubernetes memory request for the Queue Manager container | `1Gi` |
| `queueManager.name` | MQ Queue Manager name | Helm release name |
| `nameOverride` | Set to partially override the resource names used in this chart | `nil` |
| `livenessDelay` | Raises the time out before Kubernetes checks for Queue Manager's health. Useful for slower systems that take longer to start the Queue Manager. | 60 |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

View File

@@ -40,7 +40,7 @@ spec:
containers: containers:
- name: qmgr - name: qmgr
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:
- containerPort: 1414 - containerPort: 1414
env: env:
@@ -56,9 +56,9 @@ spec:
# Set liveness probe to determine if the queue manager is running # Set liveness probe to determine if the queue manager is running
livenessProbe: livenessProbe:
exec: exec:
command: command:
- chkmqhealthy - chkmqhealthy
initialDelaySeconds: 60 initialDelaySeconds: {{ .Values.livenessDelay }}
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 5
failureThreshold: 1 failureThreshold: 1
@@ -92,5 +92,5 @@ spec:
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
resources: resources:
requests: requests:
storage: {{ .Values.data.persistence.size | quote }} storage: {{ .Values.data.persistence.size | quote }}
{{- end }} {{- end }}

View File

@@ -16,10 +16,10 @@
license: "not accepted" license: "not accepted"
image: image:
# repository is the container repository to use, which must contain IBM MQ Advanced # repository is the container repository to use, which must contain IBM MQ Advanced
repository: repository:
# tag is the tag to use for the container repository # tag is the tag to use for the container repository
tag: tag:
# pullSecret is the secret to use when pulling the image from a private registry # pullSecret is the secret to use when pulling the image from a private registry
pullSecret: pullSecret:
# pullPolicy is either IfNotPresent or Always (https://kubernetes.io/docs/concepts/containers/images/) # pullPolicy is either IfNotPresent or Always (https://kubernetes.io/docs/concepts/containers/images/)
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
@@ -48,4 +48,6 @@ queueManager:
# name allows you to specify the name to use for the queue manager. Defaults to the Helm release name. # name allows you to specify the name to use for the queue manager. Defaults to the Helm release name.
name: name:
# nameOverride can be set to partially override the name of the resources created by this chart # nameOverride can be set to partially override the name of the resources created by this chart
nameOverride: nameOverride:
# livenessDelay should be raised if your system cannot start the Queue Manager in 60 seconds
livenessDelay: 60

View File

@@ -37,26 +37,27 @@ The command removes all the Kubernetes components associated with the chart, exc
```bash ```bash
kubectl delete pvc -l release=foo kubectl delete pvc -l release=foo
``` ```
## Configuration ## Configuration
The following table lists the configurable parameters of the `mq-advancedserver` chart and their default values. The following table lists the configurable parameters of the `mq-advancedserver` chart and their default values.
| Parameter | Description | Default | | Parameter | Description | Default |
| ---------------------------- | --------------------------------------------- | ---------------------------------------------------------- | | -------------------------------- | ----------------------------------------------- | ---------------------------------------------------------- |
| `license` | Set to `accept` to accept the terms of the IBM license | `not accepted` | | `license` | Set to `accept` to accept the terms of the IBM license | `not accepted` |
| `image.name` | Image name | `ibmcom/mq` | | `image.repository` | Image full name including repository | `ibmcom/mq` |
| `image.tag` | Image tag | `9` | | `image.tag` | Image tag | `9` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecret` | Image pull secret, if you are using a private Docker registry | `nil` | | `image.pullSecret` | Image pull secret, if you are using a private Docker registry | `nil` |
| `data.persistence.enabled` | Use a PersistentVolume to persist MQ data (under `/var/mqm`) | `true` | | `data.persistence.enabled` | Use a PersistentVolume to persist MQ data (under `/var/mqm`) | `true` |
| `data.persistence.storageClass` | Storage class of backing Persistent Volume | `nil` | | `data.persistence.storageClass` | Storage class of backing Persistent Volume | `nil` |
| `data.persistence.size` | Size of data volume | `2Gi` | | `data.persistence.size` | Size of data volume | `2Gi` |
| `service.name` | Name of the Kubernetes service to create | `qmgr` | | `service.name` | Name of the Kubernetes service to create | `qmgr` |
| `service.type` | Kubernetes service type exposing ports, e.g. `NodePort` | `ClusterIP` | | `service.type` | Kubernetes service type exposing ports, e.g. `NodePort` | `ClusterIP` |
| `queueManager.name` | MQ Queue Manager name | Helm release name | | `queueManager.name` | MQ Queue Manager name | Helm release name |
| `queueManager.dev.adminPassword` | Developer defaults - administrator password | Random generated string. See the notes that appear when you install for how to retrieve this. | | `queueManager.dev.adminPassword` | Developer defaults - administrator password | Random generated string. See the notes that appear when you install for how to retrieve this. |
| `queueManager.dev.appPassword` | Developer defaults - app password | `nil` (no password required to connect an MQ client) | | `queueManager.dev.appPassword` | Developer defaults - app password | `nil` (no password required to connect an MQ client) |
| `nameOverride` | Set to partially override the resource names used in this chart | `nil` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
@@ -70,4 +71,4 @@ The chart mounts a [Persistent Volume](http://kubernetes.io/docs/user-guide/pers
# Copyright # Copyright
© Copyright IBM Corporation 2017 © Copyright IBM Corporation 2017