Change storage parameters for new standard

This commit is contained in:
Arthur Barr
2017-09-28 13:12:29 +01:00
parent 9f48e01084
commit 22706a5a5c
6 changed files with 61 additions and 22 deletions

View File

@@ -15,5 +15,5 @@
apiVersion: v1 apiVersion: v1
description: IBM MQ queue manager description: IBM MQ queue manager
name: ibm-mqadvanced-server-dev name: ibm-mqadvanced-server-dev
version: 0.1.0 version: 1.0.0-beta
icon: https://developer.ibm.com/messaging/wp-content/uploads/sites/18/2017/07/IBM-MQ-Square-200.png icon: https://developer.ibm.com/messaging/wp-content/uploads/sites/18/2017/07/IBM-MQ-Square-200.png

View File

@@ -66,7 +66,7 @@ spec:
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
volumeMounts: volumeMounts:
- mountPath: "/mnt/mqm" - mountPath: "/mnt/mqm"
name: {{ template "fullname" . }}-{{ .Values.persistence.name }} name: "{{ template "fullname" . }}-{{ .Values.dataPVC.name }}"
{{- end }} {{- end }}
resources: resources:
limits: limits:
@@ -76,18 +76,25 @@ spec:
volumeClaimTemplates: volumeClaimTemplates:
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
- metadata: - metadata:
name: {{ template "fullname" . }}-{{ .Values.persistence.name }} name: "{{ template "fullname" . }}-{{ .Values.dataPVC.name }}"
labels: labels:
app: {{ template "fullname" . }} app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}" release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}" heritage: "{{ .Release.Service }}"
spec: spec:
{{- if .Values.persistence.storageClassName }} {{- if .Values.persistence.useDynamicProvisioning }}
storageClassName: {{ .Values.persistence.storageClassName | quote }} # If present, use the storageClassName from the values.yaml, else use the
# default storageClass setup by Kubernetes Administrator
#
# Setting storageClassName to nil means use the default storage class
storageClassName: {{ default nil .Values.dataPVC.storageClassName | quote }}
{{- else }}
# Disable dynamic provisioning
storageClassName: ""
{{- end }} {{- end }}
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
resources: resources:
requests: requests:
storage: {{ .Values.persistence.size | quote }} storage: {{ .Values.dataPVC.size | quote }}
{{- end }} {{- end }}

View File

@@ -14,8 +14,9 @@
# license must be set to "accept" to accept the terms of the IBM license # license must be set to "accept" to accept the terms of the IBM license
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 for Developers
repository: ibmcom/mq repository: ibmcom/mq
# tag is the tag to use for the container repository # tag is the tag to use for the container repository
tag: 9 tag: 9
@@ -23,18 +24,27 @@ image:
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
# data section specifies settings for the main persistent volume claim, which is used for data in /var/mqm
# persistence section specifies persistence settings which apply to the whole chart
persistence: persistence:
# enabled is whether to use Persistent Volumes or not
enabled: true enabled: true
# name sets part of the name for this persistent volume claim # useDynamicProvisioning is whether or not to use Storage Classes to dynamically create Persistent Volumes
useDynamicProvisioning: true
# dataPVC section specifies settings for the main Persistent Volume Claim, which is used for data in /var/mqm
dataPVC:
# name sets part of the name for this Persistent Volume Claim
name: "data" name: "data"
## storageClassName is the name of the storage class to use, or an empty string for no storage class ## storageClassName is the name of the Storage Class to use, or an empty string for no Storage Class
storageClassName: "" storageClassName: ""
## size is the minimum size of the persistent volume ## size is the minimum size of the Persistent Volume
size: 2Gi size: 2Gi
service: service:
name: qmgr name: qmgr
type: ClusterIP type: ClusterIP
resources: resources:
limits: limits:
cpu: 500m cpu: 500m
@@ -42,6 +52,7 @@ resources:
requests: requests:
cpu: 500m cpu: 500m
memory: 512Mi memory: 512Mi
# queueManager section specifies settings for the MQ Queue Manager # queueManager section specifies settings for the MQ Queue Manager
queueManager: 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.
@@ -52,5 +63,6 @@ queueManager:
adminPassword: adminPassword:
# appPassword sets the password of the app user # appPassword sets the password of the app user
appPassword: appPassword:
# 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:

View File

@@ -15,5 +15,5 @@
apiVersion: v1 apiVersion: v1
description: IBM MQ queue manager description: IBM MQ queue manager
name: ibm-mqadvanced-server-prod name: ibm-mqadvanced-server-prod
version: 0.1.0 version: 1.0.0-beta
icon: https://developer.ibm.com/messaging/wp-content/uploads/sites/18/2017/07/IBM-MQ-Square-200.png icon: https://developer.ibm.com/messaging/wp-content/uploads/sites/18/2017/07/IBM-MQ-Square-200.png

View File

@@ -51,7 +51,7 @@ spec:
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
volumeMounts: volumeMounts:
- mountPath: "/mnt/mqm" - mountPath: "/mnt/mqm"
name: {{ template "fullname" . }}-{{ .Values.persistence.name }} name: "{{ template "fullname" . }}-{{ .Values.dataPVC.name }}"
{{- end }} {{- end }}
# Set liveness probe to determine if the queue manager is running # Set liveness probe to determine if the queue manager is running
livenessProbe: livenessProbe:
@@ -67,7 +67,7 @@ spec:
exec: exec:
command: command:
- chkmqready - chkmqready
initialDelaySeconds: 5 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 3 timeoutSeconds: 3
failureThreshold: 1 failureThreshold: 1
@@ -79,18 +79,25 @@ spec:
volumeClaimTemplates: volumeClaimTemplates:
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
- metadata: - metadata:
name: {{ template "fullname" . }}-{{ .Values.persistence.name }} name: "{{ template "fullname" . }}-{{ .Values.dataPVC.name }}"
labels: labels:
app: {{ template "fullname" . }} app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}" release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}" heritage: "{{ .Release.Service }}"
spec: spec:
{{- if .Values.persistence.storageClassName }} {{- if .Values.persistence.useDynamicProvisioning }}
storageClassName: {{ .Values.persistence.storageClassName | quote }} ## If present, use the storageClassName from the values.yaml, else use the
## default storageClass setup by Kubernetes Administrator
##
## Setting storageClassName to nil means use the default storage class
storageClassName: {{ default nil .Values.dataPVC.storageClassName | quote }}
{{- else }}
## Disable dynamic provisioning
storageClassName: ""
{{- end }} {{- end }}
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
resources: resources:
requests: requests:
storage: {{ .Values.persistence.size | quote }} storage: {{ .Values.dataPVC.size | quote }}
{{- end }} {{- end }}

View File

@@ -14,6 +14,7 @@
# license must be set to "accept" to accept the terms of the IBM license # license must be set to "accept" to accept the terms of the IBM license
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:
@@ -23,18 +24,27 @@ image:
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
# persistence section specifies settings for the main persistent volume claim, which is used for data in /var/mqm
# persistence section specifies persistence settings which apply to the whole chart
persistence: persistence:
# enabled is whether to use Persistent Volumes or not
enabled: true enabled: true
# name sets part of the name for this persistent volume claim # useDynamicProvisioning is whether or not to use Storage Classes to dynamically create Persistent Volumes
useDynamicProvisioning: true
# dataPVC section specifies settings for the main Persistent Volume Claim, which is used for data in /var/mqm
dataPVC:
# name sets part of the name for this Persistent Volume Claim
name: "data" name: "data"
## storageClassName is the name of the storage class to use, or an empty string for no storage class # storageClassName is the name of the Storage Class to use, or an empty string for no Storage Class
storageClassName: "" storageClassName: ""
## size is the minimum size of the persistent volume # size is the minimum size of the Persistent Volume
size: 2Gi size: 2Gi
service: service:
name: qmgr name: qmgr
type: ClusterIP type: ClusterIP
resources: resources:
limits: limits:
cpu: 1 cpu: 1
@@ -42,11 +52,14 @@ resources:
requests: requests:
cpu: 1 cpu: 1
memory: 1Gi memory: 1Gi
# queueManager section specifies settings for the MQ Queue Manager # queueManager section specifies settings for the MQ Queue Manager
queueManager: 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 should be raised if your system cannot start the Queue Manager in 60 seconds
livenessDelay: 60 livenessDelay: 60