From 395ba08e2bc14ef28a0cae1fada97ed6cf2e777d Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 11 Oct 2018 13:02:53 +0000 Subject: [PATCH 001/153] Add global registry option to Bitnami charts --- bitnami/apache/Chart.yaml | 2 +- bitnami/apache/README.md | 1 + bitnami/apache/templates/_helpers.tpl | 15 ++++++++++ bitnami/apache/templates/deployment.yaml | 2 +- bitnami/apache/values.yaml | 6 ++++ bitnami/consul/Chart.yaml | 2 +- bitnami/consul/README.md | 1 + bitnami/consul/templates/_helpers.tpl | 12 ++++++-- bitnami/consul/values.yaml | 6 ++++ bitnami/elasticsearch/Chart.yaml | 2 +- bitnami/elasticsearch/README.md | 1 + bitnami/elasticsearch/templates/_helpers.tpl | 12 ++++++-- bitnami/elasticsearch/values-production.yaml | 6 ++++ bitnami/elasticsearch/values.yaml | 6 ++++ bitnami/etcd/Chart.yaml | 2 +- bitnami/etcd/README.md | 1 + bitnami/etcd/templates/_helpers.tpl | 13 +++++--- bitnami/etcd/values-production.yaml | 6 ++++ bitnami/etcd/values.yaml | 6 ++++ bitnami/external-dns/Chart.yaml | 2 +- bitnami/external-dns/README.md | 1 + bitnami/external-dns/templates/_helpers.tpl | 8 ++++- bitnami/external-dns/values.yaml | 6 ++++ bitnami/jenkins/Chart.yaml | 2 +- bitnami/jenkins/README.md | 1 + bitnami/jenkins/templates/_helpers.tpl | 15 ++++++++++ bitnami/jenkins/templates/deployment.yaml | 2 +- bitnami/jenkins/values.yaml | 6 ++++ bitnami/kafka/Chart.yaml | 2 +- bitnami/kafka/README.md | 1 + bitnami/kafka/templates/_helpers.tpl | 10 +++++-- bitnami/kafka/values-production.yaml | 11 +++++++ bitnami/kafka/values.yaml | 11 +++++++ bitnami/mean/Chart.yaml | 2 +- bitnami/mean/README.md | 1 + bitnami/mean/templates/_helpers.tpl | 15 ++++++++++ bitnami/mean/templates/deployment.yaml | 4 +-- bitnami/mean/values.yaml | 8 +++++ bitnami/memcached/Chart.yaml | 2 +- bitnami/memcached/README.md | 1 + bitnami/memcached/templates/_helpers.tpl | 15 ++++++++++ bitnami/memcached/templates/deployment.yaml | 2 +- bitnami/memcached/values.yaml | 6 ++++ bitnami/metrics-server/Chart.yaml | 2 +- bitnami/metrics-server/README.md | 1 + bitnami/metrics-server/templates/_helpers.tpl | 11 +++++-- bitnami/metrics-server/values.yaml | 6 ++++ bitnami/mysql/Chart.yaml | 2 +- bitnami/mysql/README.md | 1 + bitnami/mysql/templates/_helpers.tpl | 8 +++-- bitnami/mysql/values-production.yaml | 6 ++++ bitnami/mysql/values.yaml | 6 ++++ bitnami/nginx-ingress-controller/Chart.yaml | 2 +- bitnami/nginx-ingress-controller/README.md | 1 + .../templates/_helpers.tpl | 11 +++++-- bitnami/nginx-ingress-controller/values.yaml | 6 ++++ bitnami/nginx/Chart.yaml | 2 +- bitnami/nginx/README.md | 1 + bitnami/nginx/templates/_helpers.tpl | 15 ++++++++++ bitnami/nginx/templates/deployment.yaml | 2 +- bitnami/nginx/values.yaml | 8 ++++- bitnami/node/Chart.yaml | 2 +- bitnami/node/README.md | 9 +++--- bitnami/node/templates/_helpers.tpl | 15 ++++++++++ bitnami/node/templates/deployment.yaml | 4 +-- bitnami/node/values.yaml | 16 +++++++--- bitnami/postgresql/Chart.yaml | 2 +- bitnami/postgresql/README.md | 1 + bitnami/postgresql/templates/_helpers.tpl | 12 ++++++-- bitnami/postgresql/values-production.yaml | 6 ++++ bitnami/postgresql/values.yaml | 6 ++++ bitnami/tensorflow-inception/Chart.yaml | 2 +- bitnami/tensorflow-inception/README.md | 1 + .../templates/_helpers.tpl | 30 +++++++++++++++++++ .../templates/deployment.yaml | 2 +- .../templates/inception-job.yaml | 2 +- bitnami/tensorflow-inception/values.yaml | 6 ++++ bitnami/tomcat/Chart.yaml | 2 +- bitnami/tomcat/README.md | 1 + bitnami/tomcat/templates/_helpers.tpl | 15 ++++++++++ bitnami/tomcat/templates/deployment.yaml | 2 +- bitnami/tomcat/values.yaml | 6 ++++ bitnami/wildfly/Chart.yaml | 2 +- bitnami/wildfly/README.md | 1 + bitnami/wildfly/templates/_helpers.tpl | 15 ++++++++++ bitnami/wildfly/templates/deployment.yaml | 2 +- bitnami/wildfly/values.yaml | 6 ++++ bitnami/zookeeper/Chart.yaml | 2 +- bitnami/zookeeper/README.md | 1 + bitnami/zookeeper/templates/_helpers.tpl | 11 +++++-- bitnami/zookeeper/values.yaml | 6 ++++ 91 files changed, 451 insertions(+), 64 deletions(-) diff --git a/bitnami/apache/Chart.yaml b/bitnami/apache/Chart.yaml index 6c97d0279a..43ef136763 100644 --- a/bitnami/apache/Chart.yaml +++ b/bitnami/apache/Chart.yaml @@ -1,5 +1,5 @@ name: apache -version: 2.0.2 +version: 2.1.0 appVersion: 2.4.35 description: Chart for Apache HTTP Server keywords: diff --git a/bitnami/apache/README.md b/bitnami/apache/README.md index aba86f0022..a408c6e53c 100644 --- a/bitnami/apache/README.md +++ b/bitnami/apache/README.md @@ -46,6 +46,7 @@ The following tables lists the configurable parameters of the Apache chart and t | Parameter | Description | Default | | --------------------------------- | ------------------------------------- | --------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Apache image registry | `docker.io` | | `image.repository` | Apache Image name | `bitnami/apache` | | `image.tag` | Apache Image tag | `{VERSION}` | diff --git a/bitnami/apache/templates/_helpers.tpl b/bitnami/apache/templates/_helpers.tpl index 234480de71..77c680284a 100644 --- a/bitnami/apache/templates/_helpers.tpl +++ b/bitnami/apache/templates/_helpers.tpl @@ -14,3 +14,18 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 24 -}} {{- end -}} + +{{/* +Return the proper Apache image name +*/}} +{{- define "apache.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/apache/templates/deployment.yaml b/bitnami/apache/templates/deployment.yaml index 029999f9b1..7a0d10b426 100644 --- a/bitnami/apache/templates/deployment.yaml +++ b/bitnami/apache/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "apache.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} ports: - name: http diff --git a/bitnami/apache/values.yaml b/bitnami/apache/values.yaml index 8c5030de14..606df8f516 100644 --- a/bitnami/apache/values.yaml +++ b/bitnami/apache/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Apache image version ## ref: https://hub.docker.com/r/bitnami/apache/tags/ ## diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index 05256d2b59..2db0967d11 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -2,7 +2,7 @@ name: consul home: https://www.consul.io/ sources: - https://github.com/bitnami/consul -version: 2.0.4 +version: 2.1.0 appVersion: 1.2.3 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and diff --git a/bitnami/consul/README.md b/bitnami/consul/README.md index 969d6c20bc..a73b39461a 100644 --- a/bitnami/consul/README.md +++ b/bitnami/consul/README.md @@ -51,6 +51,7 @@ The following tables lists the configurable parameters of the Consul chart and t | Parameter | Description | Default | | ------------------------------------ | ------------------------------------------------------ | ---------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Consul image registry | `docker.io` | | `image.repository` | Consul image name | `bitnami/consul` | | `image.tag` | Consul image tag | `{VERSION}` | diff --git a/bitnami/consul/templates/_helpers.tpl b/bitnami/consul/templates/_helpers.tpl index 8b25e9ca85..8f80f1903d 100644 --- a/bitnami/consul/templates/_helpers.tpl +++ b/bitnami/consul/templates/_helpers.tpl @@ -26,7 +26,13 @@ Create chart name and version as used by the chart label. Return the proper Consul image name */}} {{- define "consul.image" -}} -{{- $registryName := default "docker.io" .Values.image.registry -}} -{{- $tag := default "latest" .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index ec2bc9042a..492a896d20 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Consul image version ## ref: https://hub.docker.com/r/bitnami/consul/tags/ ## diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 4ef13fa892..ba2d3bcd05 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.0.3 +version: 4.1.0 appVersion: 6.4.2 description: A highly scalable open-source full-text search and analytics engine keywords: diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index 83189f4add..2d4f3423ae 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -51,6 +51,7 @@ The following table lists the configurable parameters of the Elasticsearch chart | Parameter | Description | Default | |---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Elasticsearch image registry | `docker.io` | | `image.repository` | Elasticsearch image repository | `bitnami/elasticsearch` | | `image.tag` | Elasticsearch image tag | `{VERSION}` | diff --git a/bitnami/elasticsearch/templates/_helpers.tpl b/bitnami/elasticsearch/templates/_helpers.tpl index 3d22577fb8..bd2459e67a 100644 --- a/bitnami/elasticsearch/templates/_helpers.tpl +++ b/bitnami/elasticsearch/templates/_helpers.tpl @@ -26,9 +26,15 @@ Create chart name and version as used by the chart label. Return the proper ES image name */}} {{- define "elasticsearch.image" -}} -{{- $registryName := default "docker.io" .Values.image.registry -}} -{{- $tag := default "latest" .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{/* diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 244b4a4cb5..c72cb0e11b 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Elasticsearch image version ## ref: https://hub.docker.com/r/bitnami/elasticsearch/tags/ ## diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index 34939af6f6..ddced2bfdb 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Elasticsearch image version ## ref: https://hub.docker.com/r/bitnami/elasticsearch/tags/ ## diff --git a/bitnami/etcd/Chart.yaml b/bitnami/etcd/Chart.yaml index f6b6513ad9..58df89e9db 100644 --- a/bitnami/etcd/Chart.yaml +++ b/bitnami/etcd/Chart.yaml @@ -1,5 +1,5 @@ name: etcd -version: 1.1.6 +version: 1.2.0 appVersion: 3.3.10 description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines keywords: diff --git a/bitnami/etcd/README.md b/bitnami/etcd/README.md index 574dc68e4b..593dbe5671 100644 --- a/bitnami/etcd/README.md +++ b/bitnami/etcd/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the etcd chart and the | Parameter | Description | Default | |---------------------------------------|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | etcd image registry | `docker.io` | | `image.repository` | etcd Image name | `bitnami/etcd` | | `image.tag` | etcd Image tag | `{VERSION}` | diff --git a/bitnami/etcd/templates/_helpers.tpl b/bitnami/etcd/templates/_helpers.tpl index 23bf93b72f..f24026ad58 100644 --- a/bitnami/etcd/templates/_helpers.tpl +++ b/bitnami/etcd/templates/_helpers.tpl @@ -27,10 +27,15 @@ Return the proper etcd image name */}} {{- define "etcd.image" -}} {{- $registryName := .Values.image.registry -}} -{{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} -{{/* {{/* Return the proper etcd peer protocol @@ -81,4 +86,4 @@ Return the proper etcdctl authentication options {{- if .Values.auth.client.enableAuthentication -}} {{- printf "%s" $caOption -}} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/bitnami/etcd/values-production.yaml b/bitnami/etcd/values-production.yaml index e00caf201d..dd98694127 100644 --- a/bitnami/etcd/values-production.yaml +++ b/bitnami/etcd/values-production.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami etcd image version ## ref: https://hub.docker.com/r/bitnami/etcd/tags/ ## diff --git a/bitnami/etcd/values.yaml b/bitnami/etcd/values.yaml index edf8ee6ec5..19363067f6 100644 --- a/bitnami/etcd/values.yaml +++ b/bitnami/etcd/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami etcd image version ## ref: https://hub.docker.com/r/bitnami/etcd/tags/ ## diff --git a/bitnami/external-dns/Chart.yaml b/bitnami/external-dns/Chart.yaml index 031302034a..7cb520dc88 100644 --- a/bitnami/external-dns/Chart.yaml +++ b/bitnami/external-dns/Chart.yaml @@ -1,5 +1,5 @@ name: external-dns -version: 1.0.4 +version: 1.1.0 appVersion: 0.5.7 description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable. keywords: diff --git a/bitnami/external-dns/README.md b/bitnami/external-dns/README.md index 6eaa1efe16..bb54c690c4 100644 --- a/bitnami/external-dns/README.md +++ b/bitnami/external-dns/README.md @@ -48,6 +48,7 @@ The following table lists the configurable parameters of the external-dns chart | Parameter | Description | Default | | ------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | ExternalDNS image registry | `docker.io` | | `image.repository` | ExternalDNS Image name | `bitnami/external-dns` | | `image.tag` | ExternalDNS Image tag | `{VERSION}` | diff --git a/bitnami/external-dns/templates/_helpers.tpl b/bitnami/external-dns/templates/_helpers.tpl index da4540e0ef..ec57407992 100644 --- a/bitnami/external-dns/templates/_helpers.tpl +++ b/bitnami/external-dns/templates/_helpers.tpl @@ -27,8 +27,14 @@ Return the proper external-dns image name */}} {{- define "external-dns.image" -}} {{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{/* diff --git a/bitnami/external-dns/values.yaml b/bitnami/external-dns/values.yaml index f1b613913f..37ece2ddac 100755 --- a/bitnami/external-dns/values.yaml +++ b/bitnami/external-dns/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami external-dns image version ## ref: https://hub.docker.com/r/bitnami/external-dns/tags/ ## diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index f500bb0e5e..75a290b23d 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -1,5 +1,5 @@ name: jenkins -version: 1.1.3 +version: 1.2.0 appVersion: 2.138.2 description: The leading open source automation server keywords: diff --git a/bitnami/jenkins/README.md b/bitnami/jenkins/README.md index d2eb1ca562..f1f50b84c0 100644 --- a/bitnami/jenkins/README.md +++ b/bitnami/jenkins/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the Jenkins chart and | Parameter | Description | Default | |----------------------------|----------------------------------------|---------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Jenkins image registry | `docker.io` | | `image.repository` | Jenkins Image name | `bitnami/jenkins` | | `image.tag` | Jenkins Image tag | `{VERSION}` | diff --git a/bitnami/jenkins/templates/_helpers.tpl b/bitnami/jenkins/templates/_helpers.tpl index f0d83d2edb..3759db68ab 100644 --- a/bitnami/jenkins/templates/_helpers.tpl +++ b/bitnami/jenkins/templates/_helpers.tpl @@ -14,3 +14,18 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper Jenkins image name +*/}} +{{- define "jenkins.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/jenkins/templates/deployment.yaml b/bitnami/jenkins/templates/deployment.yaml index 4f48cba701..3c06e91362 100644 --- a/bitnami/jenkins/templates/deployment.yaml +++ b/bitnami/jenkins/templates/deployment.yaml @@ -27,7 +27,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "jenkins.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: JENKINS_USERNAME diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index 1783fa7fce..184bb58e01 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Jenkins image version ## ref: https://hub.docker.com/r/bitnami/jenkins/tags/ ## diff --git a/bitnami/kafka/Chart.yaml b/bitnami/kafka/Chart.yaml index ad66515d34..1636c2a8b7 100644 --- a/bitnami/kafka/Chart.yaml +++ b/bitnami/kafka/Chart.yaml @@ -1,5 +1,5 @@ name: kafka -version: 1.0.2 +version: 1.1.0 appVersion: 2.0.0 description: Apache Kafka is a distributed streaming platform. keywords: diff --git a/bitnami/kafka/README.md b/bitnami/kafka/README.md index a201726f02..bc2c59e9ce 100644 --- a/bitnami/kafka/README.md +++ b/bitnami/kafka/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the Kafka chart and th | Parameter | Description | Default | |----------------------------------|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Kafka image registry | `docker.io` | | `image.repository` | Kafka Image name | `bitnami/kafka` | | `image.tag` | Kafka Image tag | `{VERSION}` | diff --git a/bitnami/kafka/templates/_helpers.tpl b/bitnami/kafka/templates/_helpers.tpl index a4f76155ef..15a16f57bf 100644 --- a/bitnami/kafka/templates/_helpers.tpl +++ b/bitnami/kafka/templates/_helpers.tpl @@ -27,8 +27,14 @@ Return the proper Kafka image name */}} {{- define "kafka.image" -}} {{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{/* @@ -56,4 +62,4 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "kafka.zookeeper.fullname" -}} {{- $name := default "zookeeper" .Values.zookeeper.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/bitnami/kafka/values-production.yaml b/bitnami/kafka/values-production.yaml index 8f9ec3a0f3..b10285b9cb 100644 --- a/bitnami/kafka/values-production.yaml +++ b/bitnami/kafka/values-production.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Kafka image version ## ref: https://hub.docker.com/r/bitnami/kafka/tags/ ## @@ -319,6 +325,11 @@ metrics: - kafka.network:* - kafka.log:* +## +## Zookeeper chart configuration +## +## https://github.com/bitnami/charts/blob/master/bitnami/zookeeper/values.yaml +## zookeeper: enabled: true diff --git a/bitnami/kafka/values.yaml b/bitnami/kafka/values.yaml index 471975df2e..7dafb6b5ca 100644 --- a/bitnami/kafka/values.yaml +++ b/bitnami/kafka/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Kafka image version ## ref: https://hub.docker.com/r/bitnami/kafka/tags/ ## @@ -319,6 +325,11 @@ metrics: - kafka.network:* - kafka.log:* +## +## Zookeeper chart configuration +## +## https://github.com/bitnami/charts/blob/master/bitnami/zookeeper/values.yaml +## zookeeper: enabled: true diff --git a/bitnami/mean/Chart.yaml b/bitnami/mean/Chart.yaml index d4046d541a..d0f9959fa2 100644 --- a/bitnami/mean/Chart.yaml +++ b/bitnami/mean/Chart.yaml @@ -1,5 +1,5 @@ name: mean -version: 4.0.2 +version: 4.1.0 appVersion: 3.6.4 description: MEAN is a free and open-source JavaScript software stack for building dynamic web sites and web applications. The MEAN stack is MongoDB, Express.js, Angular, and Node.js. Because all components of the MEAN stack support programs written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. keywords: diff --git a/bitnami/mean/README.md b/bitnami/mean/README.md index d64d49ddd2..8e95210fe2 100644 --- a/bitnami/mean/README.md +++ b/bitnami/mean/README.md @@ -51,6 +51,7 @@ The following table lists the configurable parameters of the MEAN chart and thei | Parameter | Description | Default | |-----------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | NodeJS image registry | `docker.io` | | `image.repository` | NodeJS Image name | `bitnami/node` | | `image.tag` | NodeJS Image tag | `{VERSION}` | diff --git a/bitnami/mean/templates/_helpers.tpl b/bitnami/mean/templates/_helpers.tpl index 31a358e458..bb3654d0ff 100644 --- a/bitnami/mean/templates/_helpers.tpl +++ b/bitnami/mean/templates/_helpers.tpl @@ -40,3 +40,18 @@ Custom template to get proper service name {{- printf "%s-%s" .Release.Name "mongodb-binding" | trunc 63 | trimSuffix "-" -}} {{- end }} {{- end -}} + +{{/* +Return the proper MEAN image name +*/}} +{{- define "mean.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/mean/templates/deployment.yaml b/bitnami/mean/templates/deployment.yaml index 9b378c1688..9475cb40d6 100644 --- a/bitnami/mean/templates/deployment.yaml +++ b/bitnami/mean/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: - name: app mountPath: /app - name: npm-install - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "mean.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} workingDir: /app command: ['/bin/bash', '-c', 'useradd bitnami && chown -R bitnami:bitnami /app && npm install'] @@ -44,7 +44,7 @@ spec: mountPath: /app containers: - name: {{ template "mean.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "mean.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: {{- if .Values.mongodb.install }} diff --git a/bitnami/mean/values.yaml b/bitnami/mean/values.yaml index dc1e0e94de..58f3cad285 100644 --- a/bitnami/mean/values.yaml +++ b/bitnami/mean/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami node image version ## ref: https://hub.docker.com/r/bitnami/node/tags/ ## @@ -84,6 +90,8 @@ resources: {} ## ## MongoDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mongodb/values.yaml +## mongodb: ## MongoDB admin password ## ref: https://github.com/bitnami/bitnami-docker-MongoDB/blob/master/README.md#setting-the-root-password-on-first-run diff --git a/bitnami/memcached/Chart.yaml b/bitnami/memcached/Chart.yaml index b2c2e34df2..23e7f37c63 100644 --- a/bitnami/memcached/Chart.yaml +++ b/bitnami/memcached/Chart.yaml @@ -1,5 +1,5 @@ name: memcached -version: 1.1.0 +version: 1.2.0 appVersion: 1.5.11 description: Chart for Memcached keywords: diff --git a/bitnami/memcached/README.md b/bitnami/memcached/README.md index 93e97395eb..7b28b2b546 100644 --- a/bitnami/memcached/README.md +++ b/bitnami/memcached/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the Memcached chart an | Parameter | Description | Default | |-----------------------------|-------------------------------------|---------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Memcached image registry | `docker.io` | | `image.repository` | Memcached Image name | `bitnami/memcached` | | `image.tag` | Memcached Image tag | `{VERSION}` | diff --git a/bitnami/memcached/templates/_helpers.tpl b/bitnami/memcached/templates/_helpers.tpl index 234480de71..26aa1cad59 100644 --- a/bitnami/memcached/templates/_helpers.tpl +++ b/bitnami/memcached/templates/_helpers.tpl @@ -14,3 +14,18 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 24 -}} {{- end -}} + +{{/* +Return the proper Memcached image name +*/}} +{{- define "memcached.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/memcached/templates/deployment.yaml b/bitnami/memcached/templates/deployment.yaml index 5e0344ec18..bcbaaf70d8 100644 --- a/bitnami/memcached/templates/deployment.yaml +++ b/bitnami/memcached/templates/deployment.yaml @@ -32,7 +32,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "memcached.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: MEMCACHED_USERNAME diff --git a/bitnami/memcached/values.yaml b/bitnami/memcached/values.yaml index bd20d1d22a..a1957d5794 100644 --- a/bitnami/memcached/values.yaml +++ b/bitnami/memcached/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Memcached image version ## ref: https://hub.docker.com/r/bitnami/memcached/tags/ ## diff --git a/bitnami/metrics-server/Chart.yaml b/bitnami/metrics-server/Chart.yaml index 10c6ecc5e2..71bc3fd2b3 100644 --- a/bitnami/metrics-server/Chart.yaml +++ b/bitnami/metrics-server/Chart.yaml @@ -1,5 +1,5 @@ name: metrics-server -version: 2.0.5 +version: 2.1.0 appVersion: 0.3.1 description: Metrics Server is a cluster-wide aggregator of resource usage data. Metrics Server collects metrics from the Summary API, exposed by Kubelet on each node. keywords: diff --git a/bitnami/metrics-server/README.md b/bitnami/metrics-server/README.md index 34b7e50888..136c2058ac 100644 --- a/bitnami/metrics-server/README.md +++ b/bitnami/metrics-server/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the Metrics Server cha | Parameter | Description | Default | |--------------------------|-----------------------------------------------------------------------------|----------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Metrics Server image registry | `docker.io` | | `image.repository` | Metrics Server image name | `bitnami/metrics-server` | | `image.tag` | Metrics Server image tag | `{VERSION}` | diff --git a/bitnami/metrics-server/templates/_helpers.tpl b/bitnami/metrics-server/templates/_helpers.tpl index 4e90a0ff6a..04df2699ef 100644 --- a/bitnami/metrics-server/templates/_helpers.tpl +++ b/bitnami/metrics-server/templates/_helpers.tpl @@ -37,6 +37,13 @@ Create the name of the service account to use Return the proper metrics-server image name */}} {{- define "metrics-server.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} -{{- end -}} \ No newline at end of file +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/metrics-server/values.yaml b/bitnami/metrics-server/values.yaml index ddbc0aa1ae..735014ddc6 100644 --- a/bitnami/metrics-server/values.yaml +++ b/bitnami/metrics-server/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Metrics Server image version ## ref: https://hub.docker.com/r/bitnami/metrics-server/tags/ ## diff --git a/bitnami/mysql/Chart.yaml b/bitnami/mysql/Chart.yaml index 2e0fc41ad6..915e44ac7a 100644 --- a/bitnami/mysql/Chart.yaml +++ b/bitnami/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 4.0.6 +version: 4.1.0 appVersion: 5.7.23 description: Chart to create a Highly available MySQL cluster keywords: diff --git a/bitnami/mysql/README.md b/bitnami/mysql/README.md index 885ce67417..beebfbc2a3 100644 --- a/bitnami/mysql/README.md +++ b/bitnami/mysql/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the MySQL chart and th | Parameter | Description | Default | |-------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | MySQL image registry | `docker.io` | | `image.repository` | MySQL Image name | `bitnami/mysql` | | `image.tag` | MySQL Image tag | `{VERSION}` | diff --git a/bitnami/mysql/templates/_helpers.tpl b/bitnami/mysql/templates/_helpers.tpl index 668cef0f48..c17ba8707f 100644 --- a/bitnami/mysql/templates/_helpers.tpl +++ b/bitnami/mysql/templates/_helpers.tpl @@ -32,7 +32,12 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper MySQL image name */}} {{- define "mysql.image" -}} -{{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} @@ -47,4 +52,3 @@ Return the proper MySQL metrics exporter image name {{- $tag := .Values.metrics.image.tag | toString -}} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} - diff --git a/bitnami/mysql/values-production.yaml b/bitnami/mysql/values-production.yaml index f40e585d9e..3d263916ca 100644 --- a/bitnami/mysql/values-production.yaml +++ b/bitnami/mysql/values-production.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami MySQL image ## ref: https://hub.docker.com/r/bitnami/mysql/tags/ ## diff --git a/bitnami/mysql/values.yaml b/bitnami/mysql/values.yaml index 94bbea4b51..5bf493aca7 100644 --- a/bitnami/mysql/values.yaml +++ b/bitnami/mysql/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami MySQL image ## ref: https://hub.docker.com/r/bitnami/mysql/tags/ ## diff --git a/bitnami/nginx-ingress-controller/Chart.yaml b/bitnami/nginx-ingress-controller/Chart.yaml index 4c50e79146..58d9cb4c10 100644 --- a/bitnami/nginx-ingress-controller/Chart.yaml +++ b/bitnami/nginx-ingress-controller/Chart.yaml @@ -1,5 +1,5 @@ name: nginx-ingress-controller -version: 2.0.4 +version: 2.1.0 appVersion: 0.20.0 description: Chart for the nginx Ingress controller keywords: diff --git a/bitnami/nginx-ingress-controller/README.md b/bitnami/nginx-ingress-controller/README.md index 581550ad78..ab19befa7b 100644 --- a/bitnami/nginx-ingress-controller/README.md +++ b/bitnami/nginx-ingress-controller/README.md @@ -48,6 +48,7 @@ The following tables lists the configurable parameters of the nginx-ingress-cont Parameter | Description | Default --- | --- | --- +`global.registry` | Global chart image registry | `nil` `name` | name of the controller component | `controller` `image.registry` | name of the container image registry | `docker.io` `image.repository` | controller container image repository | `bitnami/nginx-ingress-controller` diff --git a/bitnami/nginx-ingress-controller/templates/_helpers.tpl b/bitnami/nginx-ingress-controller/templates/_helpers.tpl index 6285744faf..0c993634ee 100644 --- a/bitnami/nginx-ingress-controller/templates/_helpers.tpl +++ b/bitnami/nginx-ingress-controller/templates/_helpers.tpl @@ -62,8 +62,15 @@ Create the name of the service account to use Return the proper nginx-ingress-controller image name */}} {{- define "nginx-ingress-controller.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{/* @@ -71,4 +78,4 @@ Create chart name and version as used by the chart label. */}} {{- define "nginx-ingress-controller.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index 727aa518d2..fb076b4a43 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami NGINX Ingress controller image version ## ref: https://hub.docker.com/r/bitnami/nginx-ingress-controller/tags/ name: controller diff --git a/bitnami/nginx/Chart.yaml b/bitnami/nginx/Chart.yaml index e6480844b9..f172ef7cd1 100644 --- a/bitnami/nginx/Chart.yaml +++ b/bitnami/nginx/Chart.yaml @@ -1,5 +1,5 @@ name: nginx -version: 1.0.1 +version: 1.1.0 appVersion: 1.14.0 description: Chart for the nginx server keywords: diff --git a/bitnami/nginx/README.md b/bitnami/nginx/README.md index 8b5631d982..eb63bab901 100644 --- a/bitnami/nginx/README.md +++ b/bitnami/nginx/README.md @@ -44,6 +44,7 @@ The following tables lists the configurable parameters of the NGINX Open Source | Parameter | Description | Default | | ------------------------- | ------------------------------ | --------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | NGINX image registry | `docker.io` | | `image.repository` | NGINX Image name | `bitnami/nginx` | | `image.tag` | NGINX Image tag | `{VERSION}` | diff --git a/bitnami/nginx/templates/_helpers.tpl b/bitnami/nginx/templates/_helpers.tpl index 234480de71..690e29ac94 100644 --- a/bitnami/nginx/templates/_helpers.tpl +++ b/bitnami/nginx/templates/_helpers.tpl @@ -14,3 +14,18 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 24 -}} {{- end -}} + +{{/* +Return the proper NGINX image name +*/}} +{{- define "nginx.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/nginx/templates/deployment.yaml b/bitnami/nginx/templates/deployment.yaml index ac258488f5..42fddb52eb 100644 --- a/bitnami/nginx/templates/deployment.yaml +++ b/bitnami/nginx/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "nginx.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} ports: - name: http diff --git a/bitnami/nginx/values.yaml b/bitnami/nginx/values.yaml index e0e4a015e8..6e4864a471 100644 --- a/bitnami/nginx/values.yaml +++ b/bitnami/nginx/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami NGINX image version ## ref: https://hub.docker.com/r/bitnami/nginx/tags/ ## @@ -15,7 +21,7 @@ image: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## # pullSecrets: - # - myRegistrKeySecretName + # - myRegistrKeySecretName ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index 80d605dac3..879481bb05 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,5 +1,5 @@ name: node -version: 6.0.2 +version: 6.1.0 appVersion: 10.7.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: diff --git a/bitnami/node/README.md b/bitnami/node/README.md index 884049db98..ef73f91dbc 100644 --- a/bitnami/node/README.md +++ b/bitnami/node/README.md @@ -51,6 +51,7 @@ The following table lists the configurable parameters of the Node chart and thei | Parameter | Description | Default | |-----------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | NodeJS image registry | `docker.io` | | `image.repository` | NodeJS Image name | `bitnami/node` | | `image.tag` | NodeJS Image tag | `{VERSION}` | @@ -153,7 +154,7 @@ ingress: ``` $ kubectl create secret generic my-database-secret --from-literal=host=YOUR_DATABASE_HOST --from-literal=port=YOUR_DATABASE_PORT --from-literal=username=YOUR_DATABASE_USER --from-literal=password=YOUR_DATABASE_PASSWORD --from-literal=database=YOUR_DATABASE_NAME ``` - + `YOUR_DATABASE_HOST`, `YOUR_DATABASE_PORT`, `YOUR_DATABASE_USER`, `YOUR_DATABASE_PASSWORD`, and `YOUR_DATABASE_NAME` are placeholders that must be replaced with correct values. 2. Deploy the node chart specifying the secret name @@ -168,7 +169,7 @@ ingress: 2. Install the Open Service Broker for Azure in your Kubernetes cluster following [this instructions](https://github.com/Azure/open-service-broker-azure/tree/master/contrib/k8s/charts/open-service-broker-azure) > TIP: you may want to install the osba chart setting the `modules.minStability=EXPERIMENTAL` to see all the available services. -> +> > $ helm install azure/open-service-broker-azure --name osba --namespace osba \ > --set azure.subscriptionId=$AZURE_SUBSCRIPTION_ID \ > --set azure.tenantId=$AZURE_TENANT_ID \ @@ -196,7 +197,7 @@ ingress: - "0.0.0.0/0" ``` - Please update the `YOUR_AZURE_LOCATION` placeholder in the above example. + Please update the `YOUR_AZURE_LOCATION` placeholder in the above example. ``` $ kubectl create -f mongodb-service-instance.yml @@ -214,7 +215,7 @@ Deploying the helm chart enabling the Azure external database makes the followin - You would want an Azure CosmosDB MongoDB database - Your application uses DATABASE_HOST, DATABASE_PORT, DATABASE_USER, DATABASE_PASSWORD, and DATABASE_NAME environment variables to connect to the database. -You can read more about the kubernetes service catalog at https://github.com/kubernetes-bitnami/service-catalog +You can read more about the kubernetes service catalog at https://github.com/kubernetes-bitnami/service-catalog ## Upgrading diff --git a/bitnami/node/templates/_helpers.tpl b/bitnami/node/templates/_helpers.tpl index a4a3ccd07c..4fb3d0dc5a 100644 --- a/bitnami/node/templates/_helpers.tpl +++ b/bitnami/node/templates/_helpers.tpl @@ -40,3 +40,18 @@ Custom template to get proper service name {{- printf "%s-%s" .Release.Name "mongodb-binding" | trunc 63 | trimSuffix "-" -}} {{- end }} {{- end -}} + +{{/* +Return the proper Node image name +*/}} +{{- define "node.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/node/templates/deployment.yaml b/bitnami/node/templates/deployment.yaml index 7d838952b5..a3d95404cd 100644 --- a/bitnami/node/templates/deployment.yaml +++ b/bitnami/node/templates/deployment.yaml @@ -36,7 +36,7 @@ spec: - name: app mountPath: /app - name: npm-install - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "node.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} workingDir: /app command: ['/bin/bash', '-c', 'useradd bitnami && chown -R bitnami:bitnami /app && npm install'] @@ -45,7 +45,7 @@ spec: mountPath: /app containers: - name: {{ template "node.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "node.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: {{- if .Values.mongodb.install }} diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index ad86546fe9..691bde17bb 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami node image version ## ref: https://hub.docker.com/r/bitnami/node/tags/ ## @@ -15,14 +21,14 @@ image: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## # pullSecrets: - # - myRegistrKeySecretName + # - myRegistrKeySecretName gitImage: registry: docker.io repository: alpine/git tag: latest pullPolicy: IfNotPresent - + ## Git repository http/https ## repository: https://github.com/bitnami/sample-mean.git @@ -83,6 +89,8 @@ resources: {} ## ## MongoDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mongodb/values.yaml +## mongodb: ## Whether to deploy a mongodb server to satisfy the applications database requirements. ## To use an external database set this to false and configure the externaldb parameters @@ -92,7 +100,7 @@ mongodb: ## mongodbUsername: user mongodbDatabase: test_db - mongodbPassword: secret_password + mongodbPassword: secret_password ## Provision an external database (Only if mongodb.install is false) ## You can: @@ -110,7 +118,7 @@ externaldb: broker: serviceInstanceName: -## Configure ingress resource that allow you to access the application. +## Configure ingress resource that allow you to access the application. ## ref: http://kubernetes.io/docs/user-guide/ingress/ ## ingress: diff --git a/bitnami/postgresql/Chart.yaml b/bitnami/postgresql/Chart.yaml index 198c7826df..6c7b22be68 100644 --- a/bitnami/postgresql/Chart.yaml +++ b/bitnami/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 3.0.2 +version: 3.1.0 appVersion: 10.5.0 description: Chart for PostgreSQL keywords: diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md index b9613f28bb..96a8ab5921 100644 --- a/bitnami/postgresql/README.md +++ b/bitnami/postgresql/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | Parameter | Description | Default | |----------------------------|-------------------------------------------|---------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | PostgreSQL image registry | `docker.io` | | `image.repository` | PostgreSQL Image name | `bitnami/postgresql` | | `image.tag` | PostgreSQL Image tag | `{VERSION}` | diff --git a/bitnami/postgresql/templates/_helpers.tpl b/bitnami/postgresql/templates/_helpers.tpl index b064fde20e..2496bb6ddb 100644 --- a/bitnami/postgresql/templates/_helpers.tpl +++ b/bitnami/postgresql/templates/_helpers.tpl @@ -39,9 +39,15 @@ Create chart name and version as used by the chart label. Return the proper PostgreSQL image name */}} {{- define "postgresql.image" -}} -{{- $registryName := default "docker.io" .Values.image.registry -}} -{{- $tag := default "latest" .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{/* diff --git a/bitnami/postgresql/values-production.yaml b/bitnami/postgresql/values-production.yaml index c22dcd08bc..e25ada2953 100644 --- a/bitnami/postgresql/values-production.yaml +++ b/bitnami/postgresql/values-production.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami PostgreSQL image version ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ ## diff --git a/bitnami/postgresql/values.yaml b/bitnami/postgresql/values.yaml index aa3a33389b..435cabe85c 100644 --- a/bitnami/postgresql/values.yaml +++ b/bitnami/postgresql/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami PostgreSQL image version ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ ## diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index ab203dab08..1bc42a7ff5 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,5 +1,5 @@ name: tensorflow-inception -version: 1.0.2 +version: 1.1.0 appVersion: 1.10.1 description: Open-source software library for serving machine learning models keywords: diff --git a/bitnami/tensorflow-inception/README.md b/bitnami/tensorflow-inception/README.md index 6818ff71ed..78b9c35894 100755 --- a/bitnami/tensorflow-inception/README.md +++ b/bitnami/tensorflow-inception/README.md @@ -62,6 +62,7 @@ The following tables lists the configurable parameters of the TensorFlow Incepti | Parameter | Description | Default | | ------------------------------- | -------------------------------------- | ---------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `server.image.registry` | TensorFlow Serving image registry | `docker.io` | | `server.image.repository` | TensorFlow Serving Image name | `bitnami/tensorflow-serving` | | `server.image.tag` | TensorFlow Serving Image tag | `{VERSION}` | diff --git a/bitnami/tensorflow-inception/templates/_helpers.tpl b/bitnami/tensorflow-inception/templates/_helpers.tpl index f0d83d2edb..7627af4ecf 100644 --- a/bitnami/tensorflow-inception/templates/_helpers.tpl +++ b/bitnami/tensorflow-inception/templates/_helpers.tpl @@ -14,3 +14,33 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper tensorflow-inception server image name +*/}} +{{- define "tensorflow-inception.server.image" -}} +{{- $registryName := .Values.server.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.server.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.server.image.repository -}} +{{- $tag := .Values.server.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} + +{{/* +Return the proper tensorflow-inception client image name +*/}} +{{- define "tensorflow-inception.client.image" -}} +{{- $registryName := .Values.client.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.client.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.client.image.repository -}} +{{- $tag := .Values.client.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/tensorflow-inception/templates/deployment.yaml b/bitnami/tensorflow-inception/templates/deployment.yaml index 91890164c0..8051abc4bd 100644 --- a/bitnami/tensorflow-inception/templates/deployment.yaml +++ b/bitnami/tensorflow-inception/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.server.image.registry }}/{{ .Values.server.image.repository }}:{{ .Values.server.image.tag }}" + image: "{{ template "tensorflow-inception.server.image" . }}" imagePullPolicy: {{ .Values.server.image.pullPolicy | quote }} readinessProbe: tcpSocket: diff --git a/bitnami/tensorflow-inception/templates/inception-job.yaml b/bitnami/tensorflow-inception/templates/inception-job.yaml index 114c2236ab..21ec859e42 100644 --- a/bitnami/tensorflow-inception/templates/inception-job.yaml +++ b/bitnami/tensorflow-inception/templates/inception-job.yaml @@ -20,7 +20,7 @@ spec: {{- end}} {{- end }} - name: seed - image: "{{ .Values.client.image.registry }}/{{ .Values.client.image.repository }}:{{ .Values.client.image.tag }}" + image: "{{ template "tensorflow-inception.client.image" . }}" imagePullPolicy: {{ .Values.client.image.pullPolicy | quote }} command: - "/bin/sh" diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index ec68070bd5..1e54650cdc 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## TensorFlow Serving server image version ## ref: https://hub.docker.com/r/bitnami/tensorflow-serving/tags/ ## diff --git a/bitnami/tomcat/Chart.yaml b/bitnami/tomcat/Chart.yaml index a79a675bfd..b3f80df176 100644 --- a/bitnami/tomcat/Chart.yaml +++ b/bitnami/tomcat/Chart.yaml @@ -1,5 +1,5 @@ name: tomcat -version: 1.0.2 +version: 1.1.0 appVersion: 8.5.34 description: Chart for Apache Tomcat keywords: diff --git a/bitnami/tomcat/README.md b/bitnami/tomcat/README.md index a2b8e8d1a1..fd0bf880a0 100644 --- a/bitnami/tomcat/README.md +++ b/bitnami/tomcat/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the Tomcat chart and t | Parameter | Description | Default | |-------------------------------|----------------------------------------------|---------------------------------------------------------- | +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Tomcat image registry | `docker.io` | | `image.repository` | Tomcat Image name | `bitnami/tomcat` | | `image.tag` | Tomcat Image tag | `{VERSION}` | diff --git a/bitnami/tomcat/templates/_helpers.tpl b/bitnami/tomcat/templates/_helpers.tpl index f0d83d2edb..2b7bf7d2a6 100644 --- a/bitnami/tomcat/templates/_helpers.tpl +++ b/bitnami/tomcat/templates/_helpers.tpl @@ -14,3 +14,18 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper Tomcat image name +*/}} +{{- define "tomcat.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/tomcat/templates/deployment.yaml b/bitnami/tomcat/templates/deployment.yaml index d1418821dc..654da418d9 100644 --- a/bitnami/tomcat/templates/deployment.yaml +++ b/bitnami/tomcat/templates/deployment.yaml @@ -27,7 +27,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "tomcat.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: TOMCAT_USERNAME diff --git a/bitnami/tomcat/values.yaml b/bitnami/tomcat/values.yaml index 032095894c..6df1d5ab8b 100644 --- a/bitnami/tomcat/values.yaml +++ b/bitnami/tomcat/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Tomcat image version ## ref: https://hub.docker.com/r/bitnami/tomcat/tags/ ## diff --git a/bitnami/wildfly/Chart.yaml b/bitnami/wildfly/Chart.yaml index b76157c94e..9158ca69fd 100644 --- a/bitnami/wildfly/Chart.yaml +++ b/bitnami/wildfly/Chart.yaml @@ -1,5 +1,5 @@ name: wildfly -version: 1.0.2 +version: 1.1.0 appVersion: 14.0.1 description: Chart for Wildfly keywords: diff --git a/bitnami/wildfly/README.md b/bitnami/wildfly/README.md index 933544aaa1..96f0b55f42 100644 --- a/bitnami/wildfly/README.md +++ b/bitnami/wildfly/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the WildFly chart and | Parameter | Description | Default | |----------------------------|----------------------------------------|------------------------------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | WildFly image registry | `docker.io` | | `image.repository` | WildFly Image name | `bitnami/wildfly` | | `image.tag` | WildFly Image tag | `{VERSION}` | diff --git a/bitnami/wildfly/templates/_helpers.tpl b/bitnami/wildfly/templates/_helpers.tpl index 234480de71..db519982a4 100644 --- a/bitnami/wildfly/templates/_helpers.tpl +++ b/bitnami/wildfly/templates/_helpers.tpl @@ -14,3 +14,18 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 24 -}} {{- end -}} + +{{/* +Return the proper Wildfly image name +*/}} +{{- define "wildfly.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/wildfly/templates/deployment.yaml b/bitnami/wildfly/templates/deployment.yaml index 9e51972959..61ed98e47a 100644 --- a/bitnami/wildfly/templates/deployment.yaml +++ b/bitnami/wildfly/templates/deployment.yaml @@ -27,7 +27,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "wildfly.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: WILDFLY_USERNAME diff --git a/bitnami/wildfly/values.yaml b/bitnami/wildfly/values.yaml index 05957e7d73..29a1b79cfa 100644 --- a/bitnami/wildfly/values.yaml +++ b/bitnami/wildfly/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami WildFly image version ## ref: https://hub.docker.com/r/bitnami/wildfly/tags/ ## diff --git a/bitnami/zookeeper/Chart.yaml b/bitnami/zookeeper/Chart.yaml index b71b96ca6c..b8aa48c83c 100644 --- a/bitnami/zookeeper/Chart.yaml +++ b/bitnami/zookeeper/Chart.yaml @@ -1,5 +1,5 @@ name: zookeeper -version: 1.0.3 +version: 1.1.0 appVersion: 3.4.12 description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications. keywords: diff --git a/bitnami/zookeeper/README.md b/bitnami/zookeeper/README.md index 189068d25f..32187edbae 100644 --- a/bitnami/zookeeper/README.md +++ b/bitnami/zookeeper/README.md @@ -47,6 +47,7 @@ The following tables lists the configurable parameters of the Zookeeper chart an | Parameter | Description | Default | |---------------------------------------|---------------------------------------------------------------------|----------------------------------------------------------| +| `global.registry` | Global chart image registry | `nil` | | `image.registry` | Zookeeper image registry | `docker.io` | | `image.repository` | Zookeeper Image name | `bitnami/zookeeper` | | `image.tag` | Zookeeper Image tag | `{VERSION}` | diff --git a/bitnami/zookeeper/templates/_helpers.tpl b/bitnami/zookeeper/templates/_helpers.tpl index c132e04ff3..6256619f18 100644 --- a/bitnami/zookeeper/templates/_helpers.tpl +++ b/bitnami/zookeeper/templates/_helpers.tpl @@ -26,6 +26,13 @@ Create chart name and version as used by the chart label. Return the proper Zookeeper image name */}} {{- define "zookeeper.image" -}} -{{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global.registry -}} + {{- $registryName := .Values.global.registry -}} +{{- else -}} + {{- $registryName := .Values.image.registry -}} +{{- end -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} diff --git a/bitnami/zookeeper/values.yaml b/bitnami/zookeeper/values.yaml index ea1025e853..fb989d0b0b 100644 --- a/bitnami/zookeeper/values.yaml +++ b/bitnami/zookeeper/values.yaml @@ -1,3 +1,9 @@ +## Global chart image registry +## Please, note that this registry would be used for all the containers in the chart and dependencies +## +# global: +# registry: + ## Bitnami Zookeeper image version ## ref: https://hub.docker.com/r/bitnami/zookeeper/tags/ ## From 93170acc16e842e55aff7b7d944f7fbe025eee91 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 11 Oct 2018 14:07:23 +0000 Subject: [PATCH 002/153] Fix typo --- bitnami/apache/templates/_helpers.tpl | 1 - bitnami/consul/templates/_helpers.tpl | 1 - bitnami/elasticsearch/templates/_helpers.tpl | 1 - bitnami/etcd/templates/_helpers.tpl | 1 - bitnami/external-dns/templates/_helpers.tpl | 1 - bitnami/jenkins/templates/_helpers.tpl | 1 - bitnami/kafka/templates/_helpers.tpl | 1 - bitnami/mean/templates/_helpers.tpl | 1 - bitnami/memcached/templates/_helpers.tpl | 1 - bitnami/metrics-server/templates/_helpers.tpl | 1 - bitnami/mysql/templates/_helpers.tpl | 1 - bitnami/nginx-ingress-controller/templates/_helpers.tpl | 1 - bitnami/nginx/templates/_helpers.tpl | 1 - bitnami/node/templates/_helpers.tpl | 1 - bitnami/postgresql/templates/_helpers.tpl | 1 - bitnami/tensorflow-inception/templates/_helpers.tpl | 2 -- bitnami/tomcat/templates/_helpers.tpl | 1 - bitnami/wildfly/templates/_helpers.tpl | 1 - bitnami/zookeeper/templates/_helpers.tpl | 1 - 19 files changed, 20 deletions(-) diff --git a/bitnami/apache/templates/_helpers.tpl b/bitnami/apache/templates/_helpers.tpl index 77c680284a..81cbf6c2e7 100644 --- a/bitnami/apache/templates/_helpers.tpl +++ b/bitnami/apache/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper Apache image name */}} {{- define "apache.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/consul/templates/_helpers.tpl b/bitnami/consul/templates/_helpers.tpl index 8f80f1903d..3d4c35965a 100644 --- a/bitnami/consul/templates/_helpers.tpl +++ b/bitnami/consul/templates/_helpers.tpl @@ -26,7 +26,6 @@ Create chart name and version as used by the chart label. Return the proper Consul image name */}} {{- define "consul.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/elasticsearch/templates/_helpers.tpl b/bitnami/elasticsearch/templates/_helpers.tpl index bd2459e67a..53fc04453f 100644 --- a/bitnami/elasticsearch/templates/_helpers.tpl +++ b/bitnami/elasticsearch/templates/_helpers.tpl @@ -26,7 +26,6 @@ Create chart name and version as used by the chart label. Return the proper ES image name */}} {{- define "elasticsearch.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/etcd/templates/_helpers.tpl b/bitnami/etcd/templates/_helpers.tpl index f24026ad58..db1336ee09 100644 --- a/bitnami/etcd/templates/_helpers.tpl +++ b/bitnami/etcd/templates/_helpers.tpl @@ -26,7 +26,6 @@ Create chart name and version as used by the chart label. Return the proper etcd image name */}} {{- define "etcd.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/external-dns/templates/_helpers.tpl b/bitnami/external-dns/templates/_helpers.tpl index ec57407992..703deb8191 100644 --- a/bitnami/external-dns/templates/_helpers.tpl +++ b/bitnami/external-dns/templates/_helpers.tpl @@ -26,7 +26,6 @@ Create chart name and version as used by the chart label. Return the proper external-dns image name */}} {{- define "external-dns.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/jenkins/templates/_helpers.tpl b/bitnami/jenkins/templates/_helpers.tpl index 3759db68ab..51541cefee 100644 --- a/bitnami/jenkins/templates/_helpers.tpl +++ b/bitnami/jenkins/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper Jenkins image name */}} {{- define "jenkins.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/kafka/templates/_helpers.tpl b/bitnami/kafka/templates/_helpers.tpl index 15a16f57bf..502effb762 100644 --- a/bitnami/kafka/templates/_helpers.tpl +++ b/bitnami/kafka/templates/_helpers.tpl @@ -26,7 +26,6 @@ Create chart name and version as used by the chart label. Return the proper Kafka image name */}} {{- define "kafka.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/mean/templates/_helpers.tpl b/bitnami/mean/templates/_helpers.tpl index bb3654d0ff..719dfd1695 100644 --- a/bitnami/mean/templates/_helpers.tpl +++ b/bitnami/mean/templates/_helpers.tpl @@ -45,7 +45,6 @@ Custom template to get proper service name Return the proper MEAN image name */}} {{- define "mean.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/memcached/templates/_helpers.tpl b/bitnami/memcached/templates/_helpers.tpl index 26aa1cad59..4776848464 100644 --- a/bitnami/memcached/templates/_helpers.tpl +++ b/bitnami/memcached/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper Memcached image name */}} {{- define "memcached.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/metrics-server/templates/_helpers.tpl b/bitnami/metrics-server/templates/_helpers.tpl index 04df2699ef..37a84124b6 100644 --- a/bitnami/metrics-server/templates/_helpers.tpl +++ b/bitnami/metrics-server/templates/_helpers.tpl @@ -37,7 +37,6 @@ Create the name of the service account to use Return the proper metrics-server image name */}} {{- define "metrics-server.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/mysql/templates/_helpers.tpl b/bitnami/mysql/templates/_helpers.tpl index c17ba8707f..618bffc9a0 100644 --- a/bitnami/mysql/templates/_helpers.tpl +++ b/bitnami/mysql/templates/_helpers.tpl @@ -32,7 +32,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper MySQL image name */}} {{- define "mysql.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/nginx-ingress-controller/templates/_helpers.tpl b/bitnami/nginx-ingress-controller/templates/_helpers.tpl index 0c993634ee..30d66568bb 100644 --- a/bitnami/nginx-ingress-controller/templates/_helpers.tpl +++ b/bitnami/nginx-ingress-controller/templates/_helpers.tpl @@ -62,7 +62,6 @@ Create the name of the service account to use Return the proper nginx-ingress-controller image name */}} {{- define "nginx-ingress-controller.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/nginx/templates/_helpers.tpl b/bitnami/nginx/templates/_helpers.tpl index 690e29ac94..0b3af9a8bc 100644 --- a/bitnami/nginx/templates/_helpers.tpl +++ b/bitnami/nginx/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper NGINX image name */}} {{- define "nginx.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/node/templates/_helpers.tpl b/bitnami/node/templates/_helpers.tpl index 4fb3d0dc5a..f261053535 100644 --- a/bitnami/node/templates/_helpers.tpl +++ b/bitnami/node/templates/_helpers.tpl @@ -45,7 +45,6 @@ Custom template to get proper service name Return the proper Node image name */}} {{- define "node.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/postgresql/templates/_helpers.tpl b/bitnami/postgresql/templates/_helpers.tpl index 2496bb6ddb..8eb6131cc9 100644 --- a/bitnami/postgresql/templates/_helpers.tpl +++ b/bitnami/postgresql/templates/_helpers.tpl @@ -39,7 +39,6 @@ Create chart name and version as used by the chart label. Return the proper PostgreSQL image name */}} {{- define "postgresql.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/tensorflow-inception/templates/_helpers.tpl b/bitnami/tensorflow-inception/templates/_helpers.tpl index 7627af4ecf..e38e19fdab 100644 --- a/bitnami/tensorflow-inception/templates/_helpers.tpl +++ b/bitnami/tensorflow-inception/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper tensorflow-inception server image name */}} {{- define "tensorflow-inception.server.image" -}} -{{- $registryName := .Values.server.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} @@ -34,7 +33,6 @@ Return the proper tensorflow-inception server image name Return the proper tensorflow-inception client image name */}} {{- define "tensorflow-inception.client.image" -}} -{{- $registryName := .Values.client.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/tomcat/templates/_helpers.tpl b/bitnami/tomcat/templates/_helpers.tpl index 2b7bf7d2a6..c1efa55f07 100644 --- a/bitnami/tomcat/templates/_helpers.tpl +++ b/bitnami/tomcat/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper Tomcat image name */}} {{- define "tomcat.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/wildfly/templates/_helpers.tpl b/bitnami/wildfly/templates/_helpers.tpl index db519982a4..c5ba0e44d1 100644 --- a/bitnami/wildfly/templates/_helpers.tpl +++ b/bitnami/wildfly/templates/_helpers.tpl @@ -19,7 +19,6 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper Wildfly image name */}} {{- define "wildfly.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} diff --git a/bitnami/zookeeper/templates/_helpers.tpl b/bitnami/zookeeper/templates/_helpers.tpl index 6256619f18..ef5b3298c7 100644 --- a/bitnami/zookeeper/templates/_helpers.tpl +++ b/bitnami/zookeeper/templates/_helpers.tpl @@ -26,7 +26,6 @@ Create chart name and version as used by the chart label. Return the proper Zookeeper image name */}} {{- define "zookeeper.image" -}} -{{- $registryName := .Values.image.registry -}} {{- if .Values.global.registry -}} {{- $registryName := .Values.global.registry -}} {{- else -}} From dec26e5d0b982905dde2a55fdf2285a7781a64cc Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 11 Oct 2018 15:23:40 +0000 Subject: [PATCH 003/153] Check if global is set --- bitnami/apache/templates/_helpers.tpl | 9 +++++---- bitnami/consul/templates/_helpers.tpl | 9 +++++---- bitnami/elasticsearch/templates/_helpers.tpl | 9 +++++---- bitnami/etcd/templates/_helpers.tpl | 9 +++++---- bitnami/external-dns/templates/_helpers.tpl | 9 +++++---- bitnami/jenkins/templates/_helpers.tpl | 9 +++++---- bitnami/kafka/templates/_helpers.tpl | 9 +++++---- bitnami/mean/templates/_helpers.tpl | 9 +++++---- bitnami/memcached/templates/_helpers.tpl | 9 +++++---- bitnami/metrics-server/templates/_helpers.tpl | 9 +++++---- bitnami/mysql/templates/_helpers.tpl | 9 +++++---- .../templates/_helpers.tpl | 9 +++++---- bitnami/nginx/templates/_helpers.tpl | 9 +++++---- bitnami/node/templates/_helpers.tpl | 9 +++++---- bitnami/postgresql/templates/_helpers.tpl | 9 +++++---- .../templates/_helpers.tpl | 18 ++++++++++-------- bitnami/tomcat/templates/_helpers.tpl | 9 +++++---- bitnami/wildfly/templates/_helpers.tpl | 9 +++++---- bitnami/zookeeper/templates/_helpers.tpl | 9 +++++---- 19 files changed, 100 insertions(+), 80 deletions(-) diff --git a/bitnami/apache/templates/_helpers.tpl b/bitnami/apache/templates/_helpers.tpl index 81cbf6c2e7..ce7932bfc4 100644 --- a/bitnami/apache/templates/_helpers.tpl +++ b/bitnami/apache/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper Apache image name */}} {{- define "apache.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/consul/templates/_helpers.tpl b/bitnami/consul/templates/_helpers.tpl index 3d4c35965a..68a3aa41c4 100644 --- a/bitnami/consul/templates/_helpers.tpl +++ b/bitnami/consul/templates/_helpers.tpl @@ -26,10 +26,11 @@ Create chart name and version as used by the chart label. Return the proper Consul image name */}} {{- define "consul.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/elasticsearch/templates/_helpers.tpl b/bitnami/elasticsearch/templates/_helpers.tpl index 53fc04453f..6eb16a397d 100644 --- a/bitnami/elasticsearch/templates/_helpers.tpl +++ b/bitnami/elasticsearch/templates/_helpers.tpl @@ -26,10 +26,11 @@ Create chart name and version as used by the chart label. Return the proper ES image name */}} {{- define "elasticsearch.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/etcd/templates/_helpers.tpl b/bitnami/etcd/templates/_helpers.tpl index db1336ee09..4d15b8f910 100644 --- a/bitnami/etcd/templates/_helpers.tpl +++ b/bitnami/etcd/templates/_helpers.tpl @@ -26,10 +26,11 @@ Create chart name and version as used by the chart label. Return the proper etcd image name */}} {{- define "etcd.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/external-dns/templates/_helpers.tpl b/bitnami/external-dns/templates/_helpers.tpl index 703deb8191..3dcb76f445 100644 --- a/bitnami/external-dns/templates/_helpers.tpl +++ b/bitnami/external-dns/templates/_helpers.tpl @@ -26,10 +26,11 @@ Create chart name and version as used by the chart label. Return the proper external-dns image name */}} {{- define "external-dns.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/jenkins/templates/_helpers.tpl b/bitnami/jenkins/templates/_helpers.tpl index 51541cefee..71c91ab6bc 100644 --- a/bitnami/jenkins/templates/_helpers.tpl +++ b/bitnami/jenkins/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper Jenkins image name */}} {{- define "jenkins.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/kafka/templates/_helpers.tpl b/bitnami/kafka/templates/_helpers.tpl index 502effb762..04d368f4fb 100644 --- a/bitnami/kafka/templates/_helpers.tpl +++ b/bitnami/kafka/templates/_helpers.tpl @@ -26,10 +26,11 @@ Create chart name and version as used by the chart label. Return the proper Kafka image name */}} {{- define "kafka.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/mean/templates/_helpers.tpl b/bitnami/mean/templates/_helpers.tpl index 719dfd1695..db388dacf3 100644 --- a/bitnami/mean/templates/_helpers.tpl +++ b/bitnami/mean/templates/_helpers.tpl @@ -45,10 +45,11 @@ Custom template to get proper service name Return the proper MEAN image name */}} {{- define "mean.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/memcached/templates/_helpers.tpl b/bitnami/memcached/templates/_helpers.tpl index 4776848464..b66ff363aa 100644 --- a/bitnami/memcached/templates/_helpers.tpl +++ b/bitnami/memcached/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper Memcached image name */}} {{- define "memcached.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/metrics-server/templates/_helpers.tpl b/bitnami/metrics-server/templates/_helpers.tpl index 37a84124b6..55d2d9cf7b 100644 --- a/bitnami/metrics-server/templates/_helpers.tpl +++ b/bitnami/metrics-server/templates/_helpers.tpl @@ -37,10 +37,11 @@ Create the name of the service account to use Return the proper metrics-server image name */}} {{- define "metrics-server.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/mysql/templates/_helpers.tpl b/bitnami/mysql/templates/_helpers.tpl index 618bffc9a0..412296d205 100644 --- a/bitnami/mysql/templates/_helpers.tpl +++ b/bitnami/mysql/templates/_helpers.tpl @@ -32,10 +32,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper MySQL image name */}} {{- define "mysql.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/nginx-ingress-controller/templates/_helpers.tpl b/bitnami/nginx-ingress-controller/templates/_helpers.tpl index 30d66568bb..784cbbf651 100644 --- a/bitnami/nginx-ingress-controller/templates/_helpers.tpl +++ b/bitnami/nginx-ingress-controller/templates/_helpers.tpl @@ -62,10 +62,11 @@ Create the name of the service account to use Return the proper nginx-ingress-controller image name */}} {{- define "nginx-ingress-controller.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/nginx/templates/_helpers.tpl b/bitnami/nginx/templates/_helpers.tpl index 0b3af9a8bc..1b12ad19b5 100644 --- a/bitnami/nginx/templates/_helpers.tpl +++ b/bitnami/nginx/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper NGINX image name */}} {{- define "nginx.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/node/templates/_helpers.tpl b/bitnami/node/templates/_helpers.tpl index f261053535..fb9d6dd978 100644 --- a/bitnami/node/templates/_helpers.tpl +++ b/bitnami/node/templates/_helpers.tpl @@ -45,10 +45,11 @@ Custom template to get proper service name Return the proper Node image name */}} {{- define "node.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/postgresql/templates/_helpers.tpl b/bitnami/postgresql/templates/_helpers.tpl index 8eb6131cc9..502c5bfecd 100644 --- a/bitnami/postgresql/templates/_helpers.tpl +++ b/bitnami/postgresql/templates/_helpers.tpl @@ -39,10 +39,11 @@ Create chart name and version as used by the chart label. Return the proper PostgreSQL image name */}} {{- define "postgresql.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/tensorflow-inception/templates/_helpers.tpl b/bitnami/tensorflow-inception/templates/_helpers.tpl index e38e19fdab..19a8cb8c69 100644 --- a/bitnami/tensorflow-inception/templates/_helpers.tpl +++ b/bitnami/tensorflow-inception/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper tensorflow-inception server image name */}} {{- define "tensorflow-inception.server.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.server.image.registry -}} +{{- $registryName := .Values.server.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.server.image.repository -}} {{- $tag := .Values.server.image.tag | toString -}} @@ -33,10 +34,11 @@ Return the proper tensorflow-inception server image name Return the proper tensorflow-inception client image name */}} {{- define "tensorflow-inception.client.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.client.image.registry -}} +{{- $registryName := .Values.client.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.client.image.repository -}} {{- $tag := .Values.client.image.tag | toString -}} diff --git a/bitnami/tomcat/templates/_helpers.tpl b/bitnami/tomcat/templates/_helpers.tpl index c1efa55f07..8c91414e08 100644 --- a/bitnami/tomcat/templates/_helpers.tpl +++ b/bitnami/tomcat/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this Return the proper Tomcat image name */}} {{- define "tomcat.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/wildfly/templates/_helpers.tpl b/bitnami/wildfly/templates/_helpers.tpl index c5ba0e44d1..65bb2e9212 100644 --- a/bitnami/wildfly/templates/_helpers.tpl +++ b/bitnami/wildfly/templates/_helpers.tpl @@ -19,10 +19,11 @@ We truncate at 24 chars because some Kubernetes name fields are limited to this Return the proper Wildfly image name */}} {{- define "wildfly.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} diff --git a/bitnami/zookeeper/templates/_helpers.tpl b/bitnami/zookeeper/templates/_helpers.tpl index ef5b3298c7..b2765c6d5b 100644 --- a/bitnami/zookeeper/templates/_helpers.tpl +++ b/bitnami/zookeeper/templates/_helpers.tpl @@ -26,10 +26,11 @@ Create chart name and version as used by the chart label. Return the proper Zookeeper image name */}} {{- define "zookeeper.image" -}} -{{- if .Values.global.registry -}} - {{- $registryName := .Values.global.registry -}} -{{- else -}} - {{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} +{{- if .Values.global }} + {{- if .Values.global.regristry }} + {{- $registryName := .Values.global.registry -}} + {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} From c0a8eda10de6381985145cc6c24e173b05c36b2e Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 12 Oct 2018 11:52:18 +0200 Subject: [PATCH 004/153] Enable metrics in Consul values-production.yaml Signed-off-by: Javier J. Salmeron Garcia --- bitnami/consul/templates/statefulset.yaml | 9 + bitnami/consul/values-production.yaml | 210 ++++++++++++++++++++++ bitnami/consul/values.yaml | 9 +- 3 files changed, 227 insertions(+), 1 deletion(-) create mode 100644 bitnami/consul/values-production.yaml diff --git a/bitnami/consul/templates/statefulset.yaml b/bitnami/consul/templates/statefulset.yaml index d51e0f0554..57c74c1b78 100644 --- a/bitnami/consul/templates/statefulset.yaml +++ b/bitnami/consul/templates/statefulset.yaml @@ -24,6 +24,15 @@ spec: chart: {{ template "consul.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml new file mode 100644 index 0000000000..7654ccc6c1 --- /dev/null +++ b/bitnami/consul/values-production.yaml @@ -0,0 +1,210 @@ +## Bitnami Consul image version +## ref: https://hub.docker.com/r/bitnami/consul/tags/ +## +image: + registry: docker.io + repository: bitnami/consul + tag: 1.3.0-debian-9 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images + ## + pullPolicy: Always + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + +## Consul replicas +replicas: 3 + +## Consul service ports +httpPort: 8500 +rpcPort: 8400 +serflanPort: 8301 +serverPort: 8300 +consulDnsPort: 8600 +uiPort: 80 + +## Datacenter name for consul. If not supplied, will use the consul +## default 'dc1' +datacenterName: dc1 + +## Predefined value for gossip key. +## The key must be 16-bytes, can be generated with $(consul keygen) +# gossipKey: 887Syd/BOvbtvRAKviazMg== + +## Use TLS to verify the authenticity of servers and clients. +## Check README for more information. +# tlsEncryptionSecretName: your-already-created-secret + +## Extra configuration that will be added to the default one. +#localConfig: |- +# { +# "key": "value" +# } + +## Consul domain name. +domain: consul + +## Consul raft multiplier. +raftMultiplier: '1' + +## Consul data Persistent Volume Storage Class +## If defined, storageClassName: +## If set to "-", storageClassName: "", which disables dynamic provisioning +## If undefined (the default) or set to null, no storageClassName spec is +## set, choosing the default provisioner. (gp2 on AWS, standard on +## GKE, AWS & OpenStack) +## +persistence: + enabled: true + # storageClass: "-" + accessModes: + - ReadWriteOnce + size: 8Gi + annotations: {} + +resources: {} +# requests: +# memory: 256Mi +# cpu: 100m + +## Setting maxUnavailable will create a pod disruption budget that will prevent +## voluntarty cluster administration from taking down too many consul pods. If +## you set maxUnavailable, you should set it to ceil((n/2) - 1), where +## n = Replicas. For example, if you have 5 or 6 Replicas, you'll want to set +## maxUnavailable = 2. If you are using the default of 3 Replicas, you'll want +## to set maxUnavailable to 1. +maxUnavailable: 1 + +## nodeAffinity settings +# nodeAffinity: +# requiredDuringSchedulingIgnoredDuringExecution: +# nodeSelectorTerms: +# - matchExpressions: +# - key: cloud.google.com/gke-preemptible +# operator: NotIn +# values: +# - true + +## Anti-Affinity setting. The default "hard" will use pod anti-affinity that is +## requiredDuringSchedulingIgnoredDuringExecution to ensure 2 services don't +## end up on the same node. Setting this to "soft" will use +## preferredDuringSchedulingIgnoredDuringExecution. If set to anything else, +## no anti-affinity rules will be configured. +antiAffinity: "soft" + +## Create dedicated UI service +## +ui: + service: + enabled: true + type: "ClusterIP" + + ## Configure the ingress resource that allows you to access the + ## Consul user interface. Set up the URL + ## ref: http://kubernetes.io/docs/user-guide/ingress/ + ## + ingress: + ## Set to true to enable ingress record generation + enabled: false + + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array + hosts: + - name: consul-ui.local + + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend consul service will be connected at port 443 + tls: false + + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: consul-ui.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx + secrets: + ## If you're providing your own certificates, please use this to add the certificates as secrets + ## key and certificate should start with -----BEGIN CERTIFICATE----- or + ## -----BEGIN RSA PRIVATE KEY----- + ## + ## name should line up with a tlsSecret set further up + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set + ## + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + # - name: consul-ui.local-tls + # key: + # certificate: + +## Consul configmap +#configmap: | +# { +# "datacenter":"dc2", +# "domain":"consul", +# "data_dir":"/opt/bitnami/consul/data", +# "pid_file":"/opt/bitnami/consul/tmp/consul.pid", +# "server":true, +# "ui":false, +# "bootstrap_expect":3, +# "addresses": { +# "http":"0.0.0.0" +# }, +# "ports": { +# "http":8500, +# "dns":8600, +# "serf_lan":8301, +# "server":8300 +# }, +# "serf_lan":"0.0.0.0" +# } +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +metrics: + enabled: true + image: + registry: docker.io + repository: prom/consul-exporter + tag: v0.3.0 + pullPolicy: IfNotPresent + resources: {} + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9107" + +## Node selector +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector +nodeSelector: {"beta.kubernetes.io/arch": "amd64"} + +## Configure extra options for liveness and readiness probes +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) +livenessProbe: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 4d5bb23451..e8b3bdbe29 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -171,6 +171,11 @@ ui: # "serf_lan":"0.0.0.0" # } +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + metrics: enabled: false image: @@ -179,7 +184,9 @@ metrics: tag: v0.3.0 pullPolicy: IfNotPresent resources: {} - annotations: {} + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9107" ## Node selector ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector From 476888d5994eebdc58546b1fdc14d4e29d3571b8 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 12 Oct 2018 11:57:15 +0200 Subject: [PATCH 005/153] Bump chart version Signed-off-by: Javier J. Salmeron Garcia --- bitnami/consul/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index 6eafff88d1..cb7ddf3191 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -2,7 +2,7 @@ name: consul home: https://www.consul.io/ sources: - https://github.com/bitnami/consul -version: 2.1.1 +version: 2.2.0 appVersion: 1.3.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and From af8ec1a01d68251d4ce9108b9729da97b62034fe Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 12 Oct 2018 11:58:02 +0200 Subject: [PATCH 006/153] Update README --- bitnami/consul/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitnami/consul/README.md b/bitnami/consul/README.md index 2dc96db957..03b552e5c2 100644 --- a/bitnami/consul/README.md +++ b/bitnami/consul/README.md @@ -96,14 +96,15 @@ The following tables lists the configurable parameters of the Consul chart and t | `metrics.imageTag` | Exporter image tag | `v0.3.0` | | `metrics.imagePullPolicy` | Exporter image pull policy | `IfNotPresent` | | `metrics.resources` | Exporter resource requests/limit | `{}` | -| `metrics.annotations` | Exporter annotations | `{}` | +| `metricspodAnnotations` | Exporter annotations | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | | `livenessProbe.periodSeconds` | How often to perform the probe | 10 | | `livenessProbe.timeoutSeconds` | When the probe times out | 5 | | `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | | `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | 5 | +| `podAnnotations` | Pod annotations | `{}` | +sProbe.initialDelaySeconds` | Delay before readiness probe is initiated | 5 | | `readinessProbe.periodSeconds` | How often to perform the probe | 10 | | `readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | From 49ef751c368086b5f3854e934baf947d05110139 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 12 Oct 2018 12:15:01 +0200 Subject: [PATCH 007/153] Fix readme Signed-off-by: Javier J. Salmeron Garcia --- bitnami/consul/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/consul/README.md b/bitnami/consul/README.md index 03b552e5c2..1f156df662 100644 --- a/bitnami/consul/README.md +++ b/bitnami/consul/README.md @@ -96,7 +96,7 @@ The following tables lists the configurable parameters of the Consul chart and t | `metrics.imageTag` | Exporter image tag | `v0.3.0` | | `metrics.imagePullPolicy` | Exporter image pull policy | `IfNotPresent` | | `metrics.resources` | Exporter resource requests/limit | `{}` | -| `metricspodAnnotations` | Exporter annotations | `{}` | +| `metrics.podAnnotations` | Exporter annotations | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | | `livenessProbe.periodSeconds` | How often to perform the probe | 10 | @@ -104,7 +104,7 @@ The following tables lists the configurable parameters of the Consul chart and t | `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | | `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | | `podAnnotations` | Pod annotations | `{}` | -sProbe.initialDelaySeconds` | Delay before readiness probe is initiated | 5 | +| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | 5 | | `readinessProbe.periodSeconds` | How often to perform the probe | 10 | | `readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | From 89ac4a4f474fca5bab9107b74127c478a5916112 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Fri, 12 Oct 2018 10:37:16 +0000 Subject: [PATCH 008/153] Synchronize upstreamed folder to 426e7bd --- upstreamed/dokuwiki/Chart.yaml | 2 +- upstreamed/dokuwiki/README.md | 1 + upstreamed/dokuwiki/templates/ingress.yaml | 3 + upstreamed/dokuwiki/values.yaml | 10 +-- upstreamed/drupal/Chart.yaml | 2 +- upstreamed/drupal/README.md | 84 +++++++++--------- upstreamed/drupal/templates/_helpers.tpl | 7 ++ upstreamed/drupal/templates/apache-pvc.yaml | 2 +- upstreamed/drupal/templates/deployment.yaml | 4 +- upstreamed/drupal/templates/drupal-pvc.yaml | 2 +- upstreamed/drupal/templates/ingress.yaml | 38 +++++--- upstreamed/drupal/templates/secrets.yaml | 2 +- upstreamed/drupal/templates/svc.yaml | 2 +- upstreamed/drupal/values.yaml | 41 +++++---- upstreamed/ghost/Chart.yaml | 4 +- upstreamed/ghost/README.md | 78 ++++++++++------- upstreamed/ghost/requirements.lock | 4 +- upstreamed/ghost/templates/deployment.yaml | 22 +++-- upstreamed/ghost/templates/ingress.yaml | 59 ++++++------- upstreamed/ghost/values.yaml | 63 +++++++++++--- upstreamed/joomla/Chart.yaml | 2 +- upstreamed/joomla/README.md | 3 +- upstreamed/joomla/templates/ingress.yaml | 3 + upstreamed/joomla/values.yaml | 10 +-- upstreamed/mariadb/Chart.yaml | 2 +- .../templates/initialization-configmap.yaml | 4 +- .../mariadb/templates/master-statefulset.yaml | 12 ++- upstreamed/mediawiki/Chart.yaml | 2 +- upstreamed/mediawiki/README.md | 1 + upstreamed/mediawiki/templates/ingress.yaml | 3 + upstreamed/mediawiki/values.yaml | 10 +-- upstreamed/moodle/Chart.yaml | 2 +- upstreamed/moodle/README.md | 22 +++-- upstreamed/moodle/templates/_helpers.tpl | 7 +- upstreamed/moodle/templates/deployment.yaml | 4 +- upstreamed/moodle/templates/ingress.yaml | 55 ++++++------ upstreamed/moodle/templates/pvc.yaml | 2 +- upstreamed/moodle/templates/secrets.yaml | 2 +- upstreamed/moodle/templates/svc.yaml | 2 +- upstreamed/moodle/values.yaml | 58 ++++++++----- upstreamed/odoo/Chart.yaml | 2 +- upstreamed/odoo/README.md | 3 +- upstreamed/odoo/templates/ingress.yaml | 3 + upstreamed/odoo/values.yaml | 9 +- upstreamed/owncloud/Chart.yaml | 2 +- upstreamed/owncloud/README.md | 86 ++++++++++--------- upstreamed/owncloud/templates/_helpers.tpl | 7 ++ upstreamed/owncloud/templates/deployment.yaml | 4 +- upstreamed/owncloud/templates/ingress.yaml | 45 ++++++---- upstreamed/owncloud/templates/secrets.yaml | 2 +- upstreamed/owncloud/templates/svc.yaml | 2 +- upstreamed/owncloud/values.yaml | 52 ++++++++--- upstreamed/phabricator/Chart.yaml | 2 +- upstreamed/phabricator/README.md | 16 ++-- upstreamed/phabricator/templates/ingress.yaml | 53 +++++++----- upstreamed/phabricator/values.yaml | 55 +++++++++--- upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/README.md | 1 - upstreamed/wordpress/Chart.yaml | 2 +- upstreamed/wordpress/values-production.yaml | 2 +- upstreamed/wordpress/values.yaml | 2 +- 61 files changed, 614 insertions(+), 374 deletions(-) diff --git a/upstreamed/dokuwiki/Chart.yaml b/upstreamed/dokuwiki/Chart.yaml index 034ed200c0..0bddc297cc 100644 --- a/upstreamed/dokuwiki/Chart.yaml +++ b/upstreamed/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.0.3 +version: 3.1.0 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/upstreamed/dokuwiki/README.md b/upstreamed/dokuwiki/README.md index a85d038153..9eda155f00 100644 --- a/upstreamed/dokuwiki/README.md +++ b/upstreamed/dokuwiki/README.md @@ -65,6 +65,7 @@ The following table lists the configurable parameters of the DokuWiki chart and | `ingress.hosts[0].name` | Hostname to your DokuWiki installation | `dokuwiki.local` | | `ingress.hosts[0].path` | Path within the url structure | `/` | | `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | | `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `dokuwiki.local-tls` | | `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | | `ingress.secrets[0].name` | TLS Secret Name | `nil` | diff --git a/upstreamed/dokuwiki/templates/ingress.yaml b/upstreamed/dokuwiki/templates/ingress.yaml index 116463462e..b0c231085d 100644 --- a/upstreamed/dokuwiki/templates/ingress.yaml +++ b/upstreamed/dokuwiki/templates/ingress.yaml @@ -13,6 +13,9 @@ metadata: {{- if .tls }} ingress.kubernetes.io/secure-backends: "true" {{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} {{- range $key, $value := .annotations }} {{ $key }}: {{ $value | quote }} {{- end }} diff --git a/upstreamed/dokuwiki/values.yaml b/upstreamed/dokuwiki/values.yaml index 87c57b24a0..e8af38e0e5 100644 --- a/upstreamed/dokuwiki/values.yaml +++ b/upstreamed/dokuwiki/values.yaml @@ -83,19 +83,19 @@ ingress: ## A side effect of this will be that the backend dokuwiki service will be connected at port 443 tls: false + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS tlsSecret: dokuwiki.local-tls ## Ingress annotations done as key:value pairs - ## If you're using kube-lego, you will want to add: - ## kubernetes.io/tls-acme: true - ## ## For a full list of possible ingress annotations, please see ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md ## ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set annotations: - # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: true secrets: @@ -104,7 +104,7 @@ ingress: ## -----BEGIN RSA PRIVATE KEY----- ## ## name should line up with a tlsSecret set further up - ## If you're using kube-lego, this is unneeded, as it will create the secret for you if it is not set + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set ## ## It is also possible to create and manage the certificates outside of this helm chart ## Please see README.md for more information diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index 425c55ba64..6ea74469e9 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,5 +1,5 @@ name: drupal -version: 2.0.3 +version: 2.1.0 appVersion: 8.6.1 description: One of the most versatile open source content management systems. keywords: diff --git a/upstreamed/drupal/README.md b/upstreamed/drupal/README.md index 59bfabe4a3..ea449fb593 100644 --- a/upstreamed/drupal/README.md +++ b/upstreamed/drupal/README.md @@ -47,45 +47,51 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the Drupal chart and their default values. -| Parameter | Description | Default | -| --------------------------------- | ------------------------------------- | --------------------------------------------------------- | -| `image.registry` | Drupal image registry | `docker.io` | -| `image.repository` | Drupal Image name | `bitnami/drupal` | -| `image.tag` | Drupal Image tag | `{VERSION}` | -| `image.pullPolicy` | Drupal image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `drupalProfile` | Drupal installation profile | `standard` | -| `drupalUsername` | User of the application | `user` | -| `drupalPassword` | Application password | _random 10 character long alphanumeric string_ | -| `drupalEmail` | Admin email | `user@example.com` | -| `allowEmptyPassword` | Allow DB blank passwords | `yes` | -| `extraVars` | Extra environment variables | `nil` | -| `ingress.annotations` | Specify ingress class | `kubernetes.io/ingress.class: nginx` | -| `ingress.enabled` | Enable ingress controller resource | `false` | -| `ingress.hostname` | URL for your Drupal installation | `drupal.local` | -| `ingress.tls` | Ingress TLS configuration | `[]` | -| `externalDatabase.host` | Host of the external database | `nil` | -| `externalDatabase.user` | Existing username in the external db | `bn_drupal` | -| `externalDatabase.password` | Password for the above username | `nil` | -| `externalDatabase.database` | Name of the existing database | `bitnami_drupal` | -| `mariadb.enabled` | Whether to use the MariaDB chart | `true` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `mariadb.db.name` | Database name to create | `bitnami_drupal` | -| `mariadb.db.user` | Database user to create | `bn_drupal` | -| `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | -| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | -| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | -| `persistence.drupal.storageClass` | PVC Storage Class for Drupal volume | `nil` (uses alpha storage class annotation) | -| `persistence.drupal.accessMode` | PVC Access Mode for Drupal volume | `ReadWriteOnce` | -| `persistence.drupal.existingClaim`| An Existing PVC name | `nil` | -| `persistence.drupal.hostPath` | Host mount path for Drupal volume | `nil` (will not mount to a host path) | -| `persistence.drupal.size` | PVC Storage Request for Drupal volume | `8Gi` | -| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | -| `volumeMounts.drupal.mountPath` | Drupal data volume mount path | `/bitnami/drupal` | -| `volumeMounts.apache.mountPath` | Apache data volume mount path | `/bitnami/apache` | +| Parameter | Description | Default | +| --------------------------------- | ------------------------------------------ | --------------------------------------------------------- | +| `image.registry` | Drupal image registry | `docker.io` | +| `image.repository` | Drupal Image name | `bitnami/drupal` | +| `image.tag` | Drupal Image tag | `{VERSION}` | +| `image.pullPolicy` | Drupal image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `drupalProfile` | Drupal installation profile | `standard` | +| `drupalUsername` | User of the application | `user` | +| `drupalPassword` | Application password | _random 10 character long alphanumeric string_ | +| `drupalEmail` | Admin email | `user@example.com` | +| `allowEmptyPassword` | Allow DB blank passwords | `yes` | +| `extraVars` | Extra environment variables | `nil` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname to your Drupal installation | `drupal.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `drupal.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.user` | Existing username in the external db | `bn_drupal` | +| `externalDatabase.password` | Password for the above username | `nil` | +| `externalDatabase.database` | Name of the existing database | `bitnami_drupal` | +| `mariadb.enabled` | Whether to use the MariaDB chart | `true` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `mariadb.db.name` | Database name to create | `bitnami_drupal` | +| `mariadb.db.user` | Database user to create | `bn_drupal` | +| `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | +| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | +| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | +| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | +| `persistence.drupal.storageClass` | PVC Storage Class for Drupal volume | `nil` (uses alpha storage class annotation) | +| `persistence.drupal.accessMode` | PVC Access Mode for Drupal volume | `ReadWriteOnce` | +| `persistence.drupal.existingClaim`| An Existing PVC name | `nil` | +| `persistence.drupal.hostPath` | Host mount path for Drupal volume | `nil` (will not mount to a host path) | +| `persistence.drupal.size` | PVC Storage Request for Drupal volume | `8Gi` | +| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `volumeMounts.drupal.mountPath` | Drupal data volume mount path | `/bitnami/drupal` | +| `volumeMounts.apache.mountPath` | Apache data volume mount path | `/bitnami/apache` | The above parameters map to the env variables defined in [bitnami/drupal](http://github.com/bitnami/bitnami-docker-drupal). For more information please refer to the [bitnami/drupal](http://github.com/bitnami/bitnami-docker-drupal) image documentation. diff --git a/upstreamed/drupal/templates/_helpers.tpl b/upstreamed/drupal/templates/_helpers.tpl index 0c876fb0c9..33decfbd9d 100644 --- a/upstreamed/drupal/templates/_helpers.tpl +++ b/upstreamed/drupal/templates/_helpers.tpl @@ -22,3 +22,10 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "drupal.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "drupal.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} \ No newline at end of file diff --git a/upstreamed/drupal/templates/apache-pvc.yaml b/upstreamed/drupal/templates/apache-pvc.yaml index dd302f40bd..d3a49f3c64 100644 --- a/upstreamed/drupal/templates/apache-pvc.yaml +++ b/upstreamed/drupal/templates/apache-pvc.yaml @@ -5,7 +5,7 @@ metadata: name: {{ template "drupal.fullname" . }}-apache labels: app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/drupal/templates/deployment.yaml b/upstreamed/drupal/templates/deployment.yaml index 70e71a1e6a..661d83e227 100644 --- a/upstreamed/drupal/templates/deployment.yaml +++ b/upstreamed/drupal/templates/deployment.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "drupal.fullname" . }} labels: app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: @@ -17,7 +17,7 @@ spec: metadata: labels: app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" spec: {{- if .Values.image.pullSecrets }} diff --git a/upstreamed/drupal/templates/drupal-pvc.yaml b/upstreamed/drupal/templates/drupal-pvc.yaml index 39c2d1f7f0..0f1378ad11 100644 --- a/upstreamed/drupal/templates/drupal-pvc.yaml +++ b/upstreamed/drupal/templates/drupal-pvc.yaml @@ -5,7 +5,7 @@ metadata: name: {{ template "drupal.fullname" . }}-drupal labels: app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/drupal/templates/ingress.yaml b/upstreamed/drupal/templates/ingress.yaml index 079873dcb6..95e7f3d422 100644 --- a/upstreamed/drupal/templates/ingress.yaml +++ b/upstreamed/drupal/templates/ingress.yaml @@ -1,28 +1,38 @@ {{- if .Values.ingress.enabled -}} +{{- range .Values.ingress.hosts }} apiVersion: extensions/v1beta1 kind: Ingress metadata: - name: {{ template "drupal.fullname" . }} + name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}" labels: - app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" + app: {{ template "drupal.fullname" $ }} + chart: {{ template "drupal.chart" $ }} + release: "{{ $.Release.Name }}" + heritage: "{{ $.Release.Service }}" annotations: - {{- range $key, $value := .Values.ingress.annotations }} - {{ $key }}: {{ $value | quote }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .annotations }} + {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: - - host: {{ .Values.ingress.hostname }} + - host: {{ .name }} http: paths: - - path: / + - path: {{ default "/" .path }} backend: - serviceName: {{ template "drupal.fullname" . }} + serviceName: {{ template "drupal.fullname" $ }} servicePort: 80 -{{- if .Values.ingress.tls }} +{{- if .tls }} tls: -{{ toYaml .Values.ingress.tls | indent 4 }} -{{- end -}} -{{- end -}} + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} +{{- end }} +--- +{{- end }} +{{- end }} + + diff --git a/upstreamed/drupal/templates/secrets.yaml b/upstreamed/drupal/templates/secrets.yaml index 1037810912..774530fef6 100644 --- a/upstreamed/drupal/templates/secrets.yaml +++ b/upstreamed/drupal/templates/secrets.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "drupal.fullname" . }} labels: app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque diff --git a/upstreamed/drupal/templates/svc.yaml b/upstreamed/drupal/templates/svc.yaml index 4a2abb702d..222e9d5b8c 100644 --- a/upstreamed/drupal/templates/svc.yaml +++ b/upstreamed/drupal/templates/svc.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "drupal.fullname" . }} labels: app: {{ template "drupal.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index 4f2a097979..dad9906d42 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -39,7 +39,7 @@ drupalUsername: user drupalEmail: user@example.com ## Set to `yes` to allow the container to be started with blank passwords -## ref: https://github.com/bitnami/bitnami-docker-wordpress#environment-variables +## ref: https://github.com/bitnami/bitnami-docker-drupal#environment-variables allowEmptyPassword: "yes" ## @@ -107,27 +107,36 @@ mariadb: ## serviceType: LoadBalancer -## Configure Ingress resource that allow you to access the Drupal installation -## Set up the URL +## Configure the ingress resource that allows you to access the +## Drupal installation. Set up the URL ## ref: http://kubernetes.io/docs/user-guide/ingress/ ## ingress: + ## Set to true to enable ingress record generation enabled: false - # Used to create Ingress record (should used with ServiceType: ClusterIP). - # hostname: drupal.local - ## Ingress annotations - ## - # annotations: - # kubernetes.io/ingress.class: nginx + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array + hosts: + - name: drupal.local - ## Ingress TLS configuration - ## Secrets must be manually created in the namespace - ## - # tls: - # - secretName: wordpress.local-tls - # hosts: - # - drupal.local + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend drupal service will be connected at port 443 + tls: false + + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: drupal.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 42f3519874..19bba51e3d 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.0.3 -appVersion: 2.1.4 +version: 5.2.0 +appVersion: 2.2.1 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/README.md b/upstreamed/ghost/README.md index 7cff6f8d12..3502cf09e4 100644 --- a/upstreamed/ghost/README.md +++ b/upstreamed/ghost/README.md @@ -47,38 +47,52 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the Ghost chart and their default values. -| Parameter | Description | Default | -|-------------------------------|---------------------------------------------------------------|----------------------------------------------------------| -| `image.registry` | Ghost image registry | `docker.io` | -| `image.repository` | Ghost Image name | `bitnami/ghost` | -| `image.tag` | Ghost Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `ghostHost` | Ghost host to create application URLs | `nil` | -| `ghostPath` | Ghost path to create application URLs | `nil` | -| `ghostPort` | Ghost port to create application URLs along with host | `80` | -| `ghostLoadBalancerIP` | `loadBalancerIP` for the Ghost Service | `nil` | -| `ghostUsername` | User of the application | `user@example.com` | -| `ghostPassword` | Application password | Randomly generated | -| `ghostEmail` | Admin email | `user@example.com` | -| `ghostBlogTitle` | Ghost Blog name | `User's Blog` | -| `allowEmptyPassword` | Allow DB blank passwords | `yes` | -| `externalDatabase.host` | Host of the external database | `nil` | -| `externalDatabase.port` | Port of the external database | `nil` | -| `externalDatabase.user` | Existing username in the external db | `bn_ghost` | -| `externalDatabase.password` | Password for the above username | `nil` | -| `externalDatabase.database` | Name of the existing database | `bitnami_ghost` | -| `mariadb.enabled` | Whether or not to install MariaDB (disable if using external) | `true` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `mariadb.db.name` | MariaDB Database name to create | `bitnami_ghost` | -| `mariadb.db.user` | MariaDB Database user to create | `bn_ghost` | -| `mariadb.db.password` | MariaDB Password for user | _random 10 character long alphanumeric string_ | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.storageClass` | PVC Storage Class for Ghost volume | `nil` (uses alpha storage annotation) | -| `persistence.accessMode` | PVC Access Mode for Ghost volume | `ReadWriteOnce` | -| `persistence.size` | PVC Storage Request for Ghost volume | `8Gi` | -| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| Parameter | Description | Default | +|----------------------------------|---------------------------------------------------------------|----------------------------------------------------------| +| `image.registry` | Ghost image registry | `docker.io` | +| `image.repository` | Ghost Image name | `bitnami/ghost` | +| `image.tag` | Ghost Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `ghostHost` | Ghost host to create application URLs | `nil` | +| `ghostPath` | Ghost path to create application URLs | `nil` | +| `ghostPort` | Ghost port to create application URLs along with host | `80` | +| `ghostLoadBalancerIP` | `loadBalancerIP` for the Ghost Service | `nil` | +| `ghostUsername` | User of the application | `user@example.com` | +| `ghostPassword` | Application password | Randomly generated | +| `ghostEmail` | Admin email | `user@example.com` | +| `ghostBlogTitle` | Ghost Blog name | `User's Blog` | +| `allowEmptyPassword` | Allow DB blank passwords | `yes` | +| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname to your Ghost installation | `ghost.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `ghost.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.port` | Port of the external database | `nil` | +| `externalDatabase.user` | Existing username in the external db | `bn_ghost` | +| `externalDatabase.password` | Password for the above username | `nil` | +| `externalDatabase.database` | Name of the existing database | `bitnami_ghost` | +| `mariadb.enabled` | Whether or not to install MariaDB (disable if using external) | `true` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `mariadb.db.name` | MariaDB Database name to create | `bitnami_ghost` | +| `mariadb.db.user` | MariaDB Database user to create | `bn_ghost` | +| `mariadb.db.password` | MariaDB Password for user | _random 10 character long alphanumeric string_ | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.storageClass` | PVC Storage Class for Ghost volume | `nil` (uses alpha storage annotation) | +| `persistence.accessMode` | PVC Access Mode for Ghost volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for Ghost volume | `8Gi` | +| `persistence.path` | Path to mount the volume at, to use other images | `/bitnami` | +| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | The above parameters map to the env variables defined in [bitnami/ghost](http://github.com/bitnami/bitnami-docker-ghost). For more information please refer to the [bitnami/ghost](http://github.com/bitnami/bitnami-docker-ghost) image documentation. diff --git a/upstreamed/ghost/requirements.lock b/upstreamed/ghost/requirements.lock index aa56639040..9121d7d474 100644 --- a/upstreamed/ghost/requirements.lock +++ b/upstreamed/ghost/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.1.1 digest: sha256:b3053e73f5c114f55a794eccea2606cc9fe8a669eaab1716246994bbdd37a473 -generated: 2018-09-25T11:28:35.896296195+02:00 +generated: 2018-10-11T10:01:18.165751169Z diff --git a/upstreamed/ghost/templates/deployment.yaml b/upstreamed/ghost/templates/deployment.yaml index 1c30f8d0ed..b5e83d2b0f 100644 --- a/upstreamed/ghost/templates/deployment.yaml +++ b/upstreamed/ghost/templates/deployment.yaml @@ -21,20 +21,26 @@ spec: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" spec: + {{- if .Values.securityContext.enabled }} + securityContext: + fsGroup: {{ .Values.securityContext.fsGroup }} + runAsUser: {{ .Values.securityContext.runAsUser }} + {{- else }} + initContainers: + - name: volume-permissions + image: "{{ .Values.volumePermissions.image.name }}:{{ .Values.volumePermissions.image.tag }}" + imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} + command: ['sh', '-c', 'chmod -R g+rwX {{ .Values.persistence.path }}'] + volumeMounts: + - mountPath: {{ .Values.persistence.path }} + name: ghost-data + {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end}} {{- end }} - initContainers: - - name: volume-permissions - image: "{{ .Values.volumePermissions.image.name }}:{{ .Values.volumePermissions.image.tag }}" - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: ['sh', '-c', 'chmod -R g+rwX /bitnami'] - volumeMounts: - - mountPath: /bitnami - name: ghost-data containers: - name: {{ template "ghost.fullname" . }} image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/upstreamed/ghost/templates/ingress.yaml b/upstreamed/ghost/templates/ingress.yaml index 3afaeece73..d6e93bfa82 100644 --- a/upstreamed/ghost/templates/ingress.yaml +++ b/upstreamed/ghost/templates/ingress.yaml @@ -1,39 +1,36 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "ghost.fullname" . -}} -{{- $servicePort := .Values.ghostPort -}} -{{- $ingressPath := .Values.ingress.path -}} +{{- if .Values.ingress.enabled }} +{{- range .Values.ingress.hosts }} apiVersion: extensions/v1beta1 kind: Ingress metadata: - name: {{ $fullName }} + name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}" labels: - app: {{ template "ghost.name" . }} - chart: {{ template "ghost.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -{{- with .Values.ingress.annotations }} + app: {{ template "ghost.fullname" $ }} + chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}" + release: "{{ $.Release.Name }}" + heritage: "{{ $.Release.Service }}" annotations: -{{ toYaml . | indent 4 }} -{{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: -{{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} -{{- end }} rules: - {{- range .Values.ingress.hosts }} - - host: {{ . }} - http: - paths: - - path: {{ $ingressPath }} - backend: - serviceName: {{ $fullName }} - servicePort: http - {{- end }} + - host: {{ .name }} + http: + paths: + - path: {{ default "/" .path }} + backend: + serviceName: {{ template "ghost.fullname" $ }} + servicePort: 80 +{{- if .tls }} + tls: + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} +{{- end }} +--- +{{- end }} {{- end }} diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 4db9b83103..2ce665b447 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -4,7 +4,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.1.4-debian-9 + tag: 2.2.1-debian-9 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -137,12 +137,19 @@ mariadb: accessMode: ReadWriteOnce size: 8Gi - ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## serviceType: LoadBalancer +## Pod Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ +## +securityContext: + enabled: true + fsGroup: 1001 + runAsUser: 1001 + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## @@ -158,6 +165,7 @@ persistence: # storageClass: "-" accessMode: ReadWriteOnce size: 8Gi + path: /bitnami ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ @@ -167,18 +175,47 @@ resources: memory: 512Mi cpu: 300m -## Configure ingress resource -## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/ +## Configure the ingress resource that allows you to access the +## Ghost installation. Set up the URL +## ref: http://kubernetes.io/docs/user-guide/ingress/ ## ingress: + ## Set to true to enable ingress record generation enabled: false - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - path: / + + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array hosts: - - ghost.local - tls: [] - # - secretName: ghost-tls - # hosts: - # - ghost.local + - name: ghost.local + + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend ghost service will be connected at port 443 + tls: false + + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: ghost.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx + + secrets: + ## If you're providing your own certificates, please use this to add the certificates as secrets + ## key and certificate should start with -----BEGIN CERTIFICATE----- or + ## -----BEGIN RSA PRIVATE KEY----- + ## + ## name should line up with a tlsSecret set further up + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set + ## + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + # - name: ghost.local-tls + # key: + # certificate: diff --git a/upstreamed/joomla/Chart.yaml b/upstreamed/joomla/Chart.yaml index 945073bc50..16e20a66f6 100644 --- a/upstreamed/joomla/Chart.yaml +++ b/upstreamed/joomla/Chart.yaml @@ -1,5 +1,5 @@ name: joomla -version: 3.1.1 +version: 3.2.0 appVersion: 3.8.13 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/upstreamed/joomla/README.md b/upstreamed/joomla/README.md index 5fdebbadfc..4eff3ab4e5 100644 --- a/upstreamed/joomla/README.md +++ b/upstreamed/joomla/README.md @@ -77,13 +77,14 @@ The following table lists the configurable parameters of the Joomla! chart and t | `mariadb.root.password` | MariaDB admin password | `nil` | | `service.type` | Kubernetes Service type | `LoadBalancer` | | `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` | -| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `service.nodePorts.http` | Kubernetes http node port | `""` | | `service.nodePorts.https` | Kubernetes https node port | `""` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.hosts[0].name` | Hostname to your Joomla! installation | `joomla.local` | | `ingress.hosts[0].path` | Path within the url structure | `/` | | `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager ` | Add annotations for cert-manager | `false` | | `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `joomla.local-tls-secret` | | `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | | `ingress.secrets[0].name` | TLS Secret Name | `nil` | diff --git a/upstreamed/joomla/templates/ingress.yaml b/upstreamed/joomla/templates/ingress.yaml index 7b36038f63..a9e9b4541e 100644 --- a/upstreamed/joomla/templates/ingress.yaml +++ b/upstreamed/joomla/templates/ingress.yaml @@ -13,6 +13,9 @@ metadata: {{- if .tls }} ingress.kubernetes.io/secure-backends: "true" {{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} {{- range $key, $value := .annotations }} {{ $key }}: {{ $value | quote }} {{- end }} diff --git a/upstreamed/joomla/values.yaml b/upstreamed/joomla/values.yaml index 023ea20907..7234205fb2 100644 --- a/upstreamed/joomla/values.yaml +++ b/upstreamed/joomla/values.yaml @@ -167,20 +167,20 @@ ingress: ## A side effect of this will be that the backend joomla service will be connected at port 443 tls: false + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS tlsSecret: joomla.local-tls ## Ingress annotations done as key:value pairs - ## If you're using kube-lego, you will want to add: - ## kubernetes.io/tls-acme: true - ## ## For a full list of possible ingress annotations, please see ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md ## + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set annotations: # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: true secrets: ## If you're providing your own certificates, please use this to add the certificates as secrets @@ -188,7 +188,7 @@ ingress: ## -----BEGIN RSA PRIVATE KEY----- ## ## name should line up with a tlsSecret set further up - ## If you're using kube-lego, this is unneeded, as it will create the secret for you if it is not set + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set ## ## It is also possible to create and manage the certificates outside of this helm chart ## Please see README.md for more information diff --git a/upstreamed/mariadb/Chart.yaml b/upstreamed/mariadb/Chart.yaml index 99eb217d2a..47fff6e690 100644 --- a/upstreamed/mariadb/Chart.yaml +++ b/upstreamed/mariadb/Chart.yaml @@ -1,5 +1,5 @@ name: mariadb -version: 5.1.1 +version: 5.1.2 appVersion: 10.1.36 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: diff --git a/upstreamed/mariadb/templates/initialization-configmap.yaml b/upstreamed/mariadb/templates/initialization-configmap.yaml index 7bb969627e..f7f74e4344 100644 --- a/upstreamed/mariadb/templates/initialization-configmap.yaml +++ b/upstreamed/mariadb/templates/initialization-configmap.yaml @@ -1,3 +1,4 @@ +{{ if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]") }} apiVersion: v1 kind: ConfigMap metadata: @@ -9,4 +10,5 @@ metadata: release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} data: -{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*").AsConfig | indent 2 }} +{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]").AsConfig | indent 2 }} +{{ end }} \ No newline at end of file diff --git a/upstreamed/mariadb/templates/master-statefulset.yaml b/upstreamed/mariadb/templates/master-statefulset.yaml index 35b7e9f7ad..e5290b836b 100644 --- a/upstreamed/mariadb/templates/master-statefulset.yaml +++ b/upstreamed/mariadb/templates/master-statefulset.yaml @@ -139,8 +139,10 @@ spec: volumeMounts: - name: data mountPath: /bitnami/mariadb + {{- if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]") }} - name: custom-init-scripts mountPath: /docker-entrypoint-initdb.d + {{- end }} {{- if .Values.master.config }} - name: config mountPath: /opt/bitnami/mariadb/conf/my.cnf @@ -180,19 +182,21 @@ spec: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }} volumes: - {{- if and .Values.master.persistence.enabled .Values.master.persistence.existingClaim }} + {{- if and .Values.master.persistence.enabled .Values.master.persistence.existingClaim }} - name: {{ .Values.master.persistence.existingClaim }} persistentVolumeClaim: claimName: {{ .Values.master.persistence.existingClaim }} - {{ end }} - {{- if .Values.master.config }} + {{ end }} + {{- if .Values.master.config }} - name: config configMap: name: {{ template "master.fullname" . }} - {{- end }} + {{- end }} + {{- if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]") }} - name: custom-init-scripts configMap: name: {{ template "master.fullname" . }}-init-scripts + {{- end }} {{- if .Values.master.persistence.enabled }} volumeClaimTemplates: - metadata: diff --git a/upstreamed/mediawiki/Chart.yaml b/upstreamed/mediawiki/Chart.yaml index 28a8b95c33..6d4e168f39 100644 --- a/upstreamed/mediawiki/Chart.yaml +++ b/upstreamed/mediawiki/Chart.yaml @@ -1,5 +1,5 @@ name: mediawiki -version: 4.0.4 +version: 4.1.0 appVersion: 1.31.1 description: Extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database. diff --git a/upstreamed/mediawiki/README.md b/upstreamed/mediawiki/README.md index d23272297e..89988ec36d 100644 --- a/upstreamed/mediawiki/README.md +++ b/upstreamed/mediawiki/README.md @@ -82,6 +82,7 @@ The following table lists the configurable parameters of the MediaWiki chart and | `ingress.hosts[0].name` | Hostname to your Mediawiki installation | `mediawiki.local` | | `ingress.hosts[0].path` | Path within the url structure | `/` | | `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | | `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `mediawiki.local-tls-secret` | | `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | | `ingress.secrets[0].name` | TLS Secret Name | `nil` | diff --git a/upstreamed/mediawiki/templates/ingress.yaml b/upstreamed/mediawiki/templates/ingress.yaml index b0ec191fb2..32a175e86b 100644 --- a/upstreamed/mediawiki/templates/ingress.yaml +++ b/upstreamed/mediawiki/templates/ingress.yaml @@ -13,6 +13,9 @@ metadata: {{- if .tls }} ingress.kubernetes.io/secure-backends: "true" {{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} {{- range $key, $value := .annotations }} {{ $key }}: {{ $value | quote }} {{- end }} diff --git a/upstreamed/mediawiki/values.yaml b/upstreamed/mediawiki/values.yaml index ff805acb5a..2dcf925fa4 100644 --- a/upstreamed/mediawiki/values.yaml +++ b/upstreamed/mediawiki/values.yaml @@ -158,20 +158,20 @@ ingress: ## A side effect of this will be that the backend mediawiki service will be connected at port 443 tls: false + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS tlsSecret: mediawiki.local-tls ## Ingress annotations done as key:value pairs - ## If you're using kube-lego, you will want to add: - ## kubernetes.io/tls-acme: true - ## ## For a full list of possible ingress annotations, please see ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md ## ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set annotations: # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: true secrets: ## If you're providing your own certificates, please use this to add the certificates as secrets @@ -179,7 +179,7 @@ ingress: ## -----BEGIN RSA PRIVATE KEY----- ## ## name should line up with a tlsSecret set further up - ## If you're using kube-lego, this is unneeded, as it will create the secret for you if it is not set + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set ## ## It is also possible to create and manage the certificates outside of this helm chart ## Please see README.md for more information diff --git a/upstreamed/moodle/Chart.yaml b/upstreamed/moodle/Chart.yaml index 791872245c..81ba498778 100644 --- a/upstreamed/moodle/Chart.yaml +++ b/upstreamed/moodle/Chart.yaml @@ -1,5 +1,5 @@ name: moodle -version: 3.0.3 +version: 3.1.0 appVersion: 3.5.2 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised diff --git a/upstreamed/moodle/README.md b/upstreamed/moodle/README.md index 32939b1f77..8b5784d9c1 100644 --- a/upstreamed/moodle/README.md +++ b/upstreamed/moodle/README.md @@ -63,10 +63,16 @@ The following table lists the configurable parameters of the Moodle chart and th | `smtpUser` | SMTP user | `nil` | | `smtpPassword` | SMTP password | `nil` | | `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `ingress.enabled` | If ingress should be created | `false` | -| `ingress.annotations` | Any ingress annotations | `nil` | -| `ingress.hosts` | List of Ingress hosts | `nil` | -| `ingress.tls` | List of certs. If defined, https is set | `nil` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname to your Moodle installation | `moodle.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `moodle.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | | `affinity` | Set affinity for the moodle pods | `nil` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | | `persistence.enabled` | Enable persistence using PVC | `true` | @@ -81,10 +87,10 @@ The following table lists the configurable parameters of the Moodle chart and th | `externalDatabase.password` | Password for the above username | `nil` | | `externalDatabase.database` | Name of the existing database | `bitnami_moodle` | | `mariadb.enabled` | Whether to install the MariaDB chart | `true` | -| `mariadb.db.name` | Database name to create | `bitnami_moodle` | -| `mariadb.db.user` | Database user to create | `bn_moodle` | -| `mariadb.db.password` | Password for the database | `nil` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `mariadb.db.name` | Database name to create | `bitnami_moodle` | +| `mariadb.db.user` | Database user to create | `bn_moodle` | +| `mariadb.db.password` | Password for the database | `nil` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | | `mariadb.persistence.enabled` | Enable MariaDB persistence using PVC | `true` | | `mariadb.persistence.storageClass` | PVC Storage Class for MariaDB volume | `generic` | | `mariadb.persistence.accessMode` | PVC Access Mode for MariaDB volume | `ReadWriteOnce` | diff --git a/upstreamed/moodle/templates/_helpers.tpl b/upstreamed/moodle/templates/_helpers.tpl index f21bc9cc9f..6b8934c9aa 100644 --- a/upstreamed/moodle/templates/_helpers.tpl +++ b/upstreamed/moodle/templates/_helpers.tpl @@ -31,4 +31,9 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- printf "%s-%s" .Release.Name "moodle" | trunc 63 | trimSuffix "-" -}} {{- end -}} - +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "moodle.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} \ No newline at end of file diff --git a/upstreamed/moodle/templates/deployment.yaml b/upstreamed/moodle/templates/deployment.yaml index c7aac7c881..03817dad28 100644 --- a/upstreamed/moodle/templates/deployment.yaml +++ b/upstreamed/moodle/templates/deployment.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "moodle.fullname" . }} labels: app: {{ template "moodle.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "moodle.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: @@ -16,7 +16,7 @@ spec: metadata: labels: app: {{ template "moodle.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "moodle.chart" . }} release: "{{ .Release.Name }}" spec: {{- if .Values.affinity }} diff --git a/upstreamed/moodle/templates/ingress.yaml b/upstreamed/moodle/templates/ingress.yaml index a2a7e08c0d..11baec397e 100644 --- a/upstreamed/moodle/templates/ingress.yaml +++ b/upstreamed/moodle/templates/ingress.yaml @@ -1,35 +1,40 @@ -{{- if .Values.ingress.enabled -}} -{{- $releaseName := .Release.Name -}} -{{- $serviceName := include "moodle.fullname" . }} +{{- if .Values.ingress.enabled }} +{{- range .Values.ingress.hosts }} apiVersion: extensions/v1beta1 kind: Ingress metadata: -{{- if .Values.ingress.annotations }} - annotations: -{{ toYaml .Values.ingress.annotations | indent 4}} -{{- end }} + name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}" labels: - app: {{ template "moodle.fullname" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version }} - component: "{{ .Values.name }}" - heritage: {{ .Release.Service }} - release: {{ .Release.Name }} - name: {{ template "moodle.fullname" . }} + app: {{ template "moodle.fullname" $ }} + chart: {{ template "moodle.chart" $ }} + release: "{{ $.Release.Name }}" + heritage: "{{ $.Release.Service }}" + annotations: + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: rules: - {{- range .Values.ingress.hosts }} - - host: {{ . }} - http: - paths: - - backend: - serviceName: {{ $serviceName }} - servicePort: 80 - {{- end -}} -{{- if .Values.ingress.tls }} + - host: {{ .name }} + http: + paths: + - path: {{ default "/" .path }} + backend: + serviceName: {{ template "moodle.fullname" $ }} + servicePort: 80 +{{- if .tls }} tls: -{{ toYaml .Values.ingress.tls | indent 4 }} -{{- end -}} -{{- end -}} + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} +{{- end }} +--- +{{- end }} +{{- end }} + diff --git a/upstreamed/moodle/templates/pvc.yaml b/upstreamed/moodle/templates/pvc.yaml index c05976a75d..343673fac0 100644 --- a/upstreamed/moodle/templates/pvc.yaml +++ b/upstreamed/moodle/templates/pvc.yaml @@ -5,7 +5,7 @@ metadata: name: {{ template "moodle.fullname" . }} labels: app: {{ template "moodle.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "moodle.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/moodle/templates/secrets.yaml b/upstreamed/moodle/templates/secrets.yaml index fa37912229..5669ac5a5d 100644 --- a/upstreamed/moodle/templates/secrets.yaml +++ b/upstreamed/moodle/templates/secrets.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "moodle.fullname" . }} labels: app: {{ template "moodle.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "moodle.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque diff --git a/upstreamed/moodle/templates/svc.yaml b/upstreamed/moodle/templates/svc.yaml index 67522ddc22..2a69ef447e 100644 --- a/upstreamed/moodle/templates/svc.yaml +++ b/upstreamed/moodle/templates/svc.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "moodle.fullname" . }} labels: app: {{ template "moodle.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "moodle.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/moodle/values.yaml b/upstreamed/moodle/values.yaml index 4f35b78b7d..e1291c8b4d 100644 --- a/upstreamed/moodle/values.yaml +++ b/upstreamed/moodle/values.yaml @@ -139,32 +139,50 @@ mariadb: ## serviceType: LoadBalancer -## Optionally, create ingress controller +## Configure the ingress resource that allows you to access the +## Moodle installation. Set up the URL +## ref: http://kubernetes.io/docs/user-guide/ingress/ +## ingress: - ## If true, Moodle server Ingress will be created - ## + ## Set to true to enable ingress record generation enabled: false - ## Moodle server Ingress annotations - ## - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: 'true' + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array + hosts: + - name: moodle.local - ## Moodle server Ingress hostnames - ## Must be provided if Ingress is enabled - ## - hosts: [] - # - moodle.domain.com + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend moodle service will be connected at port 443 + tls: false - ## Moodle server Ingress TLS configuration - ## Secrets must be manually created in the namespace - ## kubectl create secret tls moodle-server-tls --cert=tls.crt --key=tls.key + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: moodle.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx + + secrets: + ## If you're providing your own certificates, please use this to add the certificates as secrets + ## key and certificate should start with -----BEGIN CERTIFICATE----- or + ## -----BEGIN RSA PRIVATE KEY----- ## - tls: [] - # - secretName: moodle-server-tls - # hosts: - # - moodle.domain.com + ## name should line up with a tlsSecret set further up + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set + ## + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + # - name: moodle.local-tls + # key: + # certificate: ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index c5560c3a87..bae28b05ba 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 3.0.2 +version: 3.1.0 appVersion: 11.0.20180915 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/upstreamed/odoo/README.md b/upstreamed/odoo/README.md index a335e80687..60a4c39f7a 100644 --- a/upstreamed/odoo/README.md +++ b/upstreamed/odoo/README.md @@ -64,12 +64,13 @@ The following table lists the configurable parameters of the Odoo chart and thei | `smtpProtocol` | SMTP protocol [`ssl`, `tls`] | `nil` | | `service.type` | Kubernetes Service type | `LoadBalancer` | | `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` | -| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `service.nodePort` | Kubernetes http node port | `""` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.hosts[0].name` | Hostname to your Odoo installation | `odoo.local` | | `ingress.hosts[0].path` | Path within the url structure | `/` | | `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | | `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `odoo.local-tls-secret` | | `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | | `ingress.secrets[0].name` | TLS Secret Name | `nil` | diff --git a/upstreamed/odoo/templates/ingress.yaml b/upstreamed/odoo/templates/ingress.yaml index 61c655c177..01bc6d0dc0 100644 --- a/upstreamed/odoo/templates/ingress.yaml +++ b/upstreamed/odoo/templates/ingress.yaml @@ -13,6 +13,9 @@ metadata: {{- if .tls }} ingress.kubernetes.io/secure-backends: "true" {{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} {{- range $key, $value := .annotations }} {{ $key }}: {{ $value | quote }} {{- end }} diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index 25deba3112..c93a9c2600 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -108,17 +108,18 @@ ingress: ## A side effect of this will be that the backend odoo service will be connected at port 443 tls: false + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS tlsSecret: odoo.local-tls ## Ingress annotations done as key:value pairs - ## If you're using kube-lego, you will want to add: - ## kubernetes.io/tls-acme: true - ## ## For a full list of possible ingress annotations, please see ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md ## ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set annotations: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: true @@ -129,7 +130,7 @@ ingress: ## -----BEGIN RSA PRIVATE KEY----- ## ## name should line up with a tlsSecret set further up - ## If you're using kube-lego, this is unneeded, as it will create the secret for you if it is not set + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set ## ## It is also possible to create and manage the certificates outside of this helm chart ## Please see README.md for more information diff --git a/upstreamed/owncloud/Chart.yaml b/upstreamed/owncloud/Chart.yaml index 24b24c3155..3301aed011 100644 --- a/upstreamed/owncloud/Chart.yaml +++ b/upstreamed/owncloud/Chart.yaml @@ -1,5 +1,5 @@ name: owncloud -version: 3.0.2 +version: 3.1.0 appVersion: 10.0.10 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/upstreamed/owncloud/README.md b/upstreamed/owncloud/README.md index ba9c3db52e..c2053b25fa 100644 --- a/upstreamed/owncloud/README.md +++ b/upstreamed/owncloud/README.md @@ -47,46 +47,52 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the ownCloud chart and their default values. -| Parameter | Description | Default | -|-------------------------------------|-------------------------------------------|-------------------------------------------------------- | -| `image.registry` | ownCloud image registry | `docker.io` | -| `image.repository` | ownCloud Image name | `bitnami/owncloud` | -| `image.tag` | ownCloud Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `ingress.enabled` | Enable use of ingress controllers | `false` | -| `ingress.servicePort` | Ingress' backend servicePort | `http` | -| `ingress.annotations` | An array of service annotations | `nil` | -| `ingress.tls` | Ingress TLS configuration | `[]` | -| `networkPolicyApiVersion` | The kubernetes network API version | `extensions/v1beta1` | -| `owncloudHost` | ownCloud host to create application URLs | `nil` | -| `owncloudLoadBalancerIP` | `loadBalancerIP` for the owncloud Service | `nil` | -| `owncloudUsername` | User of the application | `user` | -| `owncloudPassword` | Application password | Randomly generated | -| `owncloudEmail` | Admin email | `user@example.com` | -| `externalDatabase.host` | Host of the external database | `nil` | -| `allowEmptyPassword` | Allow DB blank passwords | `yes` | -| `externalDatabase.host` | Host of the external database | `nil` | -| `externalDatabase.port` | Port of the external database | `3306` | -| `externalDatabase.database` | Name of the existing database | `bitnami_owncloud` | -| `externalDatabase.user` | Existing username in the external db | `bn_owncloud` | -| `externalDatabase.password` | Password for the above username | `nil` | -| `mariadb.db.name` | Database name to create | `bitnami_owncloud` | -| `mariadb.enabled` | Whether to use the MariaDB chart | `true` | -| `mariadb.db.password` | Password for the database | `nil` | -| `mariadb.db.user` | Database user to create | `bn_owncloud` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | -| `persistence.apache.existingClaim` | An Existing PVC name for Apache volume | `nil` (uses alpha storage class annotation) | -| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | -| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | -| `persistence.owncloud.storageClass` | PVC Storage Class for ownCloud volume | `nil` (uses alpha storage class annotation) | -| `persistence.owncloud.existingClaim`| An Existing PVC name for ownCloud volume | `nil` (uses alpha storage class annotation) | -| `persistence.owncloud.accessMode` | PVC Access Mode for ownCloud volume | `ReadWriteOnce` | -| `persistence.owncloud.size` | PVC Storage Request for ownCloud volume | `8Gi` | -| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| Parameter | Description | Default | +|-------------------------------------|--------------------------------------------|-------------------------------------------------------- | +| `image.registry` | ownCloud image registry | `docker.io` | +| `image.repository` | ownCloud Image name | `bitnami/owncloud` | +| `image.tag` | ownCloud Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname to your ownCloud installation | `owncloud.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `owncloud.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `networkPolicyApiVersion` | The kubernetes network API version | `extensions/v1beta1` | +| `owncloudHost` | ownCloud host to create application URLs | `nil` | +| `owncloudLoadBalancerIP` | `loadBalancerIP` for the owncloud Service | `nil` | +| `owncloudUsername` | User of the application | `user` | +| `owncloudPassword` | Application password | Randomly generated | +| `owncloudEmail` | Admin email | `user@example.com` | +| `externalDatabase.host` | Host of the external database | `nil` | +| `allowEmptyPassword` | Allow DB blank passwords | `yes` | +| `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.port` | Port of the external database | `3306` | +| `externalDatabase.database` | Name of the existing database | `bitnami_owncloud` | +| `externalDatabase.user` | Existing username in the external db | `bn_owncloud` | +| `externalDatabase.password` | Password for the above username | `nil` | +| `mariadb.db.name` | Database name to create | `bitnami_owncloud` | +| `mariadb.enabled` | Whether to use the MariaDB chart | `true` | +| `mariadb.db.password` | Password for the database | `nil` | +| `mariadb.db.user` | Database user to create | `bn_owncloud` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | +| `persistence.apache.existingClaim` | An Existing PVC name for Apache volume | `nil` (uses alpha storage class annotation) | +| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | +| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | +| `persistence.owncloud.storageClass` | PVC Storage Class for ownCloud volume | `nil` (uses alpha storage class annotation) | +| `persistence.owncloud.existingClaim`| An Existing PVC name for ownCloud volume | `nil` (uses alpha storage class annotation) | +| `persistence.owncloud.accessMode` | PVC Access Mode for ownCloud volume | `ReadWriteOnce` | +| `persistence.owncloud.size` | PVC Storage Request for ownCloud volume | `8Gi` | +| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | The above parameters map to the env variables defined in [bitnami/owncloud](http://github.com/bitnami/bitnami-docker-owncloud). For more information please refer to the [bitnami/owncloud](http://github.com/bitnami/bitnami-docker-owncloud) image documentation. diff --git a/upstreamed/owncloud/templates/_helpers.tpl b/upstreamed/owncloud/templates/_helpers.tpl index 46e137398e..27c8299876 100644 --- a/upstreamed/owncloud/templates/_helpers.tpl +++ b/upstreamed/owncloud/templates/_helpers.tpl @@ -43,3 +43,10 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "owncloud.serviceIP" .) $host -}} {{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "owncloud.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} \ No newline at end of file diff --git a/upstreamed/owncloud/templates/deployment.yaml b/upstreamed/owncloud/templates/deployment.yaml index 20d9698c12..ceb5e74b23 100644 --- a/upstreamed/owncloud/templates/deployment.yaml +++ b/upstreamed/owncloud/templates/deployment.yaml @@ -5,7 +5,7 @@ metadata: name: {{ template "owncloud.fullname" . }} labels: app: {{ template "owncloud.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "owncloud.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: @@ -18,7 +18,7 @@ spec: metadata: labels: app: {{ template "owncloud.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "owncloud.chart" . }} release: "{{ .Release.Name }}" spec: {{- if .Values.image.pullSecrets }} diff --git a/upstreamed/owncloud/templates/ingress.yaml b/upstreamed/owncloud/templates/ingress.yaml index 68053ad425..1976e96bcd 100644 --- a/upstreamed/owncloud/templates/ingress.yaml +++ b/upstreamed/owncloud/templates/ingress.yaml @@ -1,28 +1,39 @@ {{- if .Values.ingress.enabled }} -apiVersion: {{ required "A valid .Values.networkPolicyApiVersion entry required!" .Values.networkPolicyApiVersion }} +{{- range .Values.ingress.hosts }} +apiVersion: extensions/v1beta1 kind: Ingress metadata: - name: {{ template "owncloud.fullname" . }} + name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}" labels: - app: {{ template "owncloud.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -{{- if .Values.ingress.annotations }} + app: {{ template "owncloud.fullname" $ }} + chart: {{ template "owncloud.chart" $ }} + release: "{{ $.Release.Name }}" + heritage: "{{ $.Release.Service }}" annotations: -{{ toYaml .Values.ingress.annotations | indent 4 }} -{{- end }} + {{- if .tls }} + ingress.kubernetes.io/secure-backends: "true" + {{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: rules: - - host: {{ .Values.owncloudHost }} + - host: {{ .name }} http: paths: - - path: / - backend: - serviceName: {{ template "owncloud.fullname" . }} - servicePort: {{ .Values.ingress.servicePort }} -{{- if .Values.ingress.tls }} + - path: {{ default "/" .path }} + backend: + serviceName: {{ template "owncloud.fullname" $ }} + servicePort: 80 +{{- if .tls }} tls: -{{ toYaml .Values.ingress.tls | indent 4 }} -{{- end -}} + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} +{{- end }} +--- +{{- end }} {{- end }} diff --git a/upstreamed/owncloud/templates/secrets.yaml b/upstreamed/owncloud/templates/secrets.yaml index de57a0de64..dd38abf4bf 100644 --- a/upstreamed/owncloud/templates/secrets.yaml +++ b/upstreamed/owncloud/templates/secrets.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "owncloud.fullname" . }} labels: app: {{ template "owncloud.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "owncloud.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque diff --git a/upstreamed/owncloud/templates/svc.yaml b/upstreamed/owncloud/templates/svc.yaml index cd3273b4d1..162b31cad8 100644 --- a/upstreamed/owncloud/templates/svc.yaml +++ b/upstreamed/owncloud/templates/svc.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "owncloud.fullname" . }} labels: app: {{ template "owncloud.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "owncloud.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/owncloud/values.yaml b/upstreamed/owncloud/values.yaml index 01bc3fa14f..46ee226dbd 100644 --- a/upstreamed/owncloud/values.yaml +++ b/upstreamed/owncloud/values.yaml @@ -21,19 +21,51 @@ image: ## For Kubernetes v1.7, use 'networking.k8s.io/v1' networkPolicyApiVersion: extensions/v1beta1 -## Allowing use of ingress controllers -## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/ +## Configure the ingress resource that allows you to access the +## ownCloud installation. Set up the URL +## ref: http://kubernetes.io/docs/user-guide/ingress/ ## ingress: + ## Set to true to enable ingress record generation enabled: false - servicePort: http - annotations: - # kubernetes.io/ingress.class: nginx - # ingress.kubernetes.io/whitelist-source-range: "10.0.0.0/24,172.10.0.1" - tls: - # - secretName: owncloud.cluster.local - # hosts: - # - owncloud.cluster.local + + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array + hosts: + - name: owncloud.local + + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend owncloud service will be connected at port 443 + tls: false + + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: owncloud.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx + + secrets: + ## If you're providing your own certificates, please use this to add the certificates as secrets + ## key and certificate should start with -----BEGIN CERTIFICATE----- or + ## -----BEGIN RSA PRIVATE KEY----- + ## + ## name should line up with a tlsSecret set further up + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set + ## + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + # - name: owncloud.local-tls + # key: + # certificate: ## ownCloud host to create application URLs ## ref: https://github.com/bitnami/bitnami-docker-owncloud#configuration diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index aac0f4ca7d..5da88e4051 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,5 +1,5 @@ name: phabricator -version: 3.0.6 +version: 3.1.0 appVersion: 2018.40.0 description: Collection of open source web applications that help software companies build better software. keywords: diff --git a/upstreamed/phabricator/README.md b/upstreamed/phabricator/README.md index d8894df943..9d566125ec 100644 --- a/upstreamed/phabricator/README.md +++ b/upstreamed/phabricator/README.md @@ -77,12 +77,16 @@ The following table lists the configurable parameters of the Phabricator chart a | `persistence.phabricator.accessMode` | PVC Access Mode for Phabricator volume | `ReadWriteOnce` | | `persistence.phabricator.size` | PVC Storage Request for Phabricator volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | -| `ingress.enabled` | enable ingress | `false` | -| `ingress.path` | path to expose on ingress | `nil` | -| `ingress.hosts` | listss of accepted hostnames | `nil` | -| `ingress.annotations` | annotations to use on the ingress | `nil` | -| `ingress.tls.secretName` | tls secret name | `nil` | -| `ingress.tls.hosts` | hostnames the secret applies to | `nil` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname to your Phabricator installation | `phabricator.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `phabricator.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | The above parameters map to the env variables defined in [bitnami/phabricator](http://github.com/bitnami/bitnami-docker-phabricator). For more information please refer to the [bitnami/phabricator](http://github.com/bitnami/bitnami-docker-phabricator) image documentation. diff --git a/upstreamed/phabricator/templates/ingress.yaml b/upstreamed/phabricator/templates/ingress.yaml index 52be48f310..649a661494 100644 --- a/upstreamed/phabricator/templates/ingress.yaml +++ b/upstreamed/phabricator/templates/ingress.yaml @@ -1,33 +1,40 @@ -{{- if .Values.ingress.enabled -}} -{{- $serviceName := include "phabricator.fullname" . -}} -{{- $ingressPath := .Values.ingress.path -}} +{{- if .Values.ingress.enabled }} +{{- range .Values.ingress.hosts }} apiVersion: extensions/v1beta1 kind: Ingress metadata: + name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}" labels: - app: {{ template "phabricator.name" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - heritage: {{ .Release.Service }} - release: {{ .Release.Name }} - name: {{ template "phabricator.fullname" . }} + app: {{ template "phabricator.fullname" $ }} + chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}" + release: "{{ $.Release.Name }}" + heritage: "{{ $.Release.Service }}" annotations: - {{- range $key, $value := .Values.ingress.annotations }} - {{ $key }}: {{ $value | quote }} + {{- if .tls }} + ingress.kubernetes.io/secure-backends: "true" + {{- end }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .annotations }} + {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: - {{- range $host := .Values.ingress.hosts }} - - host: {{ $host }} - http: - paths: - - path: {{ $ingressPath }} - backend: - serviceName: {{ $serviceName }} - servicePort: 80 - {{- end -}} - {{- if .Values.ingress.tls }} + - host: {{ .name }} + http: + paths: + - path: {{ default "/" .path }} + backend: + serviceName: {{ template "phabricator.fullname" $ }} + servicePort: 80 +{{- if .tls }} tls: -{{ toYaml .Values.ingress.tls | indent 4 }} - {{- end -}} -{{- end -}} + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} +{{- end }} +--- +{{- end }} +{{- end }} diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 35c6783fac..64809642ab 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -133,20 +133,51 @@ persistence: accessMode: ReadWriteOnce size: 8Gi +## Configure the ingress resource that allows you to access the +## Phabricator installation. Set up the URL +## ref: http://kubernetes.io/docs/user-guide/ingress/ +## ingress: + ## Set to true to enable ingress record generation enabled: false - # path: / - # Used to create an Ingress record. - # hosts: - # - chart-example.local - # annotations: - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - # tls: - # Secrets must be manually created in the namespace. - # - secretName: chart-example-tls - # hosts: - # - chart-example.local + + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array + hosts: + - name: phabricator.local + + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend phabricator service will be connected at port 443 + tls: false + + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: phabricator.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx + + secrets: + ## If you're providing your own certificates, please use this to add the certificates as secrets + ## key and certificate should start with -----BEGIN CERTIFICATE----- or + ## -----BEGIN RSA PRIVATE KEY----- + ## + ## name should line up with a tlsSecret set further up + ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set + ## + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + # - name: phabricator.local-tls + # key: + # certificate: ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index f6f697eba1..c43fce9aae 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.4.0 +version: 3.4.1 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/README.md b/upstreamed/rabbitmq/README.md index 88def3a747..75cccef1bb 100644 --- a/upstreamed/rabbitmq/README.md +++ b/upstreamed/rabbitmq/README.md @@ -65,7 +65,6 @@ The following table lists the configurable parameters of the RabbitMQ chart and | `rabbitmq.plugins` | configuration file for plugins to enable | `[rabbitmq_management,rabbitmq_peer_discovery_k8s].` | | `rabbitmq.clustering.address_type` | Switch clustering mode | `ip` or `hostname` | `rabbitmq.clustering.k8s_domain` | Customize internal k8s cluster domain | `cluster.local` - | `rabbitmq.ulimitNofiles` | Max File Descriptor limit | `65536` | | `rabbitmq.configuration` | rabbitmq.conf content | see values.yaml | | `serviceType` | Kubernetes Service type | `ClusterIP` | diff --git a/upstreamed/wordpress/Chart.yaml b/upstreamed/wordpress/Chart.yaml index a8c0531fc0..5b7d156eaf 100644 --- a/upstreamed/wordpress/Chart.yaml +++ b/upstreamed/wordpress/Chart.yaml @@ -1,5 +1,5 @@ name: wordpress -version: 3.1.0 +version: 3.1.1 appVersion: 4.9.8 description: Web publishing platform for building blogs and websites. icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png diff --git a/upstreamed/wordpress/values-production.yaml b/upstreamed/wordpress/values-production.yaml index 8d6f31afe6..8988ce7974 100644 --- a/upstreamed/wordpress/values-production.yaml +++ b/upstreamed/wordpress/values-production.yaml @@ -178,7 +178,7 @@ ingress: ## A side effect of this will be that the backend wordpress service will be connected at port 443 tls: true - ## Set this to true in order to add the corresponding annontations for cert-manager + ## Set this to true in order to add the corresponding annotations for cert-manager certManager: false ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS diff --git a/upstreamed/wordpress/values.yaml b/upstreamed/wordpress/values.yaml index 8b260de228..d1707badd4 100644 --- a/upstreamed/wordpress/values.yaml +++ b/upstreamed/wordpress/values.yaml @@ -181,7 +181,7 @@ ingress: ## A side effect of this will be that the backend wordpress service will be connected at port 443 tls: false - ## Set this to true in order to add the corresponding annontations for cert-manager + ## Set this to true in order to add the corresponding annotations for cert-manager certManager: false ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS From 4f2510670546e7feff9814ced8b0b899dceea880 Mon Sep 17 00:00:00 2001 From: tompizmor Date: Fri, 12 Oct 2018 12:26:56 +0200 Subject: [PATCH 009/153] [bitnami/consul] Add service annotations --- bitnami/consul/Chart.yaml | 3 +++ bitnami/consul/README.md | 2 ++ bitnami/consul/templates/ui-service.yaml | 7 +++++++ bitnami/consul/values.yaml | 7 +++++++ 4 files changed, 19 insertions(+) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index cb7ddf3191..a532281670 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -7,6 +7,9 @@ appVersion: 1.3.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy. +home: https://www.consul.io/ +sources: +- https://github.com/bitnami/consul icon: https://raw.githubusercontent.com/hashicorp/consul/bce3809dfca37b883828c3715b84143dd71c0f85/website/source/assets/images/favicons/android-chrome-512x512.png maintainers: - name: Bitnami diff --git a/bitnami/consul/README.md b/bitnami/consul/README.md index 1f156df662..430a6aefe9 100644 --- a/bitnami/consul/README.md +++ b/bitnami/consul/README.md @@ -80,6 +80,8 @@ The following tables lists the configurable parameters of the Consul chart and t | `antiAffinity` | Consul pod anti-affinity setting | `soft` | | `ui.service.enabled` | Use a service to access Consul Ui | `true` | | `ui.service.type` | Kubernetes Service Type | `ClusterIP` | +| `ui.service.annotations` | Annotations for Consul UI service | {} | +| `ui.service.loadBalancerIP` | IP if Consul UI service type is `LoadBalancer` | `nil` | | `ui.ingress.enabled` | Enable ingress controller resource | `false` | | `ui.ingress.hosts[0].name` | Hostname to your Consul installation | `consul-ui.local` | | `ui.ingress.hosts[0].path` | Path within the url structure | `/` | diff --git a/bitnami/consul/templates/ui-service.yaml b/bitnami/consul/templates/ui-service.yaml index dcbecb832c..44514a8823 100644 --- a/bitnami/consul/templates/ui-service.yaml +++ b/bitnami/consul/templates/ui-service.yaml @@ -9,12 +9,19 @@ metadata: release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} component: ui +{{- with .Values.ui.service.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: ports: - name: http port: {{ .Values.uiPort }} targetPort: http type: "{{ .Values.ui.service.type }}" + {{- if and (eq .Values.ui.service.type "LoadBalancer") .Values.ui.service.loadBalancerIP }} + loadBalancerIP: {{ .Values.ui.service.loadBalancerIP }} + {{- end }} selector: app: "{{ template "consul.name" . }}" chart: {{ template "consul.chart" . }} diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index e8b3bdbe29..9d9edbb80a 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -103,6 +103,13 @@ ui: service: enabled: true type: "ClusterIP" + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: + # kubernetes.io/ingress.class: nginx + loadBalancerIP: ## Configure the ingress resource that allows you to access the ## Consul user interface. Set up the URL From f4ddeda0c0a45c8038042bf2c97b6a5a03483e8a Mon Sep 17 00:00:00 2001 From: tompizmor Date: Fri, 12 Oct 2018 12:50:35 +0200 Subject: [PATCH 010/153] Rebase and update values-production --- bitnami/consul/Chart.yaml | 2 +- bitnami/consul/values-production.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index a532281670..07e20ed09d 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -2,7 +2,7 @@ name: consul home: https://www.consul.io/ sources: - https://github.com/bitnami/consul -version: 2.2.0 +version: 2.3.0 appVersion: 1.3.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index 7654ccc6c1..ebd81f5784 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -103,6 +103,13 @@ ui: service: enabled: true type: "ClusterIP" + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: + # kubernetes.io/ingress.class: nginx + loadBalancerIP: ## Configure the ingress resource that allows you to access the ## Consul user interface. Set up the URL From b34c8c5bb35f70c0874fa0922c4d8ca457de8580 Mon Sep 17 00:00:00 2001 From: tompizmor Date: Fri, 12 Oct 2018 12:58:00 +0200 Subject: [PATCH 011/153] Edit default values for annotations --- bitnami/consul/values-production.yaml | 6 ++++-- bitnami/consul/values.yaml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index ebd81f5784..931ee6388c 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -107,8 +107,10 @@ ui: ## set the LoadBalancer service type to internal only. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer ## - annotations: - # kubernetes.io/ingress.class: nginx + annotations: {} + # cloud.google.com/load-balancer-type: "Internal" + # service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 + # service.beta.kubernetes.io/azure-load-balancer-internal: "true" loadBalancerIP: ## Configure the ingress resource that allows you to access the diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 9d9edbb80a..7f0e8e7dd2 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -107,8 +107,10 @@ ui: ## set the LoadBalancer service type to internal only. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer ## - annotations: - # kubernetes.io/ingress.class: nginx + annotations: {} + # cloud.google.com/load-balancer-type: "Internal" + # service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 + # service.beta.kubernetes.io/azure-load-balancer-internal: "true" loadBalancerIP: ## Configure the ingress resource that allows you to access the From a8299797828f76ad68b74a94a8e02d61946e04a4 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 12 Oct 2018 13:07:40 +0200 Subject: [PATCH 012/153] [bitnami/etcd] Enable prometheus metrics Signed-off-by: Javier J. Salmeron Garcia --- bitnami/etcd/Chart.yaml | 2 +- bitnami/etcd/README.md | 4 ++++ bitnami/etcd/templates/statefulset.yaml | 15 +++++++++------ bitnami/etcd/values-production.yaml | 13 ++++++++++++- bitnami/etcd/values.yaml | 13 ++++++++++++- 5 files changed, 38 insertions(+), 9 deletions(-) diff --git a/bitnami/etcd/Chart.yaml b/bitnami/etcd/Chart.yaml index f6b6513ad9..58df89e9db 100644 --- a/bitnami/etcd/Chart.yaml +++ b/bitnami/etcd/Chart.yaml @@ -1,5 +1,5 @@ name: etcd -version: 1.1.6 +version: 1.2.0 appVersion: 3.3.10 description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines keywords: diff --git a/bitnami/etcd/README.md b/bitnami/etcd/README.md index 574dc68e4b..353dc3b162 100644 --- a/bitnami/etcd/README.md +++ b/bitnami/etcd/README.md @@ -101,6 +101,10 @@ The following tables lists the configurable parameters of the etcd chart and the | `readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `podAnnotations` | Annotations to be added to pods | {} | +| `metrics.enabled` | Enable prometheus to access etcd metrics endpoint | `false` | +| `metrics.podAnnotations` | Annotations for enabling prometheus to access the metrics endpoint | {`prometheus.io/scrape: "true",prometheus.io/port: "2379"`} | + Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/bitnami/etcd/templates/statefulset.yaml b/bitnami/etcd/templates/statefulset.yaml index 31cd7ab2a2..4574d3d935 100644 --- a/bitnami/etcd/templates/statefulset.yaml +++ b/bitnami/etcd/templates/statefulset.yaml @@ -21,12 +21,6 @@ spec: rollingUpdate: partition: {{ .Values.statefulset.rollingUpdatePartition }} {{- end }} - selector: - matchLabels: - app: {{ template "etcd.name" . }} - chart: {{ template "etcd.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} template: metadata: name: "{{ template "etcd.fullname" . }}" @@ -35,6 +29,15 @@ spec: chart: {{ template "etcd.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: +{{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} +{{- end }} +{{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} +{{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: diff --git a/bitnami/etcd/values-production.yaml b/bitnami/etcd/values-production.yaml index e00caf201d..6997ac76e9 100644 --- a/bitnami/etcd/values-production.yaml +++ b/bitnami/etcd/values-production.yaml @@ -165,4 +165,15 @@ readinessProbe: periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 6 - successThreshold: 1 \ No newline at end of file + successThreshold: 1 + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +metrics: + enabled: true + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "2379" diff --git a/bitnami/etcd/values.yaml b/bitnami/etcd/values.yaml index edf8ee6ec5..41ff8a2c68 100644 --- a/bitnami/etcd/values.yaml +++ b/bitnami/etcd/values.yaml @@ -165,4 +165,15 @@ readinessProbe: periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 6 - successThreshold: 1 \ No newline at end of file + successThreshold: 1 + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +metrics: + enabled: false + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "2379" From 8b9073608e08d5d595e0fa29b03728753303fc75 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Sat, 13 Oct 2018 10:37:16 +0000 Subject: [PATCH 013/153] Synchronize upstreamed folder to 97d510b --- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/templates/networkpolicy.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index c25a68f8bb..e8bb354eb5 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.1.2 +version: 4.1.3 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/templates/networkpolicy.yaml b/upstreamed/redis/templates/networkpolicy.yaml index d6e721be2c..85718fb046 100644 --- a/upstreamed/redis/templates/networkpolicy.yaml +++ b/upstreamed/redis/templates/networkpolicy.yaml @@ -12,6 +12,7 @@ spec: podSelector: matchLabels: app: {{ template "redis.name" . }} + release: "{{ .Release.Name }}" ingress: # Allow inbound connections - ports: From d2cf80efeed3b2f72bd2ef7af1ff080f5f975f47 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Mon, 15 Oct 2018 08:06:47 +0000 Subject: [PATCH 014/153] Bump versions --- bitnami/consul/Chart.yaml | 2 +- bitnami/mean/Chart.yaml | 2 +- bitnami/node/Chart.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index 2db0967d11..a7a9a6eb1a 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -2,7 +2,7 @@ name: consul home: https://www.consul.io/ sources: - https://github.com/bitnami/consul -version: 2.1.0 +version: 2.4.0 appVersion: 1.2.3 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and diff --git a/bitnami/mean/Chart.yaml b/bitnami/mean/Chart.yaml index d0f9959fa2..65ff669772 100644 --- a/bitnami/mean/Chart.yaml +++ b/bitnami/mean/Chart.yaml @@ -1,5 +1,5 @@ name: mean -version: 4.1.0 +version: 4.2.0 appVersion: 3.6.4 description: MEAN is a free and open-source JavaScript software stack for building dynamic web sites and web applications. The MEAN stack is MongoDB, Express.js, Angular, and Node.js. Because all components of the MEAN stack support programs written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. keywords: diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index 879481bb05..b531de3c02 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,5 +1,5 @@ name: node -version: 6.1.0 +version: 6.2.0 appVersion: 10.7.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: From be6cbedd27cea4c5c0e30ce70c9790c27ca1a0ec Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Mon, 15 Oct 2018 08:53:18 +0000 Subject: [PATCH 015/153] Reword and update kafka dependencies --- bitnami/apache/values.yaml | 2 +- bitnami/consul/values.yaml | 2 +- bitnami/elasticsearch/values-production.yaml | 2 +- bitnami/elasticsearch/values.yaml | 2 +- bitnami/etcd/values-production.yaml | 2 +- bitnami/etcd/values.yaml | 2 +- bitnami/external-dns/values.yaml | 2 +- bitnami/jenkins/values.yaml | 2 +- bitnami/kafka/requirements.lock | 6 +++--- bitnami/kafka/requirements.yaml | 2 +- bitnami/kafka/values-production.yaml | 2 +- bitnami/kafka/values.yaml | 2 +- bitnami/mean/values.yaml | 2 +- bitnami/memcached/values.yaml | 2 +- bitnami/metrics-server/values.yaml | 2 +- bitnami/mysql/values-production.yaml | 2 +- bitnami/mysql/values.yaml | 2 +- bitnami/nginx-ingress-controller/values.yaml | 2 +- bitnami/nginx/values.yaml | 2 +- bitnami/node/values.yaml | 2 +- bitnami/postgresql/values-production.yaml | 2 +- bitnami/postgresql/values.yaml | 2 +- bitnami/tensorflow-inception/values.yaml | 2 +- bitnami/tomcat/values.yaml | 2 +- bitnami/wildfly/values.yaml | 2 +- bitnami/zookeeper/values.yaml | 2 +- 26 files changed, 28 insertions(+), 28 deletions(-) diff --git a/bitnami/apache/values.yaml b/bitnami/apache/values.yaml index 606df8f516..07fb362ebb 100644 --- a/bitnami/apache/values.yaml +++ b/bitnami/apache/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 5e4a040fcb..62c894b7ee 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index c72cb0e11b..7a3458e58e 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index ddced2bfdb..eb85e48f15 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/etcd/values-production.yaml b/bitnami/etcd/values-production.yaml index dd98694127..6f5325e569 100644 --- a/bitnami/etcd/values-production.yaml +++ b/bitnami/etcd/values-production.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/etcd/values.yaml b/bitnami/etcd/values.yaml index 19363067f6..9c522e6b73 100644 --- a/bitnami/etcd/values.yaml +++ b/bitnami/etcd/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/external-dns/values.yaml b/bitnami/external-dns/values.yaml index 37ece2ddac..00f4764a4d 100755 --- a/bitnami/external-dns/values.yaml +++ b/bitnami/external-dns/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index 184bb58e01..1767b94b2a 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/kafka/requirements.lock b/bitnami/kafka/requirements.lock index bed78e4757..11319167e2 100644 --- a/bitnami/kafka/requirements.lock +++ b/bitnami/kafka/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: zookeeper repository: https://charts.bitnami.com/bitnami - version: 0.0.1 -digest: sha256:5de3747cef6f8cc34f166277b81f8ccea2c8849caadf133c1d9bc7da5fe71607 -generated: 2018-06-14T16:25:45.420195607+02:00 + version: 1.0.3 +digest: sha256:eacfe6cdc916044d9b3594d6a9b2f265593c50f41565df0689f6e0f612d9dec6 +generated: 2018-10-15T10:48:19.443808+02:00 diff --git a/bitnami/kafka/requirements.yaml b/bitnami/kafka/requirements.yaml index 6dd090905e..68a6d6fb67 100644 --- a/bitnami/kafka/requirements.yaml +++ b/bitnami/kafka/requirements.yaml @@ -1,5 +1,5 @@ dependencies: - name: zookeeper - version: 0.x.x + version: 1.x.x repository: https://charts.bitnami.com/bitnami condition: zookeeper.enabled diff --git a/bitnami/kafka/values-production.yaml b/bitnami/kafka/values-production.yaml index b10285b9cb..8886ca4581 100644 --- a/bitnami/kafka/values-production.yaml +++ b/bitnami/kafka/values-production.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/kafka/values.yaml b/bitnami/kafka/values.yaml index 7dafb6b5ca..747ebffbf4 100644 --- a/bitnami/kafka/values.yaml +++ b/bitnami/kafka/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/mean/values.yaml b/bitnami/mean/values.yaml index 2bfee02e52..f417259932 100644 --- a/bitnami/mean/values.yaml +++ b/bitnami/mean/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/memcached/values.yaml b/bitnami/memcached/values.yaml index a1957d5794..3996f79137 100644 --- a/bitnami/memcached/values.yaml +++ b/bitnami/memcached/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/metrics-server/values.yaml b/bitnami/metrics-server/values.yaml index 735014ddc6..b66ad364f4 100644 --- a/bitnami/metrics-server/values.yaml +++ b/bitnami/metrics-server/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/mysql/values-production.yaml b/bitnami/mysql/values-production.yaml index 3d263916ca..458e2f701f 100644 --- a/bitnami/mysql/values-production.yaml +++ b/bitnami/mysql/values-production.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/mysql/values.yaml b/bitnami/mysql/values.yaml index 5bf493aca7..4a60e77156 100644 --- a/bitnami/mysql/values.yaml +++ b/bitnami/mysql/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index fb076b4a43..51860ede5d 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/nginx/values.yaml b/bitnami/nginx/values.yaml index 6e4864a471..01a6ddc188 100644 --- a/bitnami/nginx/values.yaml +++ b/bitnami/nginx/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index e58ff3cccb..cb04b9b3f6 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/postgresql/values-production.yaml b/bitnami/postgresql/values-production.yaml index e25ada2953..8dfa15cb02 100644 --- a/bitnami/postgresql/values-production.yaml +++ b/bitnami/postgresql/values-production.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/postgresql/values.yaml b/bitnami/postgresql/values.yaml index 435cabe85c..a5b1334399 100644 --- a/bitnami/postgresql/values.yaml +++ b/bitnami/postgresql/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index 1e54650cdc..4a174e974e 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/tomcat/values.yaml b/bitnami/tomcat/values.yaml index 6df1d5ab8b..d1d76bc530 100644 --- a/bitnami/tomcat/values.yaml +++ b/bitnami/tomcat/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/wildfly/values.yaml b/bitnami/wildfly/values.yaml index 29a1b79cfa..7fe2792f11 100644 --- a/bitnami/wildfly/values.yaml +++ b/bitnami/wildfly/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: diff --git a/bitnami/zookeeper/values.yaml b/bitnami/zookeeper/values.yaml index fb989d0b0b..b00908edee 100644 --- a/bitnami/zookeeper/values.yaml +++ b/bitnami/zookeeper/values.yaml @@ -1,5 +1,5 @@ ## Global chart image registry -## Please, note that this registry would be used for all the containers in the chart and dependencies +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: # registry: From 24706a6163b75700c705f3021bb37790f95423c9 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Mon, 15 Oct 2018 09:49:40 +0000 Subject: [PATCH 016/153] Apply some suggestions --- bitnami/apache/README.md | 2 +- bitnami/apache/templates/_helpers.tpl | 2 +- bitnami/apache/values.yaml | 6 +++--- bitnami/consul/README.md | 2 +- bitnami/consul/templates/_helpers.tpl | 2 +- bitnami/consul/values-production.yaml | 6 ++++++ bitnami/consul/values.yaml | 4 ++-- bitnami/elasticsearch/README.md | 2 +- bitnami/elasticsearch/templates/_helpers.tpl | 2 +- bitnami/elasticsearch/values-production.yaml | 4 ++-- bitnami/elasticsearch/values.yaml | 4 ++-- bitnami/etcd/README.md | 2 +- bitnami/etcd/templates/_helpers.tpl | 2 +- bitnami/etcd/values-production.yaml | 4 ++-- bitnami/etcd/values.yaml | 4 ++-- bitnami/external-dns/README.md | 2 +- bitnami/external-dns/templates/_helpers.tpl | 2 +- bitnami/external-dns/values.yaml | 4 ++-- bitnami/jenkins/README.md | 2 +- bitnami/jenkins/templates/_helpers.tpl | 2 +- bitnami/jenkins/values.yaml | 4 ++-- bitnami/kafka/README.md | 6 +++--- bitnami/kafka/templates/_helpers.tpl | 2 +- bitnami/kafka/values-production.yaml | 4 ++-- bitnami/kafka/values.yaml | 4 ++-- bitnami/mean/README.md | 2 +- bitnami/mean/templates/_helpers.tpl | 2 +- bitnami/mean/values.yaml | 4 ++-- bitnami/memcached/README.md | 2 +- bitnami/memcached/templates/_helpers.tpl | 2 +- bitnami/memcached/values.yaml | 4 ++-- bitnami/metrics-server/README.md | 2 +- bitnami/metrics-server/templates/_helpers.tpl | 2 +- bitnami/metrics-server/values.yaml | 4 ++-- bitnami/mysql/README.md | 2 +- bitnami/mysql/templates/_helpers.tpl | 2 +- bitnami/mysql/values-production.yaml | 4 ++-- bitnami/mysql/values.yaml | 4 ++-- bitnami/nginx-ingress-controller/README.md | 2 +- bitnami/nginx-ingress-controller/templates/_helpers.tpl | 2 +- bitnami/nginx-ingress-controller/values.yaml | 4 ++-- bitnami/nginx/README.md | 2 +- bitnami/nginx/templates/_helpers.tpl | 2 +- bitnami/nginx/values.yaml | 4 ++-- bitnami/node/README.md | 2 +- bitnami/node/templates/_helpers.tpl | 2 +- bitnami/node/values.yaml | 4 ++-- bitnami/postgresql/README.md | 2 +- bitnami/postgresql/templates/_helpers.tpl | 2 +- bitnami/postgresql/values-production.yaml | 4 ++-- bitnami/postgresql/values.yaml | 4 ++-- bitnami/tensorflow-inception/README.md | 2 +- bitnami/tensorflow-inception/templates/_helpers.tpl | 4 ++-- bitnami/tensorflow-inception/values.yaml | 4 ++-- bitnami/tomcat/README.md | 2 +- bitnami/tomcat/templates/_helpers.tpl | 2 +- bitnami/tomcat/values.yaml | 4 ++-- bitnami/wildfly/README.md | 2 +- bitnami/wildfly/templates/_helpers.tpl | 2 +- bitnami/wildfly/values.yaml | 4 ++-- bitnami/zookeeper/README.md | 2 +- bitnami/zookeeper/templates/_helpers.tpl | 2 +- bitnami/zookeeper/values.yaml | 4 ++-- 63 files changed, 96 insertions(+), 90 deletions(-) diff --git a/bitnami/apache/README.md b/bitnami/apache/README.md index a408c6e53c..37171d74ab 100644 --- a/bitnami/apache/README.md +++ b/bitnami/apache/README.md @@ -46,7 +46,7 @@ The following tables lists the configurable parameters of the Apache chart and t | Parameter | Description | Default | | --------------------------------- | ------------------------------------- | --------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Apache image registry | `docker.io` | | `image.repository` | Apache Image name | `bitnami/apache` | | `image.tag` | Apache Image tag | `{VERSION}` | diff --git a/bitnami/apache/templates/_helpers.tpl b/bitnami/apache/templates/_helpers.tpl index ce7932bfc4..0717733dc9 100644 --- a/bitnami/apache/templates/_helpers.tpl +++ b/bitnami/apache/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper Apache image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/apache/values.yaml b/bitnami/apache/values.yaml index 07fb362ebb..fa0cbfa84b 100644 --- a/bitnami/apache/values.yaml +++ b/bitnami/apache/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Apache image version ## ref: https://hub.docker.com/r/bitnami/apache/tags/ @@ -20,4 +20,4 @@ image: ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## # pullSecrets: - # - myRegistrKeySecretName \ No newline at end of file + # - myRegistrKeySecretName diff --git a/bitnami/consul/README.md b/bitnami/consul/README.md index 5aa0986473..4f4e71e293 100644 --- a/bitnami/consul/README.md +++ b/bitnami/consul/README.md @@ -51,7 +51,7 @@ The following tables lists the configurable parameters of the Consul chart and t | Parameter | Description | Default | | ------------------------------------ | ------------------------------------------------------ | ---------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Consul image registry | `docker.io` | | `image.repository` | Consul image name | `bitnami/consul` | | `image.tag` | Consul image tag | `{VERSION}` | diff --git a/bitnami/consul/templates/_helpers.tpl b/bitnami/consul/templates/_helpers.tpl index 68a3aa41c4..a5848e2732 100644 --- a/bitnami/consul/templates/_helpers.tpl +++ b/bitnami/consul/templates/_helpers.tpl @@ -29,7 +29,7 @@ Return the proper Consul image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index 931ee6388c..3e791c8c43 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Consul image version ## ref: https://hub.docker.com/r/bitnami/consul/tags/ ## diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 62c894b7ee..34a760f8db 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Consul image version ## ref: https://hub.docker.com/r/bitnami/consul/tags/ diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index 2d4f3423ae..0d1dcc147a 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -51,7 +51,7 @@ The following table lists the configurable parameters of the Elasticsearch chart | Parameter | Description | Default | |---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Elasticsearch image registry | `docker.io` | | `image.repository` | Elasticsearch image repository | `bitnami/elasticsearch` | | `image.tag` | Elasticsearch image tag | `{VERSION}` | diff --git a/bitnami/elasticsearch/templates/_helpers.tpl b/bitnami/elasticsearch/templates/_helpers.tpl index 6eb16a397d..6d28526d90 100644 --- a/bitnami/elasticsearch/templates/_helpers.tpl +++ b/bitnami/elasticsearch/templates/_helpers.tpl @@ -29,7 +29,7 @@ Return the proper ES image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 7a3458e58e..b1883a5f22 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Elasticsearch image version ## ref: https://hub.docker.com/r/bitnami/elasticsearch/tags/ diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index eb85e48f15..b3dedbbe68 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Elasticsearch image version ## ref: https://hub.docker.com/r/bitnami/elasticsearch/tags/ diff --git a/bitnami/etcd/README.md b/bitnami/etcd/README.md index 593dbe5671..6ced625c44 100644 --- a/bitnami/etcd/README.md +++ b/bitnami/etcd/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the etcd chart and the | Parameter | Description | Default | |---------------------------------------|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | etcd image registry | `docker.io` | | `image.repository` | etcd Image name | `bitnami/etcd` | | `image.tag` | etcd Image tag | `{VERSION}` | diff --git a/bitnami/etcd/templates/_helpers.tpl b/bitnami/etcd/templates/_helpers.tpl index 4d15b8f910..e5c193c9e9 100644 --- a/bitnami/etcd/templates/_helpers.tpl +++ b/bitnami/etcd/templates/_helpers.tpl @@ -29,7 +29,7 @@ Return the proper etcd image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/etcd/values-production.yaml b/bitnami/etcd/values-production.yaml index 6f5325e569..257e864269 100644 --- a/bitnami/etcd/values-production.yaml +++ b/bitnami/etcd/values-production.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami etcd image version ## ref: https://hub.docker.com/r/bitnami/etcd/tags/ diff --git a/bitnami/etcd/values.yaml b/bitnami/etcd/values.yaml index 9c522e6b73..4d711309e5 100644 --- a/bitnami/etcd/values.yaml +++ b/bitnami/etcd/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami etcd image version ## ref: https://hub.docker.com/r/bitnami/etcd/tags/ diff --git a/bitnami/external-dns/README.md b/bitnami/external-dns/README.md index bb54c690c4..0285386ace 100644 --- a/bitnami/external-dns/README.md +++ b/bitnami/external-dns/README.md @@ -48,7 +48,7 @@ The following table lists the configurable parameters of the external-dns chart | Parameter | Description | Default | | ------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | ExternalDNS image registry | `docker.io` | | `image.repository` | ExternalDNS Image name | `bitnami/external-dns` | | `image.tag` | ExternalDNS Image tag | `{VERSION}` | diff --git a/bitnami/external-dns/templates/_helpers.tpl b/bitnami/external-dns/templates/_helpers.tpl index 3dcb76f445..fc6773931a 100644 --- a/bitnami/external-dns/templates/_helpers.tpl +++ b/bitnami/external-dns/templates/_helpers.tpl @@ -29,7 +29,7 @@ Return the proper external-dns image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/external-dns/values.yaml b/bitnami/external-dns/values.yaml index 00f4764a4d..4bbe5c5468 100755 --- a/bitnami/external-dns/values.yaml +++ b/bitnami/external-dns/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami external-dns image version ## ref: https://hub.docker.com/r/bitnami/external-dns/tags/ diff --git a/bitnami/jenkins/README.md b/bitnami/jenkins/README.md index f1f50b84c0..83967a7f08 100644 --- a/bitnami/jenkins/README.md +++ b/bitnami/jenkins/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the Jenkins chart and | Parameter | Description | Default | |----------------------------|----------------------------------------|---------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Jenkins image registry | `docker.io` | | `image.repository` | Jenkins Image name | `bitnami/jenkins` | | `image.tag` | Jenkins Image tag | `{VERSION}` | diff --git a/bitnami/jenkins/templates/_helpers.tpl b/bitnami/jenkins/templates/_helpers.tpl index 71c91ab6bc..d813a22487 100644 --- a/bitnami/jenkins/templates/_helpers.tpl +++ b/bitnami/jenkins/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper Jenkins image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index 1767b94b2a..fa50bbffdb 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Jenkins image version ## ref: https://hub.docker.com/r/bitnami/jenkins/tags/ diff --git a/bitnami/kafka/README.md b/bitnami/kafka/README.md index bc2c59e9ce..ced6bab9b3 100644 --- a/bitnami/kafka/README.md +++ b/bitnami/kafka/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the Kafka chart and th | Parameter | Description | Default | |----------------------------------|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Kafka image registry | `docker.io` | | `image.repository` | Kafka Image name | `bitnami/kafka` | | `image.tag` | Kafka Image tag | `{VERSION}` | @@ -58,8 +58,8 @@ The following tables lists the configurable parameters of the Kafka chart and th | `replicaCount` | Number of Kafka nodes | `1` | | `config` | Configuration file for Kafka | `nil` | | `allowPlaintextListener` | Allow to use the PLAINTEXT listener | `true` | -| `listeners` | The address the socket server listens on. | `nil` | -| `advertisedListeners` | Hostname and port the broker will advertise to producers and consumers. | `nil` | +| `listeners` | The address the socket server listens on. | `nil` | +| `advertisedListeners` | Hostname and port the broker will advertise to producers and consumers. | `nil` | | `brokerId` | ID of the Kafka node | `-1` | | `deleteTopicEnable` | Switch to enable topic deletion or not. | `false` | | `heapOpts` | Kafka's Java Heap size. | `-Xmx1024m -Xms1024m` | diff --git a/bitnami/kafka/templates/_helpers.tpl b/bitnami/kafka/templates/_helpers.tpl index 04d368f4fb..491d9a5302 100644 --- a/bitnami/kafka/templates/_helpers.tpl +++ b/bitnami/kafka/templates/_helpers.tpl @@ -29,7 +29,7 @@ Return the proper Kafka image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/kafka/values-production.yaml b/bitnami/kafka/values-production.yaml index 8886ca4581..fb9dadc0fe 100644 --- a/bitnami/kafka/values-production.yaml +++ b/bitnami/kafka/values-production.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Kafka image version ## ref: https://hub.docker.com/r/bitnami/kafka/tags/ diff --git a/bitnami/kafka/values.yaml b/bitnami/kafka/values.yaml index 747ebffbf4..85ec43eb14 100644 --- a/bitnami/kafka/values.yaml +++ b/bitnami/kafka/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Kafka image version ## ref: https://hub.docker.com/r/bitnami/kafka/tags/ diff --git a/bitnami/mean/README.md b/bitnami/mean/README.md index 3011bee9b2..e891c34838 100644 --- a/bitnami/mean/README.md +++ b/bitnami/mean/README.md @@ -51,7 +51,7 @@ The following table lists the configurable parameters of the MEAN chart and thei | Parameter | Description | Default | |-----------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | NodeJS image registry | `docker.io` | | `image.repository` | NodeJS Image name | `bitnami/node` | | `image.tag` | NodeJS Image tag | `{VERSION}` | diff --git a/bitnami/mean/templates/_helpers.tpl b/bitnami/mean/templates/_helpers.tpl index db388dacf3..843a7dc412 100644 --- a/bitnami/mean/templates/_helpers.tpl +++ b/bitnami/mean/templates/_helpers.tpl @@ -48,7 +48,7 @@ Return the proper MEAN image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/mean/values.yaml b/bitnami/mean/values.yaml index f417259932..102e709d22 100644 --- a/bitnami/mean/values.yaml +++ b/bitnami/mean/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami node image version ## ref: https://hub.docker.com/r/bitnami/node/tags/ diff --git a/bitnami/memcached/README.md b/bitnami/memcached/README.md index 7b28b2b546..65909c4b31 100644 --- a/bitnami/memcached/README.md +++ b/bitnami/memcached/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the Memcached chart an | Parameter | Description | Default | |-----------------------------|-------------------------------------|---------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Memcached image registry | `docker.io` | | `image.repository` | Memcached Image name | `bitnami/memcached` | | `image.tag` | Memcached Image tag | `{VERSION}` | diff --git a/bitnami/memcached/templates/_helpers.tpl b/bitnami/memcached/templates/_helpers.tpl index b66ff363aa..33ab4dc9e7 100644 --- a/bitnami/memcached/templates/_helpers.tpl +++ b/bitnami/memcached/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper Memcached image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/memcached/values.yaml b/bitnami/memcached/values.yaml index 3996f79137..cb634ac3d4 100644 --- a/bitnami/memcached/values.yaml +++ b/bitnami/memcached/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Memcached image version ## ref: https://hub.docker.com/r/bitnami/memcached/tags/ diff --git a/bitnami/metrics-server/README.md b/bitnami/metrics-server/README.md index 136c2058ac..080ab86202 100644 --- a/bitnami/metrics-server/README.md +++ b/bitnami/metrics-server/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the Metrics Server cha | Parameter | Description | Default | |--------------------------|-----------------------------------------------------------------------------|----------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Metrics Server image registry | `docker.io` | | `image.repository` | Metrics Server image name | `bitnami/metrics-server` | | `image.tag` | Metrics Server image tag | `{VERSION}` | diff --git a/bitnami/metrics-server/templates/_helpers.tpl b/bitnami/metrics-server/templates/_helpers.tpl index 55d2d9cf7b..f5efdda1ca 100644 --- a/bitnami/metrics-server/templates/_helpers.tpl +++ b/bitnami/metrics-server/templates/_helpers.tpl @@ -40,7 +40,7 @@ Return the proper metrics-server image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/metrics-server/values.yaml b/bitnami/metrics-server/values.yaml index b66ad364f4..101d03fa8b 100644 --- a/bitnami/metrics-server/values.yaml +++ b/bitnami/metrics-server/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Metrics Server image version ## ref: https://hub.docker.com/r/bitnami/metrics-server/tags/ diff --git a/bitnami/mysql/README.md b/bitnami/mysql/README.md index beebfbc2a3..4481e79343 100644 --- a/bitnami/mysql/README.md +++ b/bitnami/mysql/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the MySQL chart and th | Parameter | Description | Default | |-------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | MySQL image registry | `docker.io` | | `image.repository` | MySQL Image name | `bitnami/mysql` | | `image.tag` | MySQL Image tag | `{VERSION}` | diff --git a/bitnami/mysql/templates/_helpers.tpl b/bitnami/mysql/templates/_helpers.tpl index 412296d205..434b662d11 100644 --- a/bitnami/mysql/templates/_helpers.tpl +++ b/bitnami/mysql/templates/_helpers.tpl @@ -35,7 +35,7 @@ Return the proper MySQL image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/mysql/values-production.yaml b/bitnami/mysql/values-production.yaml index 458e2f701f..915488cc76 100644 --- a/bitnami/mysql/values-production.yaml +++ b/bitnami/mysql/values-production.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami MySQL image ## ref: https://hub.docker.com/r/bitnami/mysql/tags/ diff --git a/bitnami/mysql/values.yaml b/bitnami/mysql/values.yaml index 4a60e77156..275ce66b64 100644 --- a/bitnami/mysql/values.yaml +++ b/bitnami/mysql/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami MySQL image ## ref: https://hub.docker.com/r/bitnami/mysql/tags/ diff --git a/bitnami/nginx-ingress-controller/README.md b/bitnami/nginx-ingress-controller/README.md index ab19befa7b..91d411cbff 100644 --- a/bitnami/nginx-ingress-controller/README.md +++ b/bitnami/nginx-ingress-controller/README.md @@ -48,7 +48,7 @@ The following tables lists the configurable parameters of the nginx-ingress-cont Parameter | Description | Default --- | --- | --- -`global.registry` | Global chart image registry | `nil` +`global.imageRegistry` | Global Docker image registry | `nil` `name` | name of the controller component | `controller` `image.registry` | name of the container image registry | `docker.io` `image.repository` | controller container image repository | `bitnami/nginx-ingress-controller` diff --git a/bitnami/nginx-ingress-controller/templates/_helpers.tpl b/bitnami/nginx-ingress-controller/templates/_helpers.tpl index 784cbbf651..951bafebe3 100644 --- a/bitnami/nginx-ingress-controller/templates/_helpers.tpl +++ b/bitnami/nginx-ingress-controller/templates/_helpers.tpl @@ -65,7 +65,7 @@ Return the proper nginx-ingress-controller image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index 51860ede5d..2fe6ee695c 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami NGINX Ingress controller image version ## ref: https://hub.docker.com/r/bitnami/nginx-ingress-controller/tags/ diff --git a/bitnami/nginx/README.md b/bitnami/nginx/README.md index eb63bab901..584de6abf0 100644 --- a/bitnami/nginx/README.md +++ b/bitnami/nginx/README.md @@ -44,7 +44,7 @@ The following tables lists the configurable parameters of the NGINX Open Source | Parameter | Description | Default | | ------------------------- | ------------------------------ | --------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | NGINX image registry | `docker.io` | | `image.repository` | NGINX Image name | `bitnami/nginx` | | `image.tag` | NGINX Image tag | `{VERSION}` | diff --git a/bitnami/nginx/templates/_helpers.tpl b/bitnami/nginx/templates/_helpers.tpl index 1b12ad19b5..8a7789c188 100644 --- a/bitnami/nginx/templates/_helpers.tpl +++ b/bitnami/nginx/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper NGINX image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/nginx/values.yaml b/bitnami/nginx/values.yaml index 01a6ddc188..abd4f35997 100644 --- a/bitnami/nginx/values.yaml +++ b/bitnami/nginx/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami NGINX image version ## ref: https://hub.docker.com/r/bitnami/nginx/tags/ diff --git a/bitnami/node/README.md b/bitnami/node/README.md index 81a3826d4f..3cd42ab117 100644 --- a/bitnami/node/README.md +++ b/bitnami/node/README.md @@ -51,7 +51,7 @@ The following table lists the configurable parameters of the Node chart and thei | Parameter | Description | Default | |-----------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | NodeJS image registry | `docker.io` | | `image.repository` | NodeJS Image name | `bitnami/node` | | `image.tag` | NodeJS Image tag | `{VERSION}` | diff --git a/bitnami/node/templates/_helpers.tpl b/bitnami/node/templates/_helpers.tpl index fb9d6dd978..0973abe1bc 100644 --- a/bitnami/node/templates/_helpers.tpl +++ b/bitnami/node/templates/_helpers.tpl @@ -48,7 +48,7 @@ Return the proper Node image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index cb04b9b3f6..2b155e946c 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami node image version ## ref: https://hub.docker.com/r/bitnami/node/tags/ diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md index 96a8ab5921..97b5efb1bb 100644 --- a/bitnami/postgresql/README.md +++ b/bitnami/postgresql/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | Parameter | Description | Default | |----------------------------|-------------------------------------------|---------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | PostgreSQL image registry | `docker.io` | | `image.repository` | PostgreSQL Image name | `bitnami/postgresql` | | `image.tag` | PostgreSQL Image tag | `{VERSION}` | diff --git a/bitnami/postgresql/templates/_helpers.tpl b/bitnami/postgresql/templates/_helpers.tpl index 502c5bfecd..d16200dc93 100644 --- a/bitnami/postgresql/templates/_helpers.tpl +++ b/bitnami/postgresql/templates/_helpers.tpl @@ -42,7 +42,7 @@ Return the proper PostgreSQL image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/postgresql/values-production.yaml b/bitnami/postgresql/values-production.yaml index 8dfa15cb02..176da43ba6 100644 --- a/bitnami/postgresql/values-production.yaml +++ b/bitnami/postgresql/values-production.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami PostgreSQL image version ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ diff --git a/bitnami/postgresql/values.yaml b/bitnami/postgresql/values.yaml index a5b1334399..3ccaddb5ad 100644 --- a/bitnami/postgresql/values.yaml +++ b/bitnami/postgresql/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami PostgreSQL image version ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ diff --git a/bitnami/tensorflow-inception/README.md b/bitnami/tensorflow-inception/README.md index 78b9c35894..f25b31cf65 100755 --- a/bitnami/tensorflow-inception/README.md +++ b/bitnami/tensorflow-inception/README.md @@ -62,7 +62,7 @@ The following tables lists the configurable parameters of the TensorFlow Incepti | Parameter | Description | Default | | ------------------------------- | -------------------------------------- | ---------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `server.image.registry` | TensorFlow Serving image registry | `docker.io` | | `server.image.repository` | TensorFlow Serving Image name | `bitnami/tensorflow-serving` | | `server.image.tag` | TensorFlow Serving Image tag | `{VERSION}` | diff --git a/bitnami/tensorflow-inception/templates/_helpers.tpl b/bitnami/tensorflow-inception/templates/_helpers.tpl index 19a8cb8c69..7a1755a377 100644 --- a/bitnami/tensorflow-inception/templates/_helpers.tpl +++ b/bitnami/tensorflow-inception/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper tensorflow-inception server image name {{- $registryName := .Values.server.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.server.image.repository -}} @@ -37,7 +37,7 @@ Return the proper tensorflow-inception client image name {{- $registryName := .Values.client.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.client.image.repository -}} diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index 4a174e974e..a1ab6c5e7f 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## TensorFlow Serving server image version ## ref: https://hub.docker.com/r/bitnami/tensorflow-serving/tags/ diff --git a/bitnami/tomcat/README.md b/bitnami/tomcat/README.md index fd0bf880a0..809992f7cc 100644 --- a/bitnami/tomcat/README.md +++ b/bitnami/tomcat/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the Tomcat chart and t | Parameter | Description | Default | |-------------------------------|----------------------------------------------|---------------------------------------------------------- | -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Tomcat image registry | `docker.io` | | `image.repository` | Tomcat Image name | `bitnami/tomcat` | | `image.tag` | Tomcat Image tag | `{VERSION}` | diff --git a/bitnami/tomcat/templates/_helpers.tpl b/bitnami/tomcat/templates/_helpers.tpl index 8c91414e08..ce34391e2c 100644 --- a/bitnami/tomcat/templates/_helpers.tpl +++ b/bitnami/tomcat/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper Tomcat image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/tomcat/values.yaml b/bitnami/tomcat/values.yaml index d1d76bc530..2cd86ee82e 100644 --- a/bitnami/tomcat/values.yaml +++ b/bitnami/tomcat/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Tomcat image version ## ref: https://hub.docker.com/r/bitnami/tomcat/tags/ diff --git a/bitnami/wildfly/README.md b/bitnami/wildfly/README.md index 96f0b55f42..d47e5ffee5 100644 --- a/bitnami/wildfly/README.md +++ b/bitnami/wildfly/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the WildFly chart and | Parameter | Description | Default | |----------------------------|----------------------------------------|------------------------------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | WildFly image registry | `docker.io` | | `image.repository` | WildFly Image name | `bitnami/wildfly` | | `image.tag` | WildFly Image tag | `{VERSION}` | diff --git a/bitnami/wildfly/templates/_helpers.tpl b/bitnami/wildfly/templates/_helpers.tpl index 65bb2e9212..a3c40fad11 100644 --- a/bitnami/wildfly/templates/_helpers.tpl +++ b/bitnami/wildfly/templates/_helpers.tpl @@ -22,7 +22,7 @@ Return the proper Wildfly image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/wildfly/values.yaml b/bitnami/wildfly/values.yaml index 7fe2792f11..5fec2a11d3 100644 --- a/bitnami/wildfly/values.yaml +++ b/bitnami/wildfly/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami WildFly image version ## ref: https://hub.docker.com/r/bitnami/wildfly/tags/ diff --git a/bitnami/zookeeper/README.md b/bitnami/zookeeper/README.md index 32187edbae..29f621a03d 100644 --- a/bitnami/zookeeper/README.md +++ b/bitnami/zookeeper/README.md @@ -47,7 +47,7 @@ The following tables lists the configurable parameters of the Zookeeper chart an | Parameter | Description | Default | |---------------------------------------|---------------------------------------------------------------------|----------------------------------------------------------| -| `global.registry` | Global chart image registry | `nil` | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Zookeeper image registry | `docker.io` | | `image.repository` | Zookeeper Image name | `bitnami/zookeeper` | | `image.tag` | Zookeeper Image tag | `{VERSION}` | diff --git a/bitnami/zookeeper/templates/_helpers.tpl b/bitnami/zookeeper/templates/_helpers.tpl index b2765c6d5b..184945f098 100644 --- a/bitnami/zookeeper/templates/_helpers.tpl +++ b/bitnami/zookeeper/templates/_helpers.tpl @@ -29,7 +29,7 @@ Return the proper Zookeeper image name {{- $registryName := .Values.image.registry -}} {{- if .Values.global }} {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.registry -}} + {{- $registryName := .Values.global.imageRegistry -}} {{- end -}} {{- end -}} {{- $repositoryName := .Values.image.repository -}} diff --git a/bitnami/zookeeper/values.yaml b/bitnami/zookeeper/values.yaml index b00908edee..ddeeb3b721 100644 --- a/bitnami/zookeeper/values.yaml +++ b/bitnami/zookeeper/values.yaml @@ -1,8 +1,8 @@ -## Global chart image registry +## Global Docker image registry ## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value ## # global: -# registry: +# imageRegistry: ## Bitnami Zookeeper image version ## ref: https://hub.docker.com/r/bitnami/zookeeper/tags/ From c34f18e9dee448debed9ccf3452574e24135cce4 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 15 Oct 2018 15:03:08 +0200 Subject: [PATCH 017/153] [bitnami/elasticsearch] Fix metrics deployment --- bitnami/elasticsearch/templates/metrics-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/templates/metrics-deploy.yaml b/bitnami/elasticsearch/templates/metrics-deploy.yaml index 818ec95ee9..f1349713ee 100644 --- a/bitnami/elasticsearch/templates/metrics-deploy.yaml +++ b/bitnami/elasticsearch/templates/metrics-deploy.yaml @@ -34,7 +34,7 @@ spec: - name: {{ template "elasticsearch.metrics.fullname" . }} image: {{ template "metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} - args: [ "-es.uri=http://{{ template "coordinating.fullname" . }}:{{ .Values.coordinating.service.port }}", "-es.all=true" ] + args: [ "-es.uri=http://{{ template "elasticsearch.coordinating.fullname" . }}:{{ .Values.coordinating.service.port }}", "-es.all=true" ] ports: - name: metrics containerPort: 9108 From 8a5054d520d4a508fb083ef037b4fd27cd776428 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 15 Oct 2018 15:05:32 +0200 Subject: [PATCH 018/153] Bump chart --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 4ef13fa892..c5e6922657 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.0.3 +version: 4.0.4 appVersion: 6.4.2 description: A highly scalable open-source full-text search and analytics engine keywords: From 9ead294d5705f2646e8d3b70e14129d23c07bf8a Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Mon, 15 Oct 2018 13:15:04 +0000 Subject: [PATCH 019/153] Change logic to determine registry --- bitnami/apache/templates/_helpers.tpl | 20 +++++++--- bitnami/consul/templates/_helpers.tpl | 20 +++++++--- bitnami/elasticsearch/templates/_helpers.tpl | 20 +++++++--- bitnami/etcd/templates/_helpers.tpl | 20 +++++++--- bitnami/external-dns/templates/_helpers.tpl | 20 +++++++--- bitnami/jenkins/templates/_helpers.tpl | 20 +++++++--- bitnami/kafka/templates/_helpers.tpl | 20 +++++++--- bitnami/mean/templates/_helpers.tpl | 20 +++++++--- bitnami/memcached/templates/_helpers.tpl | 20 +++++++--- bitnami/metrics-server/templates/_helpers.tpl | 20 +++++++--- bitnami/mysql/templates/_helpers.tpl | 21 ++++++---- .../templates/_helpers.tpl | 20 +++++++--- bitnami/nginx/templates/_helpers.tpl | 20 +++++++--- bitnami/node/templates/_helpers.tpl | 20 +++++++--- bitnami/postgresql/templates/_helpers.tpl | 20 +++++++--- .../templates/_helpers.tpl | 40 +++++++++++++------ bitnami/tomcat/templates/_helpers.tpl | 20 +++++++--- bitnami/wildfly/templates/_helpers.tpl | 20 +++++++--- bitnami/zookeeper/templates/_helpers.tpl | 20 +++++++--- 19 files changed, 280 insertions(+), 121 deletions(-) diff --git a/bitnami/apache/templates/_helpers.tpl b/bitnami/apache/templates/_helpers.tpl index 0717733dc9..567171186d 100644 --- a/bitnami/apache/templates/_helpers.tpl +++ b/bitnami/apache/templates/_helpers.tpl @@ -20,12 +20,20 @@ Return the proper Apache image name */}} {{- define "apache.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/consul/templates/_helpers.tpl b/bitnami/consul/templates/_helpers.tpl index a5848e2732..6a1ac0a7ed 100644 --- a/bitnami/consul/templates/_helpers.tpl +++ b/bitnami/consul/templates/_helpers.tpl @@ -27,12 +27,20 @@ Return the proper Consul image name */}} {{- define "consul.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/elasticsearch/templates/_helpers.tpl b/bitnami/elasticsearch/templates/_helpers.tpl index 6d28526d90..46cad9df98 100644 --- a/bitnami/elasticsearch/templates/_helpers.tpl +++ b/bitnami/elasticsearch/templates/_helpers.tpl @@ -27,14 +27,22 @@ Return the proper ES image name */}} {{- define "elasticsearch.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/etcd/templates/_helpers.tpl b/bitnami/etcd/templates/_helpers.tpl index e5c193c9e9..7477526cba 100644 --- a/bitnami/etcd/templates/_helpers.tpl +++ b/bitnami/etcd/templates/_helpers.tpl @@ -27,14 +27,22 @@ Return the proper etcd image name */}} {{- define "etcd.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/external-dns/templates/_helpers.tpl b/bitnami/external-dns/templates/_helpers.tpl index fc6773931a..739a894962 100644 --- a/bitnami/external-dns/templates/_helpers.tpl +++ b/bitnami/external-dns/templates/_helpers.tpl @@ -27,14 +27,22 @@ Return the proper external-dns image name */}} {{- define "external-dns.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/jenkins/templates/_helpers.tpl b/bitnami/jenkins/templates/_helpers.tpl index d813a22487..c20d44cd3d 100644 --- a/bitnami/jenkins/templates/_helpers.tpl +++ b/bitnami/jenkins/templates/_helpers.tpl @@ -20,12 +20,20 @@ Return the proper Jenkins image name */}} {{- define "jenkins.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/kafka/templates/_helpers.tpl b/bitnami/kafka/templates/_helpers.tpl index 491d9a5302..bae197a23f 100644 --- a/bitnami/kafka/templates/_helpers.tpl +++ b/bitnami/kafka/templates/_helpers.tpl @@ -27,14 +27,22 @@ Return the proper Kafka image name */}} {{- define "kafka.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/mean/templates/_helpers.tpl b/bitnami/mean/templates/_helpers.tpl index 843a7dc412..5bd43abb5b 100644 --- a/bitnami/mean/templates/_helpers.tpl +++ b/bitnami/mean/templates/_helpers.tpl @@ -46,12 +46,20 @@ Return the proper MEAN image name */}} {{- define "mean.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/memcached/templates/_helpers.tpl b/bitnami/memcached/templates/_helpers.tpl index 33ab4dc9e7..d9b10568ec 100644 --- a/bitnami/memcached/templates/_helpers.tpl +++ b/bitnami/memcached/templates/_helpers.tpl @@ -20,12 +20,20 @@ Return the proper Memcached image name */}} {{- define "memcached.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/metrics-server/templates/_helpers.tpl b/bitnami/metrics-server/templates/_helpers.tpl index f5efdda1ca..4aec7080d8 100644 --- a/bitnami/metrics-server/templates/_helpers.tpl +++ b/bitnami/metrics-server/templates/_helpers.tpl @@ -38,12 +38,20 @@ Return the proper metrics-server image name */}} {{- define "metrics-server.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/mysql/templates/_helpers.tpl b/bitnami/mysql/templates/_helpers.tpl index 434b662d11..451f40ac2f 100644 --- a/bitnami/mysql/templates/_helpers.tpl +++ b/bitnami/mysql/templates/_helpers.tpl @@ -27,20 +27,27 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end }} - {{/* Return the proper MySQL image name */}} {{- define "mysql.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/nginx-ingress-controller/templates/_helpers.tpl b/bitnami/nginx-ingress-controller/templates/_helpers.tpl index 951bafebe3..6074a372ed 100644 --- a/bitnami/nginx-ingress-controller/templates/_helpers.tpl +++ b/bitnami/nginx-ingress-controller/templates/_helpers.tpl @@ -63,14 +63,22 @@ Return the proper nginx-ingress-controller image name */}} {{- define "nginx-ingress-controller.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/nginx/templates/_helpers.tpl b/bitnami/nginx/templates/_helpers.tpl index 8a7789c188..32b533f693 100644 --- a/bitnami/nginx/templates/_helpers.tpl +++ b/bitnami/nginx/templates/_helpers.tpl @@ -20,12 +20,20 @@ Return the proper NGINX image name */}} {{- define "nginx.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/node/templates/_helpers.tpl b/bitnami/node/templates/_helpers.tpl index 0973abe1bc..7009fe0917 100644 --- a/bitnami/node/templates/_helpers.tpl +++ b/bitnami/node/templates/_helpers.tpl @@ -46,12 +46,20 @@ Return the proper Node image name */}} {{- define "node.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/postgresql/templates/_helpers.tpl b/bitnami/postgresql/templates/_helpers.tpl index d16200dc93..4cfc44d6b5 100644 --- a/bitnami/postgresql/templates/_helpers.tpl +++ b/bitnami/postgresql/templates/_helpers.tpl @@ -40,14 +40,22 @@ Return the proper PostgreSQL image name */}} {{- define "postgresql.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/tensorflow-inception/templates/_helpers.tpl b/bitnami/tensorflow-inception/templates/_helpers.tpl index 7a1755a377..7985f440ca 100644 --- a/bitnami/tensorflow-inception/templates/_helpers.tpl +++ b/bitnami/tensorflow-inception/templates/_helpers.tpl @@ -20,14 +20,22 @@ Return the proper tensorflow-inception server image name */}} {{- define "tensorflow-inception.server.image" -}} {{- $registryName := .Values.server.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.server.image.repository -}} {{- $tag := .Values.server.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* @@ -35,12 +43,20 @@ Return the proper tensorflow-inception client image name */}} {{- define "tensorflow-inception.client.image" -}} {{- $registryName := .Values.client.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.client.image.repository -}} {{- $tag := .Values.client.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/tomcat/templates/_helpers.tpl b/bitnami/tomcat/templates/_helpers.tpl index ce34391e2c..c20823f7cb 100644 --- a/bitnami/tomcat/templates/_helpers.tpl +++ b/bitnami/tomcat/templates/_helpers.tpl @@ -20,12 +20,20 @@ Return the proper Tomcat image name */}} {{- define "tomcat.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/wildfly/templates/_helpers.tpl b/bitnami/wildfly/templates/_helpers.tpl index a3c40fad11..3d8fd4ded0 100644 --- a/bitnami/wildfly/templates/_helpers.tpl +++ b/bitnami/wildfly/templates/_helpers.tpl @@ -20,12 +20,20 @@ Return the proper Wildfly image name */}} {{- define "wildfly.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/bitnami/zookeeper/templates/_helpers.tpl b/bitnami/zookeeper/templates/_helpers.tpl index 184945f098..ee2d22252f 100644 --- a/bitnami/zookeeper/templates/_helpers.tpl +++ b/bitnami/zookeeper/templates/_helpers.tpl @@ -27,12 +27,20 @@ Return the proper Zookeeper image name */}} {{- define "zookeeper.image" -}} {{- $registryName := .Values.image.registry -}} -{{- if .Values.global }} - {{- if .Values.global.regristry }} - {{- $registryName := .Values.global.imageRegistry -}} - {{- end -}} -{{- end -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} From 926386bae693207507d945b72ef819288734a7ec Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Tue, 16 Oct 2018 08:39:11 +0200 Subject: [PATCH 020/153] Update deps --- bitnami/mean/requirements.lock | 4 ++-- bitnami/node/requirements.lock | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitnami/mean/requirements.lock b/bitnami/mean/requirements.lock index 5ba31ec45b..d26485d0c6 100644 --- a/bitnami/mean/requirements.lock +++ b/bitnami/mean/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: mongodb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 4.2.3 + version: 4.5.0 - name: bitnami-common repository: https://charts.bitnami.com/bitnami version: 0.0.3 digest: sha256:e08b8d1bb8197aa8fdc27536aaa1de2e7de210515a451ebe94949a3db55264dd -generated: 2018-09-05T14:56:00.449083032+02:00 +generated: 2018-10-16T08:37:10.583517+02:00 diff --git a/bitnami/node/requirements.lock b/bitnami/node/requirements.lock index 205a9fa099..16a4526a24 100644 --- a/bitnami/node/requirements.lock +++ b/bitnami/node/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: mongodb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 4.2.3 + version: 4.5.0 - name: bitnami-common repository: https://charts.bitnami.com/bitnami version: 0.0.3 digest: sha256:e08b8d1bb8197aa8fdc27536aaa1de2e7de210515a451ebe94949a3db55264dd -generated: 2018-09-05T15:06:25.041888238+02:00 +generated: 2018-10-16T08:36:36.201735+02:00 From 78a98b678e338dc94b901d632f7beab138c49c04 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Tue, 16 Oct 2018 08:55:51 +0200 Subject: [PATCH 021/153] Update kafka deps (zookeeper) --- bitnami/kafka/requirements.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/kafka/requirements.lock b/bitnami/kafka/requirements.lock index 11319167e2..ecce16c868 100644 --- a/bitnami/kafka/requirements.lock +++ b/bitnami/kafka/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: zookeeper repository: https://charts.bitnami.com/bitnami - version: 1.0.3 + version: 1.1.0 digest: sha256:eacfe6cdc916044d9b3594d6a9b2f265593c50f41565df0689f6e0f612d9dec6 -generated: 2018-10-15T10:48:19.443808+02:00 +generated: 2018-10-16T08:55:34.669048+02:00 From c0833c4fb469a232a54418c260d86126e9ca77d0 Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Tue, 16 Oct 2018 07:44:57 +0000 Subject: [PATCH 022/153] kubeapps: bump chart version to 0.7.0 --- bitnami/kubeapps/Chart.yaml | 2 +- bitnami/kubeapps/README.md | 1 + bitnami/kubeapps/templates/_helpers.tpl | 17 ++++++++++++++++- .../templates/apprepository-deployment.yaml | 4 ++-- .../apprepository-jobs-bootstrap.yaml | 6 +++--- .../templates/apprepository-jobs-cleanup.yaml | 4 ++-- .../templates/chartsvc-deployment.yaml | 2 +- .../templates/dashboard-deployment.yaml | 2 +- .../kubeapps-frontend-deployment.yaml | 2 +- .../templates/kubeapps-jobs-upgrade.yaml | 2 +- .../templates/mongodb-jobs-cleanup.yaml | 2 +- .../templates/tiller-proxy-deployment.yaml | 4 ++-- bitnami/kubeapps/values.yaml | 18 ++++++++++++++---- 13 files changed, 46 insertions(+), 20 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 791872643c..35d07c8537 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.6.1 +version: 0.7.0 appVersion: v1.0.0-beta.2 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/README.md b/bitnami/kubeapps/README.md index a49e06fcd9..7bd40ec405 100644 --- a/bitnami/kubeapps/README.md +++ b/bitnami/kubeapps/README.md @@ -115,6 +115,7 @@ apprepository: EOF $ helm install --name kubeapps --namespace kubeapps bitnami/kubeapps -f custom-values.yaml ``` + ### Configuring connection to a custom namespace Tiller instance By default, Kubeapps connects to the Tiller Service in the `kube-system` namespace, the default install location for Helm. diff --git a/bitnami/kubeapps/templates/_helpers.tpl b/bitnami/kubeapps/templates/_helpers.tpl index 7f8b5037be..b632ae0493 100644 --- a/bitnami/kubeapps/templates/_helpers.tpl +++ b/bitnami/kubeapps/templates/_helpers.tpl @@ -28,7 +28,22 @@ If release name contains chart name it will be used as a full name. Render image reference */}} {{- define "kubeapps.image" -}} -{{ .registry }}/{{ .repository }}:{{ .tag }} +{{- $image := index . 0 -}} +{{- $global := index . 1 -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if $global -}} + {{- if $global.imageRegistry -}} + {{ $global.imageRegistry }}/{{ $image.repository }}:{{ $image.tag }} + {{- else -}} + {{ $image.registry }}/{{ $image.repository }}:{{ $image.tag }} + {{- end -}} +{{- else -}} + {{ $image.registry }}/{{ $image.repository }}:{{ $image.tag }} +{{- end -}} {{- end -}} {{/* diff --git a/bitnami/kubeapps/templates/apprepository-deployment.yaml b/bitnami/kubeapps/templates/apprepository-deployment.yaml index b5f090fc12..6dc95d22ab 100644 --- a/bitnami/kubeapps/templates/apprepository-deployment.yaml +++ b/bitnami/kubeapps/templates/apprepository-deployment.yaml @@ -22,12 +22,12 @@ spec: serviceAccountName: {{ template "kubeapps.apprepository.fullname" . }} containers: - name: controller - image: {{ template "kubeapps.image" .Values.apprepository.image }} + image: {{ template "kubeapps.image" (list .Values.apprepository.image .Values.global) }} command: - /apprepository-controller args: - --logtostderr - - --repo-sync-image={{ template "kubeapps.image" .Values.apprepository.syncImage }} + - --repo-sync-image={{ template "kubeapps.image" (list .Values.apprepository.syncImage .Values.global) }} - --namespace={{ .Release.Namespace }} - --mongo-url={{ template "kubeapps.mongodb.fullname" . }} - --mongo-secret-name={{ .Values.mongodb.existingSecret }} diff --git a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml b/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml index 91a1d3fd07..c2a4ed2df7 100644 --- a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml +++ b/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml @@ -19,11 +19,11 @@ spec: spec: containers: - name: kubectl - image: {{ template "kubeapps.image" .Values.hooks.image }} + image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }} command: - kubectl - - apply - - -f + - apply + - -f - /tmp/apprepositories/apprepositories.yaml volumeMounts: - mountPath: /tmp/apprepositories diff --git a/bitnami/kubeapps/templates/apprepository-jobs-cleanup.yaml b/bitnami/kubeapps/templates/apprepository-jobs-cleanup.yaml index 179a54bd6d..abe37f0714 100644 --- a/bitnami/kubeapps/templates/apprepository-jobs-cleanup.yaml +++ b/bitnami/kubeapps/templates/apprepository-jobs-cleanup.yaml @@ -20,13 +20,13 @@ spec: spec: containers: - name: kubectl - image: {{ template "kubeapps.image" .Values.hooks.image }} + image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }} command: - kubectl - delete - apprepositories.kubeapps.com - -n - - {{ .Release.Namespace }} + - {{ .Release.Namespace }} - --all restartPolicy: OnFailure serviceAccountName: {{ template "kubeapps.apprepository-jobs-cleanup.fullname" . }} diff --git a/bitnami/kubeapps/templates/chartsvc-deployment.yaml b/bitnami/kubeapps/templates/chartsvc-deployment.yaml index d25a726df9..9d17dcff47 100644 --- a/bitnami/kubeapps/templates/chartsvc-deployment.yaml +++ b/bitnami/kubeapps/templates/chartsvc-deployment.yaml @@ -21,7 +21,7 @@ spec: spec: containers: - name: chartsvc - image: {{ template "kubeapps.image" .Values.chartsvc.image }} + image: {{ template "kubeapps.image" (list .Values.chartsvc.image .Values.global) }} command: - /chartsvc args: diff --git a/bitnami/kubeapps/templates/dashboard-deployment.yaml b/bitnami/kubeapps/templates/dashboard-deployment.yaml index 58ba21536b..0635626fc7 100644 --- a/bitnami/kubeapps/templates/dashboard-deployment.yaml +++ b/bitnami/kubeapps/templates/dashboard-deployment.yaml @@ -23,7 +23,7 @@ spec: spec: containers: - name: dashboard - image: {{ template "kubeapps.image" .Values.dashboard.image }} + image: {{ template "kubeapps.image" (list .Values.dashboard.image .Values.global) }} livenessProbe: {{ toYaml .Values.dashboard.livenessProbe | indent 10 }} readinessProbe: diff --git a/bitnami/kubeapps/templates/kubeapps-frontend-deployment.yaml b/bitnami/kubeapps/templates/kubeapps-frontend-deployment.yaml index 99b1ac3ce0..c8fc58133b 100644 --- a/bitnami/kubeapps/templates/kubeapps-frontend-deployment.yaml +++ b/bitnami/kubeapps/templates/kubeapps-frontend-deployment.yaml @@ -23,7 +23,7 @@ spec: spec: containers: - name: nginx - image: {{ template "kubeapps.image" .Values.frontend.image }} + image: {{ template "kubeapps.image" (list .Values.frontend.image .Values.global) }} livenessProbe: {{ toYaml .Values.frontend.livenessProbe | indent 10 }} readinessProbe: diff --git a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml b/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml index 8853202848..8983832ba9 100644 --- a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml +++ b/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml @@ -24,7 +24,7 @@ spec: spec: containers: - name: kubectl - image: {{ template "kubeapps.image" .Values.hooks.image }} + image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }} command: - /bin/sh - -c diff --git a/bitnami/kubeapps/templates/mongodb-jobs-cleanup.yaml b/bitnami/kubeapps/templates/mongodb-jobs-cleanup.yaml index 2214c95484..2701d036de 100644 --- a/bitnami/kubeapps/templates/mongodb-jobs-cleanup.yaml +++ b/bitnami/kubeapps/templates/mongodb-jobs-cleanup.yaml @@ -19,7 +19,7 @@ spec: spec: containers: - name: kubectl - image: {{ template "kubeapps.image" .Values.hooks.image }} + image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }} command: - /bin/sh args: diff --git a/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml b/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml index e690f95700..31e9c39e00 100644 --- a/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml +++ b/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml @@ -22,7 +22,7 @@ spec: serviceAccountName: {{ template "kubeapps.tiller-proxy.fullname" . }} containers: - name: proxy - image: {{ template "kubeapps.image" .Values.tillerProxy.image }} + image: {{ template "kubeapps.image" (list .Values.tillerProxy.image .Values.global) }} command: - /proxy args: @@ -53,7 +53,7 @@ spec: {{- if .Values.tillerProxy.tls }} volumes: - name: tiller-certs - secret: + secret: secretName: {{ template "kubeapps.tiller-proxy.fullname" . }} {{- end }} {{- with .Values.tillerProxy.nodeSelector }} diff --git a/bitnami/kubeapps/values.yaml b/bitnami/kubeapps/values.yaml index 58a6cfe46d..9aff7fa038 100644 --- a/bitnami/kubeapps/values.yaml +++ b/bitnami/kubeapps/values.yaml @@ -1,3 +1,8 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +# global: +# imageRegistry: + # The frontend service is the main reverse proxy used to access the Kubeapps UI # To expose Kubeapps externally either configure the ingress object below or # set frontend.service.type=LoadBalancer in the frontend configuration. @@ -59,8 +64,8 @@ apprepository: # Image used to perform chart repository syncs syncImage: registry: docker.io - repository: kubeapps/chart-repo - tag: v1.0.0-beta.2 + repository: quay.io/helmpack/chart-repo + tag: v1.0.0 initialRepos: - name: stable url: https://kubernetes-charts.storage.googleapis.com @@ -127,8 +132,8 @@ chartsvc: replicaCount: 2 image: registry: docker.io - repository: kubeapps/chartsvc - tag: v1.0.0-beta.2 + repository: quay.io/helmpack/chartsvc + tag: v1.0.0 service: port: 8080 # https://github.com/kubeapps/kubeapps/issues/478#issuecomment-422979262 @@ -190,6 +195,11 @@ dashboard: tolerations: [] affinity: {} +## +## MongoDB chart configuration +## +## https://github.com/helm/charts/blob/master/stable/mongodb/values.yaml +## mongodb: # Kubeapps uses MongoDB as a cache and persistence is not required persistence: From b24eed67223360f5310962541f2c685f0ac8ad2e Mon Sep 17 00:00:00 2001 From: tompizmor Date: Tue, 16 Oct 2018 12:24:13 +0200 Subject: [PATCH 023/153] [bitnami/tensorflow-inception] Simplify chart deleting unnecessary pvc --- bitnami/tensorflow-inception/Chart.yaml | 2 +- bitnami/tensorflow-inception/README.md | 4 ---- .../templates/deployment.yaml | 11 +-------- .../tensorflow-inception/templates/pvc.yaml | 23 ------------------- bitnami/tensorflow-inception/values.yaml | 12 ---------- 5 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 bitnami/tensorflow-inception/templates/pvc.yaml diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index 1bc42a7ff5..014b7f230b 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,5 +1,5 @@ name: tensorflow-inception -version: 1.1.0 +version: 2.0.0 appVersion: 1.10.1 description: Open-source software library for serving machine learning models keywords: diff --git a/bitnami/tensorflow-inception/README.md b/bitnami/tensorflow-inception/README.md index f25b31cf65..2466a598f4 100755 --- a/bitnami/tensorflow-inception/README.md +++ b/bitnami/tensorflow-inception/README.md @@ -75,10 +75,6 @@ The following tables lists the configurable parameters of the TensorFlow Incepti | `client.image.pullPolicy` | TensorFlow Inception image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | | `client.image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | | `imagePullPolicy` | Image pull policy | `Always` if `image` tag is `latest`, else `IfNotPresent` | -| `persistence.enabled` | Use a PVC to persist data | `true` | -| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | -| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | -| `persistence.size` | Size of data volume | `500Mi` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/bitnami/tensorflow-inception/templates/deployment.yaml b/bitnami/tensorflow-inception/templates/deployment.yaml index 8051abc4bd..6de220f07c 100644 --- a/bitnami/tensorflow-inception/templates/deployment.yaml +++ b/bitnami/tensorflow-inception/templates/deployment.yaml @@ -43,16 +43,7 @@ spec: volumeMounts: - name: seed mountPath: "/bitnami/model-data" - - name: data - mountPath: /bitnami/tensorflow-serving volumes: - name: seed persistentVolumeClaim: - claimName: {{ template "fullname" . }}-seed-inception - - name: data - {{- if .Values.persistence.enabled }} - persistentVolumeClaim: - claimName: {{ template "fullname" . }} - {{- else }} - emptyDir: {} - {{- end -}} + claimName: {{ template "fullname" . }}-seed-inception \ No newline at end of file diff --git a/bitnami/tensorflow-inception/templates/pvc.yaml b/bitnami/tensorflow-inception/templates/pvc.yaml deleted file mode 100644 index 6a21fe551b..0000000000 --- a/bitnami/tensorflow-inception/templates/pvc.yaml +++ /dev/null @@ -1,23 +0,0 @@ -{{- if .Values.persistence.enabled }} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "fullname" . }} - labels: - app: {{ template "fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" - annotations: - {{- if .Values.persistence.storageClass }} - volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }} - {{- else }} - volume.alpha.kubernetes.io/storage-class: default - {{- end }} -spec: - accessModes: - - {{ .Values.persistence.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.size | quote }} -{{- end }} diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index a1ab6c5e7f..e8892b13ba 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -51,18 +51,6 @@ client: ## imagePullPolicy: IfNotPresent -## Enable persistence using Persistent Volume Claims -## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ -## -persistence: - enabled: true - ## If defined, volume.beta.kubernetes.io/storage-class: - ## Default: volume.alpha.kubernetes.io/storage-class: default - ## - # storageClass: - accessMode: ReadWriteOnce - size: 500Mi - ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## From 71395fb74debb5d7cbe40eef543331ed0cdbb947 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Tue, 16 Oct 2018 10:37:16 +0000 Subject: [PATCH 024/153] Synchronize upstreamed folder to 0eaf498 --- upstreamed/dokuwiki/Chart.yaml | 2 +- upstreamed/dokuwiki/README.md | 1 + upstreamed/dokuwiki/templates/_helpers.tpl | 19 ++++- upstreamed/dokuwiki/values.yaml | 6 ++ upstreamed/drupal/Chart.yaml | 2 +- upstreamed/drupal/README.md | 1 + upstreamed/drupal/requirements.lock | 4 +- upstreamed/drupal/templates/_helpers.tpl | 25 ++++++- upstreamed/drupal/templates/deployment.yaml | 2 +- upstreamed/drupal/values.yaml | 8 +++ upstreamed/ghost/Chart.yaml | 4 +- upstreamed/ghost/README.md | 1 + upstreamed/ghost/requirements.lock | 4 +- upstreamed/ghost/templates/NOTES.txt | 9 ++- upstreamed/ghost/templates/_helpers.tpl | 23 +++++++ upstreamed/ghost/templates/deployment.yaml | 2 +- upstreamed/ghost/values.yaml | 10 ++- upstreamed/jasperreports/Chart.yaml | 2 +- upstreamed/jasperreports/README.md | 1 + upstreamed/jasperreports/requirements.lock | 4 +- .../jasperreports/templates/_helpers.tpl | 23 +++++++ .../jasperreports/templates/deployment.yaml | 2 +- upstreamed/jasperreports/values.yaml | 8 +++ upstreamed/joomla/Chart.yaml | 2 +- upstreamed/joomla/README.md | 1 + upstreamed/joomla/requirements.lock | 4 +- upstreamed/joomla/templates/_helpers.tpl | 17 ++++- upstreamed/joomla/values.yaml | 8 +++ upstreamed/kubewatch/Chart.yaml | 2 +- upstreamed/kubewatch/README.md | 3 +- upstreamed/kubewatch/templates/_helpers.tpl | 26 ++++++- .../kubewatch/templates/deployment.yaml | 3 +- upstreamed/kubewatch/values.yaml | 6 ++ upstreamed/magento/Chart.yaml | 2 +- upstreamed/magento/README.md | 1 + upstreamed/magento/requirements.lock | 4 +- upstreamed/magento/templates/_helpers.tpl | 23 +++++++ upstreamed/magento/templates/deployment.yaml | 2 +- upstreamed/magento/values.yaml | 8 +++ upstreamed/mariadb/Chart.yaml | 2 +- upstreamed/mariadb/README.md | 1 + upstreamed/mariadb/templates/_helpers.tpl | 22 ++++-- upstreamed/mariadb/templates/test-runner.yaml | 2 +- upstreamed/mariadb/values-production.yaml | 6 ++ upstreamed/mariadb/values.yaml | 6 ++ upstreamed/mediawiki/Chart.yaml | 2 +- upstreamed/mediawiki/README.md | 11 ++- upstreamed/mediawiki/requirements.lock | 4 +- upstreamed/mediawiki/templates/_helpers.tpl | 17 ++++- .../mediawiki/templates/apache-pvc.yaml | 24 ------- .../mediawiki/templates/deployment.yaml | 19 ++--- .../mediawiki/templates/mediawiki-pvc.yaml | 10 +-- upstreamed/mediawiki/values.yaml | 46 +++++++------ upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/README.md | 1 + upstreamed/mongodb/templates/_helpers.tpl | 21 ++++-- upstreamed/mongodb/values-production.yaml | 6 ++ upstreamed/mongodb/values.yaml | 6 ++ upstreamed/moodle/Chart.yaml | 2 +- upstreamed/moodle/README.md | 1 + upstreamed/moodle/requirements.lock | 4 +- upstreamed/moodle/templates/_helpers.tpl | 25 ++++++- upstreamed/moodle/templates/deployment.yaml | 2 +- upstreamed/moodle/values.yaml | 8 +++ upstreamed/nats/Chart.yaml | 2 +- upstreamed/nats/README.md | 1 + upstreamed/nats/templates/_helpers.tpl | 19 ++++- upstreamed/nats/values-production.yaml | 6 ++ upstreamed/nats/values.yaml | 6 ++ upstreamed/odoo/Chart.yaml | 2 +- upstreamed/odoo/README.md | 1 + upstreamed/odoo/requirements.lock | 4 +- upstreamed/odoo/templates/_helpers.tpl | 17 ++++- upstreamed/odoo/values.yaml | 6 ++ upstreamed/opencart/Chart.yaml | 2 +- upstreamed/opencart/README.md | 3 +- upstreamed/opencart/requirements.lock | 4 +- upstreamed/opencart/templates/_helpers.tpl | 23 +++++++ upstreamed/opencart/templates/deployment.yaml | 2 +- upstreamed/opencart/values.yaml | 8 +++ upstreamed/orangehrm/Chart.yaml | 2 +- upstreamed/orangehrm/README.md | 1 + upstreamed/orangehrm/requirements.lock | 4 +- upstreamed/orangehrm/templates/_helpers.tpl | 23 +++++++ .../orangehrm/templates/deployment.yaml | 2 +- upstreamed/orangehrm/values.yaml | 8 +++ upstreamed/osclass/Chart.yaml | 2 +- upstreamed/osclass/README.md | 1 + upstreamed/osclass/requirements.lock | 4 +- upstreamed/osclass/templates/_helpers.tpl | 23 +++++++ upstreamed/osclass/templates/deployment.yaml | 2 +- upstreamed/osclass/values.yaml | 8 +++ upstreamed/owncloud/Chart.yaml | 2 +- upstreamed/owncloud/README.md | 1 + upstreamed/owncloud/requirements.lock | 4 +- upstreamed/owncloud/templates/NOTES.txt | 5 +- upstreamed/owncloud/templates/_helpers.tpl | 25 ++++++- upstreamed/owncloud/templates/deployment.yaml | 2 +- upstreamed/owncloud/values.yaml | 8 +++ upstreamed/parse/Chart.yaml | 2 +- upstreamed/parse/README.md | 1 + upstreamed/parse/requirements.lock | 2 +- upstreamed/parse/templates/_helpers.tpl | 69 +++++++++++++++++++ .../parse/templates/dashboard-deployment.yaml | 2 +- .../parse/templates/server-deployment.yaml | 2 +- upstreamed/parse/values.yaml | 8 +++ upstreamed/phabricator/Chart.yaml | 2 +- upstreamed/phabricator/README.md | 1 + upstreamed/phabricator/requirements.lock | 4 +- upstreamed/phabricator/templates/NOTES.txt | 8 +-- upstreamed/phabricator/templates/_helpers.tpl | 23 +++++++ .../phabricator/templates/deployment.yaml | 2 +- upstreamed/phabricator/values.yaml | 8 +++ upstreamed/phpbb/Chart.yaml | 2 +- upstreamed/phpbb/README.md | 1 + upstreamed/phpbb/requirements.lock | 4 +- upstreamed/phpbb/templates/_helpers.tpl | 23 +++++++ upstreamed/phpbb/templates/deployment.yaml | 2 +- upstreamed/phpbb/values.yaml | 8 +++ upstreamed/phpmyadmin/Chart.yaml | 2 +- upstreamed/phpmyadmin/README.md | 43 ++++++------ upstreamed/phpmyadmin/templates/_helpers.tpl | 19 ++++- .../phpmyadmin/templates/deployment.yaml | 2 +- upstreamed/phpmyadmin/values.yaml | 6 ++ upstreamed/prestashop/Chart.yaml | 2 +- upstreamed/prestashop/README.md | 11 ++- upstreamed/prestashop/requirements.lock | 4 +- upstreamed/prestashop/templates/NOTES.txt | 5 +- upstreamed/prestashop/templates/_helpers.tpl | 23 +++++++ .../prestashop/templates/apache-pvc.yaml | 24 ------- .../prestashop/templates/deployment.yaml | 21 +++--- .../prestashop/templates/prestashop-pvc.yaml | 10 +-- upstreamed/prestashop/values.yaml | 46 +++++++------ upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/README.md | 1 + upstreamed/rabbitmq/templates/_helpers.tpl | 23 +++++++ .../rabbitmq/templates/statefulset.yaml | 2 +- upstreamed/rabbitmq/values-production.yaml | 6 ++ upstreamed/rabbitmq/values.yaml | 6 ++ upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/README.md | 5 +- upstreamed/redis/templates/_helpers.tpl | 19 ++++- upstreamed/redis/values-production.yaml | 6 ++ upstreamed/redis/values.yaml | 6 ++ upstreamed/redmine/Chart.yaml | 2 +- upstreamed/redmine/README.md | 3 +- upstreamed/redmine/requirements.lock | 6 +- upstreamed/redmine/templates/_helpers.tpl | 23 +++++++ upstreamed/redmine/templates/deployment.yaml | 2 +- upstreamed/redmine/values.yaml | 8 +++ upstreamed/suitecrm/Chart.yaml | 2 +- upstreamed/suitecrm/README.md | 12 ++-- upstreamed/suitecrm/requirements.lock | 4 +- upstreamed/suitecrm/templates/NOTES.txt | 18 ++--- upstreamed/suitecrm/templates/_helpers.tpl | 27 +++++++- upstreamed/suitecrm/templates/apache-pvc.yaml | 24 ------- upstreamed/suitecrm/templates/deployment.yaml | 29 ++++---- upstreamed/suitecrm/templates/secrets.yaml | 4 +- .../suitecrm/templates/suitecrm-pvc.yaml | 14 ++-- upstreamed/suitecrm/templates/svc.yaml | 7 +- upstreamed/suitecrm/values.yaml | 51 +++++++------- upstreamed/testlink/Chart.yaml | 2 +- upstreamed/testlink/README.md | 1 + upstreamed/testlink/requirements.lock | 4 +- upstreamed/testlink/templates/_helpers.tpl | 25 ++++++- upstreamed/testlink/templates/deployment.yaml | 2 +- upstreamed/testlink/values.yaml | 8 +++ upstreamed/wordpress/Chart.yaml | 2 +- upstreamed/wordpress/README.md | 1 + upstreamed/wordpress/requirements.lock | 4 +- upstreamed/wordpress/templates/_helpers.tpl | 23 +++++++ .../wordpress/templates/deployment.yaml | 2 +- .../tests/test-mariadb-connection.yaml | 2 +- upstreamed/wordpress/values-production.yaml | 8 +++ upstreamed/wordpress/values.yaml | 8 +++ 175 files changed, 1162 insertions(+), 394 deletions(-) delete mode 100644 upstreamed/mediawiki/templates/apache-pvc.yaml delete mode 100644 upstreamed/prestashop/templates/apache-pvc.yaml delete mode 100644 upstreamed/suitecrm/templates/apache-pvc.yaml diff --git a/upstreamed/dokuwiki/Chart.yaml b/upstreamed/dokuwiki/Chart.yaml index 0bddc297cc..9defc65e37 100644 --- a/upstreamed/dokuwiki/Chart.yaml +++ b/upstreamed/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.1.0 +version: 3.2.0 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/upstreamed/dokuwiki/README.md b/upstreamed/dokuwiki/README.md index 9eda155f00..a1a37d3847 100644 --- a/upstreamed/dokuwiki/README.md +++ b/upstreamed/dokuwiki/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the DokuWiki chart and | Parameter | Description | Default | |--------------------------------------|------------------------------------------------------------|-----------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | DokuWiki image registry | `docker.io` | | `image.repository` | DokuWiki image name | `bitnami/dokuwiki` | | `image.tag` | DokuWiki image tag | `{VERSION}` | diff --git a/upstreamed/dokuwiki/templates/_helpers.tpl b/upstreamed/dokuwiki/templates/_helpers.tpl index a636b70a0a..2d30062216 100644 --- a/upstreamed/dokuwiki/templates/_helpers.tpl +++ b/upstreamed/dokuwiki/templates/_helpers.tpl @@ -23,9 +23,24 @@ Create chart name and version as used by the chart label. {{- end -}} {{/* -Return the proper Dokuwiki image name +Return the proper DokuWiki image name */}} {{- define "dokuwiki.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/upstreamed/dokuwiki/values.yaml b/upstreamed/dokuwiki/values.yaml index e8af38e0e5..c0f74d52d7 100644 --- a/upstreamed/dokuwiki/values.yaml +++ b/upstreamed/dokuwiki/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami DokuWiki image version ## ref: https://hub.docker.com/r/bitnami/dokuwiki/tags/ ## diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index 6ea74469e9..881cb904bd 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,5 +1,5 @@ name: drupal -version: 2.1.0 +version: 2.2.0 appVersion: 8.6.1 description: One of the most versatile open source content management systems. keywords: diff --git a/upstreamed/drupal/README.md b/upstreamed/drupal/README.md index ea449fb593..55fd81c2be 100644 --- a/upstreamed/drupal/README.md +++ b/upstreamed/drupal/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Drupal chart and th | Parameter | Description | Default | | --------------------------------- | ------------------------------------------ | --------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Drupal image registry | `docker.io` | | `image.repository` | Drupal Image name | `bitnami/drupal` | | `image.tag` | Drupal Image tag | `{VERSION}` | diff --git a/upstreamed/drupal/requirements.lock b/upstreamed/drupal/requirements.lock index aeb25e469f..a8fe6450cb 100644 --- a/upstreamed/drupal/requirements.lock +++ b/upstreamed/drupal/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:23:40.285763588+02:00 +generated: 2018-10-16T08:47:39.060312+02:00 diff --git a/upstreamed/drupal/templates/_helpers.tpl b/upstreamed/drupal/templates/_helpers.tpl index 33decfbd9d..85702b6056 100644 --- a/upstreamed/drupal/templates/_helpers.tpl +++ b/upstreamed/drupal/templates/_helpers.tpl @@ -28,4 +28,27 @@ Create chart name and version as used by the chart label. */}} {{- define "drupal.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} \ No newline at end of file +{{- end -}} + +{{/* +Return the proper Drupal image name +*/}} +{{- define "drupal.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/drupal/templates/deployment.yaml b/upstreamed/drupal/templates/deployment.yaml index 661d83e227..14dae01204 100644 --- a/upstreamed/drupal/templates/deployment.yaml +++ b/upstreamed/drupal/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "drupal.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "drupal.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index dad9906d42..400e6faa7d 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Drupal image version ## ref: https://hub.docker.com/r/bitnami/drupal/tags/ ## @@ -61,6 +67,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 19bba51e3d..e9ba6bf146 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.2.0 -appVersion: 2.2.1 +version: 5.3.1 +appVersion: 2.2.2 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/README.md b/upstreamed/ghost/README.md index 3502cf09e4..511400796f 100644 --- a/upstreamed/ghost/README.md +++ b/upstreamed/ghost/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Ghost chart and the | Parameter | Description | Default | |----------------------------------|---------------------------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Ghost image registry | `docker.io` | | `image.repository` | Ghost Image name | `bitnami/ghost` | | `image.tag` | Ghost Image tag | `{VERSION}` | diff --git a/upstreamed/ghost/requirements.lock b/upstreamed/ghost/requirements.lock index 9121d7d474..5dfebd4675 100644 --- a/upstreamed/ghost/requirements.lock +++ b/upstreamed/ghost/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.1.1 + version: 5.2.0 digest: sha256:b3053e73f5c114f55a794eccea2606cc9fe8a669eaab1716246994bbdd37a473 -generated: 2018-10-11T10:01:18.165751169Z +generated: 2018-10-16T08:47:50.749844+02:00 diff --git a/upstreamed/ghost/templates/NOTES.txt b/upstreamed/ghost/templates/NOTES.txt index 59f483072f..337bd69487 100644 --- a/upstreamed/ghost/templates/NOTES.txt +++ b/upstreamed/ghost/templates/NOTES.txt @@ -18,12 +18,17 @@ host. To configure Ghost with the URL of your service: Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "ghost.fullname" . }}' export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "ghost.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") + export APP_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "ghost.fullname" . }} -o jsonpath="{.data.ghost-password}" | base64 --decode) + {{- if .Values.mariadb.mariadbRootPassword }} + export DATABASE_ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "ghost.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) {{- end }} + {{- end }} + export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "ghost.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-password}" | base64 --decode) 2. Complete your Ghost deployment by running: - helm upgrade {{ .Release.Name }} \ - --set serviceType={{ .Values.serviceType }},ghostHost=$APP_HOST stable/ghost + helm upgrade {{ .Release.Name }} stable/ghost\ + --set serviceType={{ .Values.serviceType }},ghostHost=$APP_HOST,ghostPassword=$APP_PASSWORD,{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$DATABASE_ROOT_PASSWORD{{ end }}mariadb.db.password=$APP_DATABASE_PASSWORD {{- else -}} 1. Get the Ghost URL by running: diff --git a/upstreamed/ghost/templates/_helpers.tpl b/upstreamed/ghost/templates/_helpers.tpl index 2c034934e5..219544d96b 100644 --- a/upstreamed/ghost/templates/_helpers.tpl +++ b/upstreamed/ghost/templates/_helpers.tpl @@ -63,3 +63,26 @@ Create chart name and version as used by the chart label. {{- define "ghost.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper Ghost image name +*/}} +{{- define "ghost.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/ghost/templates/deployment.yaml b/upstreamed/ghost/templates/deployment.yaml index b5e83d2b0f..b2101eebac 100644 --- a/upstreamed/ghost/templates/deployment.yaml +++ b/upstreamed/ghost/templates/deployment.yaml @@ -43,7 +43,7 @@ spec: {{- end }} containers: - name: {{ template "ghost.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "ghost.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 2ce665b447..880c1d376c 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -1,10 +1,16 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Ghost image version ## ref: https://hub.docker.com/r/bitnami/ghost/tags/ ## image: registry: docker.io repository: bitnami/ghost - tag: 2.2.1-debian-9 + tag: 2.2.2-debian-9 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -97,6 +103,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/jasperreports/Chart.yaml b/upstreamed/jasperreports/Chart.yaml index 4ba784b24c..c1cf00d9dc 100644 --- a/upstreamed/jasperreports/Chart.yaml +++ b/upstreamed/jasperreports/Chart.yaml @@ -1,5 +1,5 @@ name: jasperreports -version: 3.0.3 +version: 3.1.0 appVersion: 7.1.0 description: The JasperReports server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, diff --git a/upstreamed/jasperreports/README.md b/upstreamed/jasperreports/README.md index 42aac6131a..bde3363601 100644 --- a/upstreamed/jasperreports/README.md +++ b/upstreamed/jasperreports/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the JasperReports chart | Parameter | Description | Default | |-------------------------------|----------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | JasperReports image registry | `docker.io` | | `image.repository` | JasperReports Image name | `bitnami/jasperreports` | | `image.tag` | JasperReports Image tag | `{VERSION}` | diff --git a/upstreamed/jasperreports/requirements.lock b/upstreamed/jasperreports/requirements.lock index 2b5c4a4ebd..69f8a38081 100644 --- a/upstreamed/jasperreports/requirements.lock +++ b/upstreamed/jasperreports/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:30:38.012477426+02:00 +generated: 2018-10-16T08:48:01.960359+02:00 diff --git a/upstreamed/jasperreports/templates/_helpers.tpl b/upstreamed/jasperreports/templates/_helpers.tpl index faadb6d8d5..f6f27cda94 100644 --- a/upstreamed/jasperreports/templates/_helpers.tpl +++ b/upstreamed/jasperreports/templates/_helpers.tpl @@ -22,3 +22,26 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "jasperreports.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper Jasper Reports image name +*/}} +{{- define "jasperreports.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/jasperreports/templates/deployment.yaml b/upstreamed/jasperreports/templates/deployment.yaml index d4ca76283d..b75d5df399 100644 --- a/upstreamed/jasperreports/templates/deployment.yaml +++ b/upstreamed/jasperreports/templates/deployment.yaml @@ -27,7 +27,7 @@ spec: {{- end }} containers: - name: {{ template "jasperreports.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "jasperreports.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/jasperreports/values.yaml b/upstreamed/jasperreports/values.yaml index 55f1b25de5..724777798b 100644 --- a/upstreamed/jasperreports/values.yaml +++ b/upstreamed/jasperreports/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami JasperReports image version ## ref: https://hub.docker.com/r/bitnami/dokuwiki/tags/ ## @@ -70,6 +76,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/joomla/Chart.yaml b/upstreamed/joomla/Chart.yaml index 16e20a66f6..74f196c68f 100644 --- a/upstreamed/joomla/Chart.yaml +++ b/upstreamed/joomla/Chart.yaml @@ -1,5 +1,5 @@ name: joomla -version: 3.2.0 +version: 3.3.0 appVersion: 3.8.13 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/upstreamed/joomla/README.md b/upstreamed/joomla/README.md index 4eff3ab4e5..2347c0a274 100644 --- a/upstreamed/joomla/README.md +++ b/upstreamed/joomla/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Joomla! chart and t | Parameter | Description | Default | | ------------------------------------ | ----------------------------------------------------------- | ---------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Joomla! image registry | `docker.io` | | `image.repository` | Joomla! Image name | `bitnami/joomla` | | `image.tag` | Joomla! Image tag | `{VERSION}` | diff --git a/upstreamed/joomla/requirements.lock b/upstreamed/joomla/requirements.lock index 81c37e093d..aafbc8eef4 100644 --- a/upstreamed/joomla/requirements.lock +++ b/upstreamed/joomla/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.1.1 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-11T04:07:42.662012144Z +generated: 2018-10-16T08:48:17.456241+02:00 diff --git a/upstreamed/joomla/templates/_helpers.tpl b/upstreamed/joomla/templates/_helpers.tpl index 58ab48ed1d..1a7e5a7372 100644 --- a/upstreamed/joomla/templates/_helpers.tpl +++ b/upstreamed/joomla/templates/_helpers.tpl @@ -26,8 +26,23 @@ Create chart name and version as used by the chart label. Return the proper Joomla! image name */}} {{- define "joomla.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/upstreamed/joomla/values.yaml b/upstreamed/joomla/values.yaml index 7234205fb2..e21476acba 100644 --- a/upstreamed/joomla/values.yaml +++ b/upstreamed/joomla/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Joomla! image version ## ref: https://hub.docker.com/r/bitnami/dokuwiki/tags/ ## @@ -69,6 +75,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/kubewatch/Chart.yaml b/upstreamed/kubewatch/Chart.yaml index 17562d0e76..8ae870ec5f 100644 --- a/upstreamed/kubewatch/Chart.yaml +++ b/upstreamed/kubewatch/Chart.yaml @@ -1,5 +1,5 @@ name: kubewatch -version: 0.4.2 +version: 0.5.0 apiVersion: v1 appVersion: v0.0.4 home: https://github.com/bitnami-labs/kubewatch diff --git a/upstreamed/kubewatch/README.md b/upstreamed/kubewatch/README.md index 97900db148..e454eee408 100644 --- a/upstreamed/kubewatch/README.md +++ b/upstreamed/kubewatch/README.md @@ -39,6 +39,7 @@ The following table lists the configurable parameters of the kubewatch chart and | Parameter | Description | Default | | ---------------------------------------- | ------------------------------------ | --------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `affinity` | node/pod affinities | None | | `image.registry` | Image registry | `docker.io` | | `image.repository` | Image repository | `bitnami/kubewatch` | @@ -50,7 +51,7 @@ The following table lists the configurable parameters of the kubewatch chart and | `replicaCount` | desired number of pods | `1` | | `rbac.create` | If true, create & use RBAC resources | `true` | | `serviceAccount.create` | If true, create a serviceAccount | `true` | -| `serviceAccount.name` | existing ServiceAccount to use (ignored if rbac.create=true) | `` | +| `serviceAccount.name` | existing ServiceAccount to use (ignored if rbac.create=true) | `` | | `resources` | pod resource requests & limits | `{}` | | `slack.channel` | Slack channel to notify | `""` | | `slack.token` | Slack API token | `""` | diff --git a/upstreamed/kubewatch/templates/_helpers.tpl b/upstreamed/kubewatch/templates/_helpers.tpl index 3e3d9656f0..baf5c90e4d 100644 --- a/upstreamed/kubewatch/templates/_helpers.tpl +++ b/upstreamed/kubewatch/templates/_helpers.tpl @@ -31,7 +31,6 @@ Create chart name and version as used by the chart label. {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} - {{/* Create the name of the service account to use */}} @@ -41,4 +40,27 @@ Create the name of the service account to use {{- else -}} {{ default "default" .Values.serviceAccount.name }} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}} + +{{/* +Return the proper Kubewatch image name +*/}} +{{- define "kubewatch.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/kubewatch/templates/deployment.yaml b/upstreamed/kubewatch/templates/deployment.yaml index 35db9cc7f5..e7f9ebef21 100644 --- a/upstreamed/kubewatch/templates/deployment.yaml +++ b/upstreamed/kubewatch/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: spec: containers: - name: {{ template "kubewatch.name" . }} - image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} + image: {{ template "kubewatch.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name: {{ template "kubewatch.name" . }}-config-map @@ -53,4 +53,3 @@ spec: - name: {{ template "kubewatch.name" . }}-config-map configMap: name: {{ template "kubewatch.fullname" . }}-config - diff --git a/upstreamed/kubewatch/values.yaml b/upstreamed/kubewatch/values.yaml index 2b0de1953f..157125ee07 100644 --- a/upstreamed/kubewatch/values.yaml +++ b/upstreamed/kubewatch/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + slack: # Slack channel to notify channel: "XXXX" diff --git a/upstreamed/magento/Chart.yaml b/upstreamed/magento/Chart.yaml index 1e3fbf74e0..66383c6c24 100644 --- a/upstreamed/magento/Chart.yaml +++ b/upstreamed/magento/Chart.yaml @@ -1,5 +1,5 @@ name: magento -version: 3.0.4 +version: 3.1.0 appVersion: 2.2.6 description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more. keywords: diff --git a/upstreamed/magento/README.md b/upstreamed/magento/README.md index 03f9f40d90..943ecd46f3 100644 --- a/upstreamed/magento/README.md +++ b/upstreamed/magento/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Magento chart and t | Parameter | Description | Default | |------------------------------------|------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Magento image registry | `docker.io` | | `image.repository` | Magento Image name | `bitnami/magento` | | `image.tag` | Magento Image tag | `{VERSION}` | diff --git a/upstreamed/magento/requirements.lock b/upstreamed/magento/requirements.lock index c56f25d5e1..908afbe57d 100644 --- a/upstreamed/magento/requirements.lock +++ b/upstreamed/magento/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:35:19.787082498+02:00 +generated: 2018-10-16T08:48:29.636469+02:00 diff --git a/upstreamed/magento/templates/_helpers.tpl b/upstreamed/magento/templates/_helpers.tpl index 7501c78a08..28c5d51c82 100644 --- a/upstreamed/magento/templates/_helpers.tpl +++ b/upstreamed/magento/templates/_helpers.tpl @@ -59,3 +59,26 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "magento.serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper Magento image name +*/}} +{{- define "magento.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/magento/templates/deployment.yaml b/upstreamed/magento/templates/deployment.yaml index c1b83f81fb..c8a80d62e1 100644 --- a/upstreamed/magento/templates/deployment.yaml +++ b/upstreamed/magento/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "magento.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "magento.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: MARIADB_HOST diff --git a/upstreamed/magento/values.yaml b/upstreamed/magento/values.yaml index 6830d1767c..96f0e28cc3 100644 --- a/upstreamed/magento/values.yaml +++ b/upstreamed/magento/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Magento image version ## ref: https://hub.docker.com/r/bitnami/magento/tags/ ## @@ -89,6 +95,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/mariadb/Chart.yaml b/upstreamed/mariadb/Chart.yaml index 47fff6e690..01e0e1c0d7 100644 --- a/upstreamed/mariadb/Chart.yaml +++ b/upstreamed/mariadb/Chart.yaml @@ -1,5 +1,5 @@ name: mariadb -version: 5.1.2 +version: 5.2.0 appVersion: 10.1.36 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: diff --git a/upstreamed/mariadb/README.md b/upstreamed/mariadb/README.md index 71f9a15aaf..042c6ff73f 100644 --- a/upstreamed/mariadb/README.md +++ b/upstreamed/mariadb/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the MariaDB chart and t | Parameter | Description | Default | |-------------------------------------------|-----------------------------------------------------|-------------------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | MariaDB image registry | `docker.io` | | `image.repository` | MariaDB Image name | `bitnami/mariadb` | | `image.tag` | MariaDB Image tag | `{VERSION}` | diff --git a/upstreamed/mariadb/templates/_helpers.tpl b/upstreamed/mariadb/templates/_helpers.tpl index 5afe380ffe..9d785167bc 100644 --- a/upstreamed/mariadb/templates/_helpers.tpl +++ b/upstreamed/mariadb/templates/_helpers.tpl @@ -23,7 +23,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- end -}} {{- end -}} - {{- define "slave.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb-slave" | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -33,17 +32,30 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- end -}} {{/* -Return the proper image name +Return the proper MariaDB image name */}} {{- define "mariadb.image" -}} -{{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* -Return the proper image name +Return the proper metrics image name */}} {{- define "metrics.image" -}} {{- $registryName := .Values.metrics.image.registry -}} diff --git a/upstreamed/mariadb/templates/test-runner.yaml b/upstreamed/mariadb/templates/test-runner.yaml index 99a85d4aaa..e1931e2d59 100644 --- a/upstreamed/mariadb/templates/test-runner.yaml +++ b/upstreamed/mariadb/templates/test-runner.yaml @@ -20,7 +20,7 @@ spec: name: tools containers: - name: mariadb-test - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "mariadb.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} command: ["/tools/bats/bats", "-t", "/tests/run.sh"] env: diff --git a/upstreamed/mariadb/values-production.yaml b/upstreamed/mariadb/values-production.yaml index 3b19bd5099..0d1ce2306e 100644 --- a/upstreamed/mariadb/values-production.yaml +++ b/upstreamed/mariadb/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami MariaDB image ## ref: https://hub.docker.com/r/bitnami/mariadb/tags/ ## diff --git a/upstreamed/mariadb/values.yaml b/upstreamed/mariadb/values.yaml index 0bdec13f3d..746b8cefee 100644 --- a/upstreamed/mariadb/values.yaml +++ b/upstreamed/mariadb/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami MariaDB image ## ref: https://hub.docker.com/r/bitnami/mariadb/tags/ ## diff --git a/upstreamed/mediawiki/Chart.yaml b/upstreamed/mediawiki/Chart.yaml index 6d4e168f39..b304660e33 100644 --- a/upstreamed/mediawiki/Chart.yaml +++ b/upstreamed/mediawiki/Chart.yaml @@ -1,5 +1,5 @@ name: mediawiki -version: 4.1.0 +version: 5.0.0 appVersion: 1.31.1 description: Extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database. diff --git a/upstreamed/mediawiki/README.md b/upstreamed/mediawiki/README.md index 89988ec36d..967f6735ce 100644 --- a/upstreamed/mediawiki/README.md +++ b/upstreamed/mediawiki/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the MediaWiki chart and | Parameter | Description | Default | |--------------------------------------|-------------------------------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | MediaWiki image registry | `docker.io` | | `image.repository` | MediaWiki Image name | `bitnami/mediawiki` | | `image.tag` | MediaWiki Image tag | `{VERSION}` | @@ -89,12 +90,10 @@ The following table lists the configurable parameters of the MediaWiki chart and | `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | | `ingress.secrets[0].key` | TLS Secret Key | `nil` | | `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | -| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | -| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | -| `persistence.mediawiki.storageClass` | PVC Storage Class for MediaWiki volume | `nil` (uses alpha storage class annotation) | -| `persistence.mediawiki.accessMode` | PVC Access Mode for MediaWiki volume | `ReadWriteOnce` | -| `persistence.mediawiki.size` | PVC Storage Request for MediaWiki volume | `8Gi` | +| `persistence.storageClass` | PVC Storage Class for MediaWiki volume | `nil` (uses alpha storage class annotation) | +| `persistence.existingClaim` | An Existing PVC name for MediaWiki volume | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | PVC Access Mode for MediaWiki volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for MediaWiki volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | | `livenessProbe.enabled` | Enable/disable the liveness probe (ingest nodes pod) | `true` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (ingest nodes pod) | 120 | diff --git a/upstreamed/mediawiki/requirements.lock b/upstreamed/mediawiki/requirements.lock index 509b5fa3f3..12f073a4ac 100644 --- a/upstreamed/mediawiki/requirements.lock +++ b/upstreamed/mediawiki/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:7043c28f05b6aac3615a61e609bddc958b51bea717afa81455d7d34641cdd906 -generated: 2018-09-25T11:40:02.188164295+02:00 +generated: 2018-10-16T08:48:39.403302+02:00 diff --git a/upstreamed/mediawiki/templates/_helpers.tpl b/upstreamed/mediawiki/templates/_helpers.tpl index b9e46d9a41..a22b440d20 100644 --- a/upstreamed/mediawiki/templates/_helpers.tpl +++ b/upstreamed/mediawiki/templates/_helpers.tpl @@ -26,8 +26,23 @@ Create chart name and version as used by the chart label. Return the proper Mediawiki image name */}} {{- define "mediawiki.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/upstreamed/mediawiki/templates/apache-pvc.yaml b/upstreamed/mediawiki/templates/apache-pvc.yaml deleted file mode 100644 index d9888c5e25..0000000000 --- a/upstreamed/mediawiki/templates/apache-pvc.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{- if .Values.persistence.enabled -}} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "mediawiki.fullname" . }}-apache - labels: - app: {{ template "mediawiki.name" . }} - chart: {{ template "mediawiki.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} -spec: - accessModes: - - {{ .Values.persistence.apache.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.apache.size | quote }} -{{- if .Values.persistence.apache.storageClass }} -{{- if (eq "-" .Values.persistence.apache.storageClass) }} - storageClassName: "" -{{- else }} - storageClassName: {{ .Values.persistence.apache.storageClass | quote }} -{{- end }} -{{- end }} -{{- end -}} diff --git a/upstreamed/mediawiki/templates/deployment.yaml b/upstreamed/mediawiki/templates/deployment.yaml index 2320438726..6b0dc7798d 100644 --- a/upstreamed/mediawiki/templates/deployment.yaml +++ b/upstreamed/mediawiki/templates/deployment.yaml @@ -132,22 +132,17 @@ spec: resources: {{ toYaml .Values.resources | indent 10 }} volumeMounts: - - name: mediawiki-data - mountPath: /bitnami/mediawiki - - name: apache-data - mountPath: /bitnami/apache + - mountPath: /bitnami/apache + name: mediawiki-data + subPath: apache + - mountPath: /bitnami/mediawiki + name: mediawiki-data + subPath: mediawiki volumes: - name: mediawiki-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ template "mediawiki.fullname" . }}-mediawiki - {{- else }} - emptyDir: {} - {{- end }} - - name: apache-data - {{- if .Values.persistence.enabled }} - persistentVolumeClaim: - claimName: {{ template "mediawiki.fullname" . }}-apache + claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "mediawiki.fullname" . }}-mediawiki{{- end }} {{- else }} emptyDir: {} {{- end }} diff --git a/upstreamed/mediawiki/templates/mediawiki-pvc.yaml b/upstreamed/mediawiki/templates/mediawiki-pvc.yaml index 214802ef43..2a0e0db995 100644 --- a/upstreamed/mediawiki/templates/mediawiki-pvc.yaml +++ b/upstreamed/mediawiki/templates/mediawiki-pvc.yaml @@ -10,15 +10,15 @@ metadata: heritage: {{ .Release.Service | quote }} spec: accessModes: - - {{ .Values.persistence.mediawiki.accessMode | quote }} + - {{ .Values.persistence.accessMode | quote }} resources: requests: - storage: {{ .Values.persistence.mediawiki.size | quote }} -{{- if .Values.persistence.mediawiki.storageClass }} -{{- if (eq "-" .Values.persistence.mediawiki.storageClass) }} + storage: {{ .Values.persistence.size | quote }} +{{- if .Values.persistence.storageClass }} +{{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} - storageClassName: {{ .Values.persistence.mediawiki.storageClass | quote }} + storageClassName: {{ .Values.persistence.storageClass | quote }} {{- end }} {{- end }} {{- end -}} diff --git a/upstreamed/mediawiki/values.yaml b/upstreamed/mediawiki/values.yaml index 2dcf925fa4..1e510fd104 100644 --- a/upstreamed/mediawiki/values.yaml +++ b/upstreamed/mediawiki/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami DokuWiki image version ## ref: https://hub.docker.com/r/bitnami/mediawiki/tags/ ## @@ -73,6 +79,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true @@ -192,28 +200,22 @@ ingress: ## persistence: enabled: true - apache: - ## Apache data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 1Gi - mediawiki: - ## Mediawiki data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 8Gi + ## Mediawiki data Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) + ## + # storageClass: "-" + + ## A manually managed Persistent Volume and Claim + ## Requires persistence.enabled: true + ## If defined, PVC must be created manually before volume will be bound + # existingClaim: + + accessMode: ReadWriteOnce + size: 8Gi ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 4d42f80403..4e5a18606a 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.4.0 +version: 4.5.0 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/README.md b/upstreamed/mongodb/README.md index 1f4107d7c8..1b9d003d2c 100644 --- a/upstreamed/mongodb/README.md +++ b/upstreamed/mongodb/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the MongoDB chart and t | Parameter | Description | Default | |-----------------------------------------|----------------------------------------------------------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | MongoDB image registry | `docker.io` | | `image.repository` | MongoDB Image name | `bitnami/mongodb` | | `image.tag` | MongoDB Image tag | `{VERSION}` | diff --git a/upstreamed/mongodb/templates/_helpers.tpl b/upstreamed/mongodb/templates/_helpers.tpl index a948b7ecb3..855dc29825 100644 --- a/upstreamed/mongodb/templates/_helpers.tpl +++ b/upstreamed/mongodb/templates/_helpers.tpl @@ -54,11 +54,24 @@ Create the name for the key secret. {{- end -}} {{/* -Return the proper image name +Return the proper MongoDB image name */}} {{- define "mongodb.image" -}} -{{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} -{{- end -}} \ No newline at end of file +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/mongodb/values-production.yaml b/upstreamed/mongodb/values-production.yaml index fdf8d0c859..9070f3b416 100644 --- a/upstreamed/mongodb/values-production.yaml +++ b/upstreamed/mongodb/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + image: ## Bitnami MongoDB registry ## diff --git a/upstreamed/mongodb/values.yaml b/upstreamed/mongodb/values.yaml index bc8fb5e4e9..4b090d41b0 100644 --- a/upstreamed/mongodb/values.yaml +++ b/upstreamed/mongodb/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + image: ## Bitnami MongoDB registry ## diff --git a/upstreamed/moodle/Chart.yaml b/upstreamed/moodle/Chart.yaml index 81ba498778..f79df1979f 100644 --- a/upstreamed/moodle/Chart.yaml +++ b/upstreamed/moodle/Chart.yaml @@ -1,5 +1,5 @@ name: moodle -version: 3.1.0 +version: 3.2.0 appVersion: 3.5.2 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised diff --git a/upstreamed/moodle/README.md b/upstreamed/moodle/README.md index 8b5784d9c1..aa3908f565 100644 --- a/upstreamed/moodle/README.md +++ b/upstreamed/moodle/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Moodle chart and th | Parameter | Description | Default | |---------------------------------------|----------------------------------------------------------------------------------------------|-------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Moodle image registry | `docker.io` | | `image.repository` | Moodle Image name | `bitnami/moodle` | | `image.tag` | Moodle Image tag | `{VERSION}` | diff --git a/upstreamed/moodle/requirements.lock b/upstreamed/moodle/requirements.lock index d4ea98e976..be4259299b 100644 --- a/upstreamed/moodle/requirements.lock +++ b/upstreamed/moodle/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:42:15.186850414+02:00 +generated: 2018-10-16T08:48:49.994683+02:00 diff --git a/upstreamed/moodle/templates/_helpers.tpl b/upstreamed/moodle/templates/_helpers.tpl index 6b8934c9aa..787d96c175 100644 --- a/upstreamed/moodle/templates/_helpers.tpl +++ b/upstreamed/moodle/templates/_helpers.tpl @@ -36,4 +36,27 @@ Create chart name and version as used by the chart label. */}} {{- define "moodle.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} \ No newline at end of file +{{- end -}} + +{{/* +Return the proper Moodle image name +*/}} +{{- define "moodle.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/moodle/templates/deployment.yaml b/upstreamed/moodle/templates/deployment.yaml index 03817dad28..0da16a1bab 100644 --- a/upstreamed/moodle/templates/deployment.yaml +++ b/upstreamed/moodle/templates/deployment.yaml @@ -31,7 +31,7 @@ spec: {{- end }} containers: - name: {{ template "moodle.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "moodle.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/moodle/values.yaml b/upstreamed/moodle/values.yaml index e1291c8b4d..ec8a9fc6d6 100644 --- a/upstreamed/moodle/values.yaml +++ b/upstreamed/moodle/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Moodle image version ## ref: https://hub.docker.com/r/bitnami/moodle/tags/ ## @@ -66,6 +72,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/nats/Chart.yaml b/upstreamed/nats/Chart.yaml index 1c68b4bfd1..d29d400ec1 100644 --- a/upstreamed/nats/Chart.yaml +++ b/upstreamed/nats/Chart.yaml @@ -1,5 +1,5 @@ name: nats -version: 1.0.3 +version: 1.1.0 appVersion: 1.3.0 description: An open-source, cloud-native messaging system keywords: diff --git a/upstreamed/nats/README.md b/upstreamed/nats/README.md index 4a592c847c..cdfadead1b 100644 --- a/upstreamed/nats/README.md +++ b/upstreamed/nats/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the NATS chart and thei | Parameter | Description | Default | |--------------------------------------|----------------------------------------------------------------------------------------------|-----------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | NATS image registry | `docker.io` | | `image.repository` | NATS Image name | `bitnami/nats` | | `image.tag` | NATS Image tag | `{VERSION}` | diff --git a/upstreamed/nats/templates/_helpers.tpl b/upstreamed/nats/templates/_helpers.tpl index 32e67f4151..26300acf19 100644 --- a/upstreamed/nats/templates/_helpers.tpl +++ b/upstreamed/nats/templates/_helpers.tpl @@ -21,11 +21,26 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- end -}} {{/* -Return the proper image name +Return the proper Nats image name */}} {{- define "nats.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/upstreamed/nats/values-production.yaml b/upstreamed/nats/values-production.yaml index e671538962..67fec7a492 100644 --- a/upstreamed/nats/values-production.yaml +++ b/upstreamed/nats/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami NATS image version ## ref: https://hub.docker.com/r/bitnami/nats/tags/ ## diff --git a/upstreamed/nats/values.yaml b/upstreamed/nats/values.yaml index d233e78d52..4bff1671f0 100644 --- a/upstreamed/nats/values.yaml +++ b/upstreamed/nats/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami NATS image version ## ref: https://hub.docker.com/r/bitnami/nats/tags/ ## diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index bae28b05ba..95a355113f 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 3.1.0 +version: 3.2.0 appVersion: 11.0.20180915 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/upstreamed/odoo/README.md b/upstreamed/odoo/README.md index 60a4c39f7a..aa848d0b12 100644 --- a/upstreamed/odoo/README.md +++ b/upstreamed/odoo/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Odoo chart and thei | Parameter | Description | Default | |---------------------------------------|-------------------------------------------------------------|------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Odoo image registry | `docker.io` | | `image.repository` | Odoo Image name | `bitnami/odoo` | | `image.tag` | Odoo Image tag | `{VERSION}` | diff --git a/upstreamed/odoo/requirements.lock b/upstreamed/odoo/requirements.lock index b04b9274e3..6c3e3cfd88 100644 --- a/upstreamed/odoo/requirements.lock +++ b/upstreamed/odoo/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: postgresql repository: https://kubernetes-charts.storage.googleapis.com/ - version: 0.18.0 + version: 0.19.0 digest: sha256:88ef0719267ade838b784ffd08d91a6728350516344d5cd7089502587c982ded -generated: 2018-09-17T10:41:27.340179448Z +generated: 2018-10-16T08:49:00.660599+02:00 diff --git a/upstreamed/odoo/templates/_helpers.tpl b/upstreamed/odoo/templates/_helpers.tpl index a8a1cdf386..c91d10128b 100644 --- a/upstreamed/odoo/templates/_helpers.tpl +++ b/upstreamed/odoo/templates/_helpers.tpl @@ -34,6 +34,21 @@ Create chart name and version as used by the chart label. Return the proper Odoo image name */}} {{- define "odoo.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index c93a9c2600..2c122ff577 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Odoo image version ## ref: https://hub.docker.com/r/bitnami/odoo/tags/ ## diff --git a/upstreamed/opencart/Chart.yaml b/upstreamed/opencart/Chart.yaml index 18939ab6e8..7eb351fb6c 100644 --- a/upstreamed/opencart/Chart.yaml +++ b/upstreamed/opencart/Chart.yaml @@ -1,5 +1,5 @@ name: opencart -version: 3.0.4 +version: 3.1.0 appVersion: 3.0.2-0 description: A free and open source e-commerce platform for online merchants. It provides a professional and reliable foundation for a successful online store. diff --git a/upstreamed/opencart/README.md b/upstreamed/opencart/README.md index e14c85edfa..95eb290c54 100644 --- a/upstreamed/opencart/README.md +++ b/upstreamed/opencart/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the OpenCart chart and | Parameter | Description | Default | |-------------------------------------|-------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | OpenCart image registry | `docker.io` | | `image.repository` | OpenCart Image name | `bitnami/opencart` | | `image.tag` | OpenCart Image tag | `{VERSION}` | @@ -72,7 +73,7 @@ The following table lists the configurable parameters of the OpenCart chart and | `externalDatabase.database` | Name of the existing database | `bitnami_opencart` | | `mariadb.enabled` | Whether to use MariaDB chart | `true` | | `mariadb.db.name` | Database name to create | `bitnami_opencart` | -| `mariadb.db.user` | Database user to create | `bn_opencart` | +| `mariadb.db.user` | Database user to create | `bn_opencart` | | `mariadb.db.password` | Password for the database | `nil` | | `mariadb.rootUser.password` | MariaDB admin password | `nil` | | `serviceType` | Kubernetes Service type | `LoadBalancer` | diff --git a/upstreamed/opencart/requirements.lock b/upstreamed/opencart/requirements.lock index b23d6437cc..f27f4263f9 100644 --- a/upstreamed/opencart/requirements.lock +++ b/upstreamed/opencart/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:43:52.539515518+02:00 +generated: 2018-10-16T08:49:13.828477+02:00 diff --git a/upstreamed/opencart/templates/_helpers.tpl b/upstreamed/opencart/templates/_helpers.tpl index f962e464e7..9f08a8a6c4 100644 --- a/upstreamed/opencart/templates/_helpers.tpl +++ b/upstreamed/opencart/templates/_helpers.tpl @@ -43,3 +43,26 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "opencart.serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper Opencart image name +*/}} +{{- define "opencart.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/opencart/templates/deployment.yaml b/upstreamed/opencart/templates/deployment.yaml index b1eb533d7d..9fcccc3485 100644 --- a/upstreamed/opencart/templates/deployment.yaml +++ b/upstreamed/opencart/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "opencart.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "opencart.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/opencart/values.yaml b/upstreamed/opencart/values.yaml index c9a1d76f04..0045c04daa 100644 --- a/upstreamed/opencart/values.yaml +++ b/upstreamed/opencart/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami OpenCart image version ## ref: https://hub.docker.com/r/bitnami/opencart/tags/ ## @@ -78,6 +84,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/orangehrm/Chart.yaml b/upstreamed/orangehrm/Chart.yaml index 8c8674e104..b8ae48eb10 100644 --- a/upstreamed/orangehrm/Chart.yaml +++ b/upstreamed/orangehrm/Chart.yaml @@ -1,5 +1,5 @@ name: orangehrm -version: 3.0.3 +version: 3.1.0 appVersion: 4.1.2 description: OrangeHRM is a free HR management system that offers a wealth of modules to suit the needs of your business. diff --git a/upstreamed/orangehrm/README.md b/upstreamed/orangehrm/README.md index 4fcad2fee7..b3807115c9 100644 --- a/upstreamed/orangehrm/README.md +++ b/upstreamed/orangehrm/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the OrangeHRM chart and | Parameter | Description | Default | |--------------------------------------|------------------------------------------|-------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | OrangeHRM image registry | `docker.io` | | `image.repository` | OrangeHRM Image name | `bitnami/orangehrm` | | `image.tag` | OrangeHRM Image tag | `{VERSION}` | diff --git a/upstreamed/orangehrm/requirements.lock b/upstreamed/orangehrm/requirements.lock index 642aca3f29..18fcf3a13f 100644 --- a/upstreamed/orangehrm/requirements.lock +++ b/upstreamed/orangehrm/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:46:12.001683527+02:00 +generated: 2018-10-16T08:49:23.919504+02:00 diff --git a/upstreamed/orangehrm/templates/_helpers.tpl b/upstreamed/orangehrm/templates/_helpers.tpl index 421032bbe0..c1f57c5232 100644 --- a/upstreamed/orangehrm/templates/_helpers.tpl +++ b/upstreamed/orangehrm/templates/_helpers.tpl @@ -22,3 +22,26 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "orangehrm.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper OrangeHRM image name +*/}} +{{- define "orangehrm.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/orangehrm/templates/deployment.yaml b/upstreamed/orangehrm/templates/deployment.yaml index 127f3c6715..cf4c8bded7 100644 --- a/upstreamed/orangehrm/templates/deployment.yaml +++ b/upstreamed/orangehrm/templates/deployment.yaml @@ -27,7 +27,7 @@ spec: {{- end }} containers: - name: {{ template "orangehrm.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "orangehrm.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/orangehrm/values.yaml b/upstreamed/orangehrm/values.yaml index 550cf4bb1a..59ca4e7fd8 100644 --- a/upstreamed/orangehrm/values.yaml +++ b/upstreamed/orangehrm/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami OrangeHRM image version ## ref: https://hub.docker.com/r/bitnami/orangehrm/tags/ ## @@ -63,6 +69,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/osclass/Chart.yaml b/upstreamed/osclass/Chart.yaml index 8d5fac1676..2a2dfaf21b 100644 --- a/upstreamed/osclass/Chart.yaml +++ b/upstreamed/osclass/Chart.yaml @@ -1,5 +1,5 @@ name: osclass -version: 3.0.4 +version: 3.1.0 appVersion: 3.7.4 description: Osclass is a php script that allows you to quickly create and manage your own free classifieds site. diff --git a/upstreamed/osclass/README.md b/upstreamed/osclass/README.md index e624b495fd..77dc8d4c43 100644 --- a/upstreamed/osclass/README.md +++ b/upstreamed/osclass/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Osclass chart and t | Parameter | Description | Default | |------------------------------------|------------------------------------------|-------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Osclass image registry | `docker.io` | | `image.repository` | Osclass Image name | `bitnami/osclass` | | `image.tag` | Osclass Image tag | `{VERSION}` | diff --git a/upstreamed/osclass/requirements.lock b/upstreamed/osclass/requirements.lock index 54514ee670..cd4277dac8 100644 --- a/upstreamed/osclass/requirements.lock +++ b/upstreamed/osclass/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:48:30.289513274+02:00 +generated: 2018-10-16T08:49:33.513575+02:00 diff --git a/upstreamed/osclass/templates/_helpers.tpl b/upstreamed/osclass/templates/_helpers.tpl index 973ab39d21..8311e8ffb0 100644 --- a/upstreamed/osclass/templates/_helpers.tpl +++ b/upstreamed/osclass/templates/_helpers.tpl @@ -43,3 +43,26 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "osclass.serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper Osclass image name +*/}} +{{- define "osclass.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/osclass/templates/deployment.yaml b/upstreamed/osclass/templates/deployment.yaml index a646212ecc..e1755e3051 100644 --- a/upstreamed/osclass/templates/deployment.yaml +++ b/upstreamed/osclass/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "osclass.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "osclass.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/osclass/values.yaml b/upstreamed/osclass/values.yaml index 7aacec8416..25abfc6ee3 100644 --- a/upstreamed/osclass/values.yaml +++ b/upstreamed/osclass/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Osclass image version ## ref: https://hub.docker.com/r/bitnami/osclass/tags/ ## @@ -92,6 +98,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/owncloud/Chart.yaml b/upstreamed/owncloud/Chart.yaml index 3301aed011..7c182ef368 100644 --- a/upstreamed/owncloud/Chart.yaml +++ b/upstreamed/owncloud/Chart.yaml @@ -1,5 +1,5 @@ name: owncloud -version: 3.1.0 +version: 3.2.1 appVersion: 10.0.10 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/upstreamed/owncloud/README.md b/upstreamed/owncloud/README.md index c2053b25fa..27a45fc47e 100644 --- a/upstreamed/owncloud/README.md +++ b/upstreamed/owncloud/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the ownCloud chart and | Parameter | Description | Default | |-------------------------------------|--------------------------------------------|-------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | ownCloud image registry | `docker.io` | | `image.repository` | ownCloud Image name | `bitnami/owncloud` | | `image.tag` | ownCloud Image tag | `{VERSION}` | diff --git a/upstreamed/owncloud/requirements.lock b/upstreamed/owncloud/requirements.lock index 5fb8d4b389..6d1d9a9622 100644 --- a/upstreamed/owncloud/requirements.lock +++ b/upstreamed/owncloud/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:49:59.281075519+02:00 +generated: 2018-10-16T08:49:42.965735+02:00 diff --git a/upstreamed/owncloud/templates/NOTES.txt b/upstreamed/owncloud/templates/NOTES.txt index 8dbb721cf3..04ff1b91a9 100644 --- a/upstreamed/owncloud/templates/NOTES.txt +++ b/upstreamed/owncloud/templates/NOTES.txt @@ -23,16 +23,17 @@ host. To configure ownCloud with the URL of your service: export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "owncloud.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") export APP_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "owncloud.fullname" . }} -o jsonpath="{.data.owncloud-password}" | base64 --decode) {{- if .Values.mariadb.mariadbRootPassword }} - export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "owncloud.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) + export DATABASE_ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "owncloud.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) {{- end }} {{- end }} + export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "owncloud.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-password}" | base64 --decode) 2. Complete your ownCloud deployment by running: {{- if .Values.mariadb.enabled }} helm upgrade {{ .Release.Name }} stable/owncloud \ - --set owncloudHost=$APP_HOST,owncloudPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$APP_DATABASE_PASSWORD{{ end }} + --set owncloudHost=$APP_HOST,owncloudPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$DATABASE_ROOT_PASSWORD{{ end }},mariadb.db.password=$APP_DATABASE_PASSWORD {{- else }} ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## diff --git a/upstreamed/owncloud/templates/_helpers.tpl b/upstreamed/owncloud/templates/_helpers.tpl index 27c8299876..5284115deb 100644 --- a/upstreamed/owncloud/templates/_helpers.tpl +++ b/upstreamed/owncloud/templates/_helpers.tpl @@ -49,4 +49,27 @@ Create chart name and version as used by the chart label. */}} {{- define "owncloud.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} \ No newline at end of file +{{- end -}} + +{{/* +Return the proper Owncloud image name +*/}} +{{- define "owncloud.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/owncloud/templates/deployment.yaml b/upstreamed/owncloud/templates/deployment.yaml index ceb5e74b23..807ac730cc 100644 --- a/upstreamed/owncloud/templates/deployment.yaml +++ b/upstreamed/owncloud/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: {{- end }} containers: - name: {{ template "owncloud.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "owncloud.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/owncloud/values.yaml b/upstreamed/owncloud/values.yaml index 46ee226dbd..560fd0001e 100644 --- a/upstreamed/owncloud/values.yaml +++ b/upstreamed/owncloud/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami ownCloud image version ## ref: https://hub.docker.com/r/bitnami/owncloud/tags/ ## @@ -119,6 +125,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/parse/Chart.yaml b/upstreamed/parse/Chart.yaml index 1b5fa399c7..23fe8cb783 100644 --- a/upstreamed/parse/Chart.yaml +++ b/upstreamed/parse/Chart.yaml @@ -1,5 +1,5 @@ name: parse -version: 3.0.2 +version: 3.1.0 appVersion: 3.0.0 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: diff --git a/upstreamed/parse/README.md b/upstreamed/parse/README.md index 5b2c0ff7d5..21037a5949 100644 --- a/upstreamed/parse/README.md +++ b/upstreamed/parse/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the Parse chart and the | Parameter | Description | Default | |------------------------------------|----------------------------------------|-------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `serviceType` | Kubernetes Service type | `LoadBalancer` | | `loadBalancerIP` | `loadBalancerIP` for the Parse Service | `nil` | | `server.image.registry` | Parse image registry | `docker.io` | diff --git a/upstreamed/parse/requirements.lock b/upstreamed/parse/requirements.lock index 700a3a7ad7..ae038e688f 100644 --- a/upstreamed/parse/requirements.lock +++ b/upstreamed/parse/requirements.lock @@ -3,4 +3,4 @@ dependencies: repository: https://kubernetes-charts.storage.googleapis.com/ version: 2.0.9 digest: sha256:cf5e28c1a27636f9471953712706834f87e49cb40be80c303a1436ee7e5016e5 -generated: 2018-06-11T14:45:27.64207443+02:00 +generated: 2018-10-16T08:49:53.146915+02:00 diff --git a/upstreamed/parse/templates/_helpers.tpl b/upstreamed/parse/templates/_helpers.tpl index 7e6de00d43..ee4f1699ae 100644 --- a/upstreamed/parse/templates/_helpers.tpl +++ b/upstreamed/parse/templates/_helpers.tpl @@ -43,3 +43,72 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := default "" .Values.server.host -}} {{- default (include "parse.serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper Parse image name +*/}} +{{- define "parse.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} + +{{/* +Return the proper Parse dashboard image name +*/}} +{{- define "parse.dashboard.image" -}} +{{- $registryName := .Values.dashboard.image.registry -}} +{{- $repositoryName := .Values.dashboard.image.repository -}} +{{- $tag := .Values.dashboard.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} + +{{/* +Return the proper Parse server client image name +*/}} +{{- define "parse.server.image" -}} +{{- $registryName := .Values.server.image.registry -}} +{{- $repositoryName := .Values.server.image.repository -}} +{{- $tag := .Values.server.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/parse/templates/dashboard-deployment.yaml b/upstreamed/parse/templates/dashboard-deployment.yaml index f794e3bb11..ff984e3a88 100644 --- a/upstreamed/parse/templates/dashboard-deployment.yaml +++ b/upstreamed/parse/templates/dashboard-deployment.yaml @@ -32,7 +32,7 @@ spec: {{- end }} containers: - name: {{ template "parse.fullname" . }} - image: "{{ .Values.dashboard.image.registry }}/{{ .Values.dashboard.image.repository }}:{{ .Values.dashboard.image.tag }}" + image: {{ template "parse.dashboard.image" . }} imagePullPolicy: {{ .Values.dashboard.image.pullPolicy | quote }} env: - name: PARSE_DASHBOARD_USER diff --git a/upstreamed/parse/templates/server-deployment.yaml b/upstreamed/parse/templates/server-deployment.yaml index e465c348b4..888f1be912 100644 --- a/upstreamed/parse/templates/server-deployment.yaml +++ b/upstreamed/parse/templates/server-deployment.yaml @@ -31,7 +31,7 @@ spec: {{- end }} containers: - name: {{ template "parse.fullname" . }} - image: "{{ .Values.server.image.registry }}/{{ .Values.server.image.repository }}:{{ .Values.server.image.tag }}" + image: {{ template "parse.server.image" . }} imagePullPolicy: {{ .Values.server.image.pullPolicy | quote }} env: - name: PARSE_HOST diff --git a/upstreamed/parse/values.yaml b/upstreamed/parse/values.yaml index 57713aa229..6e1181a185 100644 --- a/upstreamed/parse/values.yaml +++ b/upstreamed/parse/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Kubernetes serviceType for Parse Deployment ## ref: http://kubernetes.io/docs/user-guide/services/#publishing-services---service-types ## @@ -123,6 +129,8 @@ persistence: ## ## MongoDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mongodb/values.yaml +## mongodb: ## MongoDB Password authentication usePassword: true diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 5da88e4051..a9e2bdfe7a 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,5 +1,5 @@ name: phabricator -version: 3.1.0 +version: 3.2.0 appVersion: 2018.40.0 description: Collection of open source web applications that help software companies build better software. keywords: diff --git a/upstreamed/phabricator/README.md b/upstreamed/phabricator/README.md index 9d566125ec..5e294b0d17 100644 --- a/upstreamed/phabricator/README.md +++ b/upstreamed/phabricator/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Phabricator chart a | Parameter | Description | Default | |----------------------------------------|----------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Phabricator image registry | `docker.io` | | `image.repository` | Phabricator image name | `bitnami/phabricator` | | `image.tag` | Phabricator image tag | `{VERSION}` | diff --git a/upstreamed/phabricator/requirements.lock b/upstreamed/phabricator/requirements.lock index b80cf36fcc..b5b6e3b533 100644 --- a/upstreamed/phabricator/requirements.lock +++ b/upstreamed/phabricator/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.9 + version: 5.2.0 digest: sha256:e09c8ca7126923a30e39f442c3863b44684d4eb3f7b6dc869f0206da4463f416 -generated: 2018-10-09T14:11:47.8079908Z +generated: 2018-10-16T08:50:03.59136+02:00 diff --git a/upstreamed/phabricator/templates/NOTES.txt b/upstreamed/phabricator/templates/NOTES.txt index d93017f84d..c0b4e402d6 100644 --- a/upstreamed/phabricator/templates/NOTES.txt +++ b/upstreamed/phabricator/templates/NOTES.txt @@ -20,15 +20,13 @@ host. To configure Phabricator with the URL of your service: export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "phabricator.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") export APP_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "phabricator.fullname" . }} -o jsonpath="{.data.phabricator-password}" | base64 --decode) - {{- if .Values.mariadb.mariadbRootPassword }} - export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "phabricator.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) - {{- end }} + export DATABASE_ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "phabricator.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) {{- end }} 2. Complete your Phabricator deployment by running: - helm upgrade {{ .Release.Name }} \ - --set phabricatorHost=$APP_HOST,phabricatorPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$APP_DATABASE_PASSWORD{{ end }} stable/phabricator + helm upgrade {{ .Release.Name }} stable/phabricator \ + --set phabricatorHost=$APP_HOST,phabricatorPassword=$APP_PASSWORD,mariadb.rootUser.password=$DATABASE_ROOT_PASSWORD {{- else -}} 1. Get the Phabricator URL by running: diff --git a/upstreamed/phabricator/templates/_helpers.tpl b/upstreamed/phabricator/templates/_helpers.tpl index 196d93969c..6e404fafe0 100644 --- a/upstreamed/phabricator/templates/_helpers.tpl +++ b/upstreamed/phabricator/templates/_helpers.tpl @@ -43,3 +43,26 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "phabricator.serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper Phabricator image name +*/}} +{{- define "phabricator.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/phabricator/templates/deployment.yaml b/upstreamed/phabricator/templates/deployment.yaml index df6f8af379..6e224e2a08 100644 --- a/upstreamed/phabricator/templates/deployment.yaml +++ b/upstreamed/phabricator/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "phabricator.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "phabricator.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: MARIADB_HOST diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 64809642ab..9b5b6dd073 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Phabricator image version ## ref: https://hub.docker.com/r/bitnami/phabricator/tags/ ## @@ -70,6 +76,8 @@ phabricatorLastName: Last Name ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/phpbb/Chart.yaml b/upstreamed/phpbb/Chart.yaml index 34519a3110..5c904ef964 100644 --- a/upstreamed/phpbb/Chart.yaml +++ b/upstreamed/phpbb/Chart.yaml @@ -1,5 +1,5 @@ name: phpbb -version: 3.0.3 +version: 3.1.0 appVersion: 3.2.3 description: Community forum that supports the notion of users and groups, file attachments, full-text search, notifications and more. diff --git a/upstreamed/phpbb/README.md b/upstreamed/phpbb/README.md index a971c089d8..a8e22f46d7 100644 --- a/upstreamed/phpbb/README.md +++ b/upstreamed/phpbb/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the phpBB chart and the | Parameter | Description | Default | |-----------------------------------|---------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | phpBB image registry | `docker.io` | | `image.repository` | phpBB image name | `bitnami/phpbb` | | `image.tag` | phpBB image tag | `{VERSION}` | diff --git a/upstreamed/phpbb/requirements.lock b/upstreamed/phpbb/requirements.lock index adc8b11acd..4a8ecdbf77 100644 --- a/upstreamed/phpbb/requirements.lock +++ b/upstreamed/phpbb/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:54:08.872296213+02:00 +generated: 2018-10-16T08:50:16.14675+02:00 diff --git a/upstreamed/phpbb/templates/_helpers.tpl b/upstreamed/phpbb/templates/_helpers.tpl index ba3f292293..aa192d1a09 100644 --- a/upstreamed/phpbb/templates/_helpers.tpl +++ b/upstreamed/phpbb/templates/_helpers.tpl @@ -22,3 +22,26 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "phpbb.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper phpbb image name +*/}} +{{- define "phpbb.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/phpbb/templates/deployment.yaml b/upstreamed/phpbb/templates/deployment.yaml index da9d4999eb..8bf347b049 100644 --- a/upstreamed/phpbb/templates/deployment.yaml +++ b/upstreamed/phpbb/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: {{- end }} containers: - name: {{ template "phpbb.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "phpbb.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/phpbb/values.yaml b/upstreamed/phpbb/values.yaml index d364a8b0c5..6145a7a81f 100644 --- a/upstreamed/phpbb/values.yaml +++ b/upstreamed/phpbb/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami phpBB image version ## ref: https://hub.docker.com/r/bitnami/phpbb/tags/ ## @@ -67,6 +73,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/phpmyadmin/Chart.yaml b/upstreamed/phpmyadmin/Chart.yaml index 5428366d28..ccc2415915 100644 --- a/upstreamed/phpmyadmin/Chart.yaml +++ b/upstreamed/phpmyadmin/Chart.yaml @@ -1,5 +1,5 @@ name: phpmyadmin -version: 1.1.2 +version: 1.2.0 appVersion: 4.8.2 description: phpMyAdmin is an mysql administration frontend keywords: diff --git a/upstreamed/phpmyadmin/README.md b/upstreamed/phpmyadmin/README.md index 06daf784eb..59f3ae4678 100644 --- a/upstreamed/phpmyadmin/README.md +++ b/upstreamed/phpmyadmin/README.md @@ -44,27 +44,28 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the phpMyAdmin chart and their default values. -| Parameter | Description | Default | -|--------------------------------------|------------------------------------------|---------------------------------------------------------| -| `image.registry` | phpMyAdmin image registry | `docker.io` | -| `image.repository` | phpMyAdmin Image name | `bitnami/phpmyadmin` | -| `image.tag` | phpMyAdmin Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `service.type` | type of service for phpMyAdmin frontend | `ClusterIP` | -| `service.port` | port to expose service | `80` | -| `db.port` | database port to use to connect | `3306` | -| `db.chartName` | Database suffix if included in the same release | `nil` | -| `db.host` | database host to connect to | `nil` | -| `ingress.enabled` | ingress resource to be added | `false` | -| `ingress.annotations` | ingress annotations | `{ingress.kubernetes.io/rewrite-target: /, nginx.ingress.kubernetes.io/rewrite-target: /}` | -| `ingress.path` | path to access frontend | `/` | -| `ingress.host` | ingress host | `nil` | -| `ingress.tls` | tls for ingress | `[]` | -| `resources` | CPU/Memory resource requests/limits | `{}` | -| `nodeSelector` | Node labels for pod assignment | `{}` | -| `tolerations` | List of node taints to tolerate | `[]` | -| `affinity` | Map of node/pod affinities | `{}` | +| Parameter | Description | Default | +|----------------------------|------------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | phpMyAdmin image registry | `docker.io` | +| `image.repository` | phpMyAdmin image name | `bitnami/phpmyadmin` | +| `image.tag` | phpMyAdmin image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `service.type` | Type of service for phpMyAdmin frontend | `ClusterIP` | +| `service.port` | Port to expose service | `80` | +| `db.port` | Database port to use to connect | `3306` | +| `db.chartName` | Database suffix if included in the same release | `nil` | +| `db.host` | Database host to connect to | `nil` | +| `ingress.enabled` | Ingress resource to be added | `false` | +| `ingress.annotations` | Ingress annotations | `{ingress.kubernetes.io/rewrite-target: /, nginx.ingress.kubernetes.io/rewrite-target: /}` | +| `ingress.path` | Path to access frontend | `/` | +| `ingress.host` | Ingress host | `nil` | +| `ingress.tls` | TLS for ingress | `[]` | +| `resources` | CPU/Memory resource requests/limits | `{}` | +| `nodeSelector` | Node labels for pod assignment | `{}` | +| `tolerations` | List of node taints to tolerate | `[]` | +| `affinity` | Map of node/pod affinities | `{}` | For more information please refer to the [bitnami/phpmyadmin](http://github.com/bitnami/bitnami-docker-Phpmyadmin) image documentation. diff --git a/upstreamed/phpmyadmin/templates/_helpers.tpl b/upstreamed/phpmyadmin/templates/_helpers.tpl index 131be64f44..da8c8d1654 100644 --- a/upstreamed/phpmyadmin/templates/_helpers.tpl +++ b/upstreamed/phpmyadmin/templates/_helpers.tpl @@ -40,11 +40,24 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- end -}} {{/* -Return the proper image name +Return the proper PHPMyAdmin image name */}} {{- define "phpmyadmin.image" -}} -{{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} diff --git a/upstreamed/phpmyadmin/templates/deployment.yaml b/upstreamed/phpmyadmin/templates/deployment.yaml index 8fa52ad078..cfc25e5d2f 100644 --- a/upstreamed/phpmyadmin/templates/deployment.yaml +++ b/upstreamed/phpmyadmin/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ .Chart.Name }} - image: "{{ template "phpmyadmin.image" . }}" + image: {{ template "phpmyadmin.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: DATABASE_PORT_NUMBER diff --git a/upstreamed/phpmyadmin/values.yaml b/upstreamed/phpmyadmin/values.yaml index ab29bdfe91..d671f23a0a 100644 --- a/upstreamed/phpmyadmin/values.yaml +++ b/upstreamed/phpmyadmin/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami WordPress image version ## ref: https://hub.docker.com/r/bitnami/phpmyadmin/tags/ ## diff --git a/upstreamed/prestashop/Chart.yaml b/upstreamed/prestashop/Chart.yaml index c65ad3932e..ab870a88f9 100644 --- a/upstreamed/prestashop/Chart.yaml +++ b/upstreamed/prestashop/Chart.yaml @@ -1,5 +1,5 @@ name: prestashop -version: 3.1.4 +version: 4.0.0 appVersion: 1.7.4-3 description: A popular open source ecommerce solution. Professional tools are easily accessible to increase online sales including instant guest checkout, abandoned diff --git a/upstreamed/prestashop/README.md b/upstreamed/prestashop/README.md index 82011318b0..0730846bb7 100644 --- a/upstreamed/prestashop/README.md +++ b/upstreamed/prestashop/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the PrestaShop chart an | Parameter | Description | Default | |---------------------------------------|----------------------------------------------------------------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | PrestaShop image registry | `docker.io` | | `image.repository` | PrestaShop image name | `bitnami/prestashop` | | `image.tag` | PrestaShop image tag | `{VERSION}` | @@ -82,12 +83,10 @@ The following table lists the configurable parameters of the PrestaShop chart an | `externalTrafficPolicy` | Set to `Local` to preserve the client source IP | `Local` | | `sessionAffinity` | Configures the session affinity | `None` | | `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | -| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | -| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | -| `persistence.prestashop.storageClass` | PVC Storage Class for PrestaShop volume | `nil` (uses alpha storage class annotation) | -| `persistence.prestashop.accessMode` | PVC Access Mode for PrestaShop volume | `ReadWriteOnce` | -| `persistence.prestashop.size` | PVC Storage Request for PrestaShop volume | `8Gi` | +| `persistence.storageClass` | PVC Storage Class for PrestaShop volume | `nil` (uses alpha storage class annotation) | +| `persistence.existingClaim` | An Existing PVC name for Apache volume | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | PVC Access Mode for PrestaShop volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for PrestaShop volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 600 | | `livenessProbe.periodSeconds` | How often to perform the probe | 3 | diff --git a/upstreamed/prestashop/requirements.lock b/upstreamed/prestashop/requirements.lock index c79564cd65..5c9654e96f 100644 --- a/upstreamed/prestashop/requirements.lock +++ b/upstreamed/prestashop/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.8 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-04T13:28:11.27444912Z +generated: 2018-10-16T08:50:26.245376+02:00 diff --git a/upstreamed/prestashop/templates/NOTES.txt b/upstreamed/prestashop/templates/NOTES.txt index 417ad210a8..15f0040d24 100644 --- a/upstreamed/prestashop/templates/NOTES.txt +++ b/upstreamed/prestashop/templates/NOTES.txt @@ -23,16 +23,17 @@ host. To configure PrestaShop with the URL of your service: export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "prestashop.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") export APP_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "prestashop.fullname" . }} -o jsonpath="{.data.prestashop-password}" | base64 --decode) {{- if .Values.mariadb.mariadbRootPassword }} - export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "prestashop.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) + export DATABASE_ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "prestashop.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) {{- end }} {{- end }} + export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "prestashop.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-password}" | base64 --decode) 2. Complete your PrestaShop deployment by running: {{- if .Values.mariadb.enabled }} helm upgrade {{ .Release.Name }} stable/prestashop \ - --set prestashopHost=$APP_HOST,prestashopPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$APP_DATABASE_PASSWORD{{ end }} + --set prestashopHost=$APP_HOST,prestashopPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$DATABASE_ROOT_PASSWORD{{ end }},mariadb.db.password=$APP_DATABASE_PASSWORD {{- else }} ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## diff --git a/upstreamed/prestashop/templates/_helpers.tpl b/upstreamed/prestashop/templates/_helpers.tpl index 4bf8b34cb8..bad019eb2c 100644 --- a/upstreamed/prestashop/templates/_helpers.tpl +++ b/upstreamed/prestashop/templates/_helpers.tpl @@ -43,3 +43,26 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "prestashop.serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper Prestashop image name +*/}} +{{- define "prestashop.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/prestashop/templates/apache-pvc.yaml b/upstreamed/prestashop/templates/apache-pvc.yaml deleted file mode 100644 index e4775ca0f4..0000000000 --- a/upstreamed/prestashop/templates/apache-pvc.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{- if .Values.persistence.enabled -}} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "prestashop.fullname" . }}-apache - labels: - app: {{ template "prestashop.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - accessModes: - - {{ .Values.persistence.apache.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.apache.size | quote }} -{{- if .Values.persistence.apache.storageClass }} -{{- if (eq "-" .Values.persistence.apache.storageClass) }} - storageClassName: "" -{{- else }} - storageClassName: "{{ .Values.persistence.apache.storageClass }}" -{{- end }} -{{- end }} -{{- end -}} diff --git a/upstreamed/prestashop/templates/deployment.yaml b/upstreamed/prestashop/templates/deployment.yaml index 086ee3fa7e..bc002c41a6 100644 --- a/upstreamed/prestashop/templates/deployment.yaml +++ b/upstreamed/prestashop/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "prestashop.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "prestashop.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD @@ -128,22 +128,17 @@ spec: resources: {{ toYaml .Values.resources | indent 10 }} volumeMounts: - - name: prestashop-data - mountPath: /bitnami/prestashop - - name: apache-data - mountPath: /bitnami/apache + - mountPath: /bitnami/apache + name: prestashop-data + subPath: apache + - mountPath: /bitnami/prestashop + name: prestashop-data + subPath: prestashop volumes: - name: prestashop-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ template "prestashop.fullname" . }}-prestashop - {{- else }} - emptyDir: {} - {{- end }} - - name: apache-data - {{- if .Values.persistence.enabled }} - persistentVolumeClaim: - claimName: {{ template "prestashop.fullname" . }}-apache + claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "prestashop.fullname" . }}-prestashop{{- end }} {{- else }} emptyDir: {} {{- end }} diff --git a/upstreamed/prestashop/templates/prestashop-pvc.yaml b/upstreamed/prestashop/templates/prestashop-pvc.yaml index 2bffffbad0..cbee4e6a69 100644 --- a/upstreamed/prestashop/templates/prestashop-pvc.yaml +++ b/upstreamed/prestashop/templates/prestashop-pvc.yaml @@ -10,15 +10,15 @@ metadata: heritage: "{{ .Release.Service }}" spec: accessModes: - - {{ .Values.persistence.prestashop.accessMode | quote }} + - {{ .Values.persistence.accessMode | quote }} resources: requests: - storage: {{ .Values.persistence.prestashop.size | quote }} -{{- if .Values.persistence.prestashop.storageClass }} -{{- if (eq "-" .Values.persistence.prestashop.storageClass) }} + storage: {{ .Values.persistence.size | quote }} +{{- if .Values.persistence.storageClass }} +{{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} - storageClassName: "{{ .Values.persistence.prestashop.storageClass }}" + storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end -}} diff --git a/upstreamed/prestashop/values.yaml b/upstreamed/prestashop/values.yaml index ff885fc069..bb7d1302ce 100644 --- a/upstreamed/prestashop/values.yaml +++ b/upstreamed/prestashop/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami PrestaShop image version ## ref: https://hub.docker.com/r/bitnami/prestashop/tags/ ## @@ -94,6 +100,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true @@ -153,28 +161,22 @@ sessionAffinity: "None" ## persistence: enabled: true - apache: - ## apache data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 1Gi - prestashop: - ## prestashop data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 8Gi + ## Prestashop Data Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) + ## + # storageClass: "-" + + ## A manually managed Persistent Volume and Claim + ## Requires persistence.enabled: true + ## If defined, PVC must be created manually before volume will be bound + # existingClaim: + + accessMode: ReadWriteOnce + size: 8Gi ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index c43fce9aae..0b4fe1f68d 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.4.1 +version: 3.5.0 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/README.md b/upstreamed/rabbitmq/README.md index 75cccef1bb..32044f58a8 100644 --- a/upstreamed/rabbitmq/README.md +++ b/upstreamed/rabbitmq/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the RabbitMQ chart and | Parameter | Description | Default | |-----------------------------|---------------------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Rabbitmq Image registry | `docker.io` | | `image.repository` | Rabbitmq Image name | `bitnami/rabbitmq` | | `image.tag` | Rabbitmq Image tag | `{VERSION}` | diff --git a/upstreamed/rabbitmq/templates/_helpers.tpl b/upstreamed/rabbitmq/templates/_helpers.tpl index 9c785ecadc..b6e5b889d7 100644 --- a/upstreamed/rabbitmq/templates/_helpers.tpl +++ b/upstreamed/rabbitmq/templates/_helpers.tpl @@ -31,6 +31,29 @@ Create chart name and version as used by the chart label. {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{/* +Return the proper RabbitMQ image name +*/}} +{{- define "rabbitmq.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} + {{/* Return the proper metrics image name */}} diff --git a/upstreamed/rabbitmq/templates/statefulset.yaml b/upstreamed/rabbitmq/templates/statefulset.yaml index 3ce2b086fd..d04f1528ec 100644 --- a/upstreamed/rabbitmq/templates/statefulset.yaml +++ b/upstreamed/rabbitmq/templates/statefulset.yaml @@ -49,7 +49,7 @@ spec: terminationGracePeriodSeconds: 10 containers: - name: rabbitmq - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "rabbitmq.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} command: - bash diff --git a/upstreamed/rabbitmq/values-production.yaml b/upstreamed/rabbitmq/values-production.yaml index d308b32eaf..50cda255c2 100644 --- a/upstreamed/rabbitmq/values-production.yaml +++ b/upstreamed/rabbitmq/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami RabbitMQ image version ## ref: https://hub.docker.com/r/bitnami/rabbitmq/tags/ ## diff --git a/upstreamed/rabbitmq/values.yaml b/upstreamed/rabbitmq/values.yaml index 2e37e2a9d1..04e1eb39ff 100644 --- a/upstreamed/rabbitmq/values.yaml +++ b/upstreamed/rabbitmq/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami RabbitMQ image version ## ref: https://hub.docker.com/r/bitnami/rabbitmq/tags/ ## diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index e8bb354eb5..56e72e5c52 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.1.3 +version: 4.2.0 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/README.md b/upstreamed/redis/README.md index 6470fbfb3a..6af0d4b846 100644 --- a/upstreamed/redis/README.md +++ b/upstreamed/redis/README.md @@ -76,8 +76,9 @@ kubectl patch deployments my-release-redis-metrics --type=json -p='[{"op": "remo The following table lists the configurable parameters of the Redis chart and their default values. -| Parameter | Description | Default | -|--------------------------------------------|----------------------------------------------------------------------------------------------------------------|--------------------------------------| +| Parameter | Description | Default | +|--------------------------------------------|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Redis Image registry | `docker.io` | | `image.repository` | Redis Image name | `bitnami/redis` | | `image.tag` | Redis Image tag | `{VERSION}` | diff --git a/upstreamed/redis/templates/_helpers.tpl b/upstreamed/redis/templates/_helpers.tpl index 9efb959e18..0b28c44662 100644 --- a/upstreamed/redis/templates/_helpers.tpl +++ b/upstreamed/redis/templates/_helpers.tpl @@ -43,13 +43,26 @@ Return the appropriate apiVersion for networkpolicy. {{- end -}} {{/* -Return the proper image name +Return the proper Redis image name */}} {{- define "redis.image" -}} -{{- $registryName := .Values.image.registry -}} +{{- $registryName := .Values.image.registry -}} {{- $repositoryName := .Values.image.repository -}} {{- $tag := .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} {{- end -}} {{/* diff --git a/upstreamed/redis/values-production.yaml b/upstreamed/redis/values-production.yaml index abda34409f..4863d65f10 100644 --- a/upstreamed/redis/values-production.yaml +++ b/upstreamed/redis/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Redis image version ## ref: https://hub.docker.com/r/bitnami/redis/tags/ ## diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index e2958451c4..557d77695c 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Redis image version ## ref: https://hub.docker.com/r/bitnami/redis/tags/ ## diff --git a/upstreamed/redmine/Chart.yaml b/upstreamed/redmine/Chart.yaml index 5cfd555793..e286bcc6d9 100644 --- a/upstreamed/redmine/Chart.yaml +++ b/upstreamed/redmine/Chart.yaml @@ -1,5 +1,5 @@ name: redmine -version: 5.0.2 +version: 5.1.0 appVersion: 3.4.6 description: A flexible project management web application. keywords: diff --git a/upstreamed/redmine/README.md b/upstreamed/redmine/README.md index 9d75fb8e9f..f58b861d10 100644 --- a/upstreamed/redmine/README.md +++ b/upstreamed/redmine/README.md @@ -55,8 +55,9 @@ helm install --name my-release stable/redmine --set databaseType.mariadb=false,d The following table lists the configurable parameters of the Redmine chart and their default values. -| Parameter | Description | Default | +| Parameter | Description | Default | | --------------------------------- | ---------------------------------------- | ------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Redmine image registry | `docker.io` | | `image.repository` | Redmine image name | `bitnami/redmine` | | `image.tag` | Redmine image tag | `{VERSION}` | diff --git a/upstreamed/redmine/requirements.lock b/upstreamed/redmine/requirements.lock index 143e9783be..10b9c79ee7 100644 --- a/upstreamed/redmine/requirements.lock +++ b/upstreamed/redmine/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 - name: postgresql repository: https://kubernetes-charts.storage.googleapis.com/ - version: 0.18.1 + version: 0.19.0 digest: sha256:bd7da903db69d89a8de155f6259a2ef20de455280360674b2955bb6515c13eee -generated: 2018-09-25T11:26:31.244834331+02:00 +generated: 2018-10-16T08:50:37.621182+02:00 diff --git a/upstreamed/redmine/templates/_helpers.tpl b/upstreamed/redmine/templates/_helpers.tpl index 55d4531f38..b3901dbb64 100644 --- a/upstreamed/redmine/templates/_helpers.tpl +++ b/upstreamed/redmine/templates/_helpers.tpl @@ -30,3 +30,26 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "redmine.postgresql.fullname" -}} {{- printf "%s-%s" .Release.Name "postgresql" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper Redmine image name +*/}} +{{- define "redmine.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/redmine/templates/deployment.yaml b/upstreamed/redmine/templates/deployment.yaml index e8ac5171a0..b6506d4443 100644 --- a/upstreamed/redmine/templates/deployment.yaml +++ b/upstreamed/redmine/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "redmine.fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "redmine.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} resources: {{ toYaml .Values.resources | indent 10 }} diff --git a/upstreamed/redmine/values.yaml b/upstreamed/redmine/values.yaml index 8f31ed7b5f..93a5a310c5 100644 --- a/upstreamed/redmine/values.yaml +++ b/upstreamed/redmine/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami Redmine image version ## ref: https://hub.docker.com/r/bitnami/redmine/tags/ ## @@ -63,6 +69,8 @@ databaseType: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/suitecrm/Chart.yaml b/upstreamed/suitecrm/Chart.yaml index f3c9e131b9..b017fd3317 100644 --- a/upstreamed/suitecrm/Chart.yaml +++ b/upstreamed/suitecrm/Chart.yaml @@ -1,5 +1,5 @@ name: suitecrm -version: 3.1.2 +version: 4.0.0 appVersion: 7.10.9 description: SuiteCRM is a completely open source enterprise-grade Customer Relationship Management (CRM) application. SuiteCRM is a software fork of the popular customer relationship management (CRM) system SugarCRM. keywords: diff --git a/upstreamed/suitecrm/README.md b/upstreamed/suitecrm/README.md index 7123777c20..cf587c311a 100644 --- a/upstreamed/suitecrm/README.md +++ b/upstreamed/suitecrm/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the SuiteCRM chart and | Parameter | Description | Default | |-------------------------------------|-------------------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | SuiteCRM image registry | `docker.io` | | `image.repository` | SuiteCRM image name | `bitnami/suitecrm` | | `image.tag` | SuiteCRM image tag | `{VERSION}` | @@ -79,14 +80,11 @@ The following table lists the configurable parameters of the SuiteCRM chart and | `mariadb.rootUser.password` | MariaDB admin password | `nil` | | `serviceType` | Kubernetes Service type | `LoadBalancer` | | `externalTrafficPolicy` | Set to `Local` to preserve the client source IP | `Cluster` | -| `sessionAffinity` | Configures the session affinity | `ClientIP` | | `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.apache.storageClass` | PVC Storage Class for apache volume | `nil` (uses alpha storage class annotation) | -| `persistence.apache.accessMode` | PVC Access Mode for apache volume | `ReadWriteOnce` | -| `persistence.apache.size` | PVC Storage Request for apache volume | `1Gi` | -| `persistence.suitecrm.storageClass` | PVC Storage Class for SuiteCRM volume | `nil` (uses alpha storage class annotation) | -| `persistence.suitecrm.accessMode` | PVC Access Mode for SuiteCRM volume | `ReadWriteOnce` | -| `persistence.suitecrm.size` | PVC Storage Request for SuiteCRM volume | `8Gi` | +| `persistence.storageClass` | PVC Storage Class for SuiteCRM volume | `nil` (uses alpha storage class annotation) | +| `persistence.existingClaim` | An Existing PVC name for SuiteCRM volume | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | PVC Access Mode for SuiteCRM volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for SuiteCRM volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | The above parameters map to the env variables defined in [bitnami/suitecrm](http://github.com/bitnami/bitnami-docker-suitecrm). For more information please refer to the [bitnami/suitecrm](http://github.com/bitnami/bitnami-docker-suitecrm) image documentation. diff --git a/upstreamed/suitecrm/requirements.lock b/upstreamed/suitecrm/requirements.lock index d79e277649..678aaca2b8 100644 --- a/upstreamed/suitecrm/requirements.lock +++ b/upstreamed/suitecrm/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:57:28.148036179+02:00 +generated: 2018-10-16T08:50:49.43739+02:00 diff --git a/upstreamed/suitecrm/templates/NOTES.txt b/upstreamed/suitecrm/templates/NOTES.txt index 99fd56c09d..10457248f9 100644 --- a/upstreamed/suitecrm/templates/NOTES.txt +++ b/upstreamed/suitecrm/templates/NOTES.txt @@ -12,27 +12,29 @@ host. To configure SuiteCRM with the URL of your service: {{- if contains "NodePort" .Values.serviceType }} - export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") + export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "suitecrm.fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") {{- else if contains "LoadBalancer" .Values.serviceType }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. - Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "fullname" . }}' + Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "suitecrm.fullname" . }}' - export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - export APP_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath="{.data.suitecrm-password}" | base64 --decode) + export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "suitecrm.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + export APP_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "suitecrm.fullname" . }} -o jsonpath="{.data.suitecrm-password}" | base64 --decode) {{- if .Values.mariadb.mariadbRootPassword }} - export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) + export DATABASE_ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "suitecrm.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-root-password}" | base64 --decode) {{- end }} {{- end }} + export APP_DATABASE_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "suitecrm.mariadb.fullname" . }} -o jsonpath="{.data.mariadb-password}" | base64 --decode) + 2. Complete your SuiteCRM deployment by running: {{- if .Values.mariadb.enabled }} helm upgrade {{ .Release.Name }} stable/suitecrm \ - --set suitecrmHost=$APP_HOST,suitecrmPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$APP_DATABASE_PASSWORD{{ end }} + --set suitecrmHost=$APP_HOST,suitecrmPassword=$APP_PASSWORD{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$DATABASE_ROOT_PASSWORD{{ end }},mariadb.db.password=$APP_DATABASE_PASSWORD {{- else }} ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## @@ -47,7 +49,7 @@ host. To configure SuiteCRM with the URL of your service: {{- if eq .Values.serviceType "ClusterIP" }} echo "SuiteCRM URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "fullname" . }} $POD_NAME 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "suitecrm.fullname" . }} $POD_NAME 8080:80 {{- else }} @@ -58,7 +60,7 @@ host. To configure SuiteCRM with the URL of your service: 2. Get your SuiteCRM login credentials by running: echo Username : {{ .Values.suitecrmUsername }} - echo Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath="{.data.suitecrm-password}" | base64 --decode) + echo Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "suitecrm.fullname" . }} -o jsonpath="{.data.suitecrm-password}" | base64 --decode) {{- end }} {{- else -}} diff --git a/upstreamed/suitecrm/templates/_helpers.tpl b/upstreamed/suitecrm/templates/_helpers.tpl index fbeb1a6cac..7bf975a9de 100644 --- a/upstreamed/suitecrm/templates/_helpers.tpl +++ b/upstreamed/suitecrm/templates/_helpers.tpl @@ -2,7 +2,7 @@ {{/* Expand the name of the chart. */}} -{{- define "name" -}} +{{- define "suitecrm.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -10,7 +10,7 @@ Expand the name of the chart. Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} -{{- define "fullname" -}} +{{- define "suitecrm.fullname" -}} {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} @@ -43,3 +43,26 @@ If not using ClusterIP, or if a host or LoadBalancerIP is not defined, the value {{- $host := index .Values (printf "%sHost" .Chart.Name) | default "" -}} {{- default (include "serviceIP" .) $host -}} {{- end -}} + +{{/* +Return the proper SuiteCRM image name +*/}} +{{- define "suitecrm.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/suitecrm/templates/apache-pvc.yaml b/upstreamed/suitecrm/templates/apache-pvc.yaml deleted file mode 100644 index 488212ba91..0000000000 --- a/upstreamed/suitecrm/templates/apache-pvc.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{- if .Values.persistence.enabled -}} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "fullname" . }}-apache - labels: - app: {{ template "name" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - accessModes: - - {{ .Values.persistence.apache.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.apache.size | quote }} -{{- if .Values.persistence.apache.storageClass }} -{{- if (eq "-" .Values.persistence.apache.storageClass) }} - storageClassName: "" -{{- else }} - storageClassName: "{{ .Values.persistence.apache.storageClass }}" -{{- end }} -{{- end }} -{{- end -}} diff --git a/upstreamed/suitecrm/templates/deployment.yaml b/upstreamed/suitecrm/templates/deployment.yaml index a7b5d61a9a..05717254f2 100644 --- a/upstreamed/suitecrm/templates/deployment.yaml +++ b/upstreamed/suitecrm/templates/deployment.yaml @@ -2,21 +2,21 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: {{ template "fullname" . }} + name: {{ template "suitecrm.fullname" . }} labels: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: selector: matchLabels: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} release: "{{ .Release.Name }}" template: metadata: labels: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} release: "{{ .Release.Name }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: @@ -27,8 +27,8 @@ spec: {{- end}} {{- end }} containers: - - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + - name: {{ template "suitecrm.fullname" . }} + image: {{ template "suitecrm.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD @@ -71,7 +71,7 @@ spec: - name: SUITECRM_PASSWORD valueFrom: secretKeyRef: - name: {{ template "fullname" . }} + name: {{ template "suitecrm.fullname" . }} key: suitecrm-password - name: SUITECRM_EMAIL value: {{ .Values.suitecrmEmail | quote }} @@ -86,7 +86,7 @@ spec: - name: SUITECRM_SMTP_PASSWORD valueFrom: secretKeyRef: - name: {{ template "fullname" . }} + name: {{ template "suitecrm.fullname" . }} key: suitecrm-smtp-password - name: SUITECRM_SMTP_PROTOCOL value: {{ .Values.suitecrmSmtpProtocol | quote }} @@ -116,20 +116,15 @@ spec: volumeMounts: - name: suitecrm-data mountPath: /bitnami/suitecrm - - name: apache-data + subPath: suitecrm + - name: suitecrm-data mountPath: /bitnami/apache + subPath: apache volumes: - name: suitecrm-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ template "fullname" . }}-suitecrm - {{- else }} - emptyDir: {} - {{- end }} - - name: apache-data - {{- if .Values.persistence.enabled }} - persistentVolumeClaim: - claimName: {{ template "fullname" . }}-apache + claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "suitecrm.fullname" . }}-suitecrm{{- end }} {{- else }} emptyDir: {} {{- end }} diff --git a/upstreamed/suitecrm/templates/secrets.yaml b/upstreamed/suitecrm/templates/secrets.yaml index 28be00b52a..58cbfb899f 100644 --- a/upstreamed/suitecrm/templates/secrets.yaml +++ b/upstreamed/suitecrm/templates/secrets.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: Secret metadata: - name: {{ template "fullname" . }} + name: {{ template "suitecrm.fullname" . }} labels: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" diff --git a/upstreamed/suitecrm/templates/suitecrm-pvc.yaml b/upstreamed/suitecrm/templates/suitecrm-pvc.yaml index d8a9cd7a95..18a7ac50e7 100644 --- a/upstreamed/suitecrm/templates/suitecrm-pvc.yaml +++ b/upstreamed/suitecrm/templates/suitecrm-pvc.yaml @@ -2,23 +2,23 @@ kind: PersistentVolumeClaim apiVersion: v1 metadata: - name: {{ template "fullname" . }}-suitecrm + name: {{ template "suitecrm.fullname" . }}-suitecrm labels: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: accessModes: - - {{ .Values.persistence.suitecrm.accessMode | quote }} + - {{ .Values.persistence.accessMode | quote }} resources: requests: - storage: {{ .Values.persistence.suitecrm.size | quote }} -{{- if .Values.persistence.suitecrm.storageClass }} -{{- if (eq "-" .Values.persistence.suitecrm.storageClass) }} + storage: {{ .Values.persistence.size | quote }} +{{- if .Values.persistence.storageClass }} +{{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} - storageClassName: "{{ .Values.persistence.suitecrm.storageClass }}" + storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end -}} diff --git a/upstreamed/suitecrm/templates/svc.yaml b/upstreamed/suitecrm/templates/svc.yaml index e76116bd87..582dd67fe0 100644 --- a/upstreamed/suitecrm/templates/svc.yaml +++ b/upstreamed/suitecrm/templates/svc.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: Service metadata: - name: {{ template "fullname" . }} + name: {{ template "suitecrm.fullname" . }} labels: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" @@ -15,7 +15,6 @@ spec: {{- if (or (eq .Values.serviceType "LoadBalancer") (eq .Values.serviceType "NodePort")) }} externalTrafficPolicy: {{ .Values.externalTrafficPolicy | quote }} {{- end }} - sessionAffinity: {{ .Values.sessionAffinity | quote }} ports: - name: http port: 80 @@ -24,6 +23,6 @@ spec: port: 443 targetPort: https selector: - app: {{ template "name" . }} + app: {{ template "suitecrm.name" . }} release: "{{ .Release.Name }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" diff --git a/upstreamed/suitecrm/values.yaml b/upstreamed/suitecrm/values.yaml index b5f14d1d51..dbfcb27bff 100644 --- a/upstreamed/suitecrm/values.yaml +++ b/upstreamed/suitecrm/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami SuiteCRM image version ## ref: https://hub.docker.com/r/bitnami/suitecrm/tags/ ## @@ -89,6 +95,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true @@ -138,38 +146,27 @@ serviceType: LoadBalancer ## ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-type-nodeport externalTrafficPolicy: Cluster -## Control where client requests go, to the same pod or round-robin -## Values: ClientIP or None -## ref: https://kubernetes.io/docs/user-guide/services/ -sessionAffinity: "ClientIP" - ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## persistence: enabled: true - apache: - ## apache data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 1Gi - suitecrm: - ## suitecrm data Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - accessMode: ReadWriteOnce - size: 8Gi + ## suitecrm data Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) + ## + # storageClass: "-" + + ## A manually managed Persistent Volume and Claim + ## Requires persistence.enabled: true + ## If defined, PVC must be created manually before volume will be bound + # existingClaim: + + accessMode: ReadWriteOnce + size: 8Gi ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ diff --git a/upstreamed/testlink/Chart.yaml b/upstreamed/testlink/Chart.yaml index 65dda538b3..6da6397da4 100644 --- a/upstreamed/testlink/Chart.yaml +++ b/upstreamed/testlink/Chart.yaml @@ -1,5 +1,5 @@ name: testlink -version: 3.0.3 +version: 3.1.0 appVersion: 1.9.17 description: Web-based test management system that facilitates software quality assurance. icon: https://bitnami.com/assets/stacks/testlink/img/testlink-stack-220x234.png diff --git a/upstreamed/testlink/README.md b/upstreamed/testlink/README.md index e2de7bb084..0c0491fd8f 100644 --- a/upstreamed/testlink/README.md +++ b/upstreamed/testlink/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the TestLink chart and | Parameter | Description | Default | |-------------------------------------|-----------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | TestLink image registry | `docker.io` | | `image.repository` | TestLink image name | `bitnami/testlink` | | `image.tag` | TestLink image tag | `{VERSION}` | diff --git a/upstreamed/testlink/requirements.lock b/upstreamed/testlink/requirements.lock index 3ef50c173b..3c1cfb14ff 100644 --- a/upstreamed/testlink/requirements.lock +++ b/upstreamed/testlink/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-09-25T11:58:55.304406377+02:00 +generated: 2018-10-16T08:50:59.206637+02:00 diff --git a/upstreamed/testlink/templates/_helpers.tpl b/upstreamed/testlink/templates/_helpers.tpl index 078f1bf70d..a452535927 100644 --- a/upstreamed/testlink/templates/_helpers.tpl +++ b/upstreamed/testlink/templates/_helpers.tpl @@ -21,4 +21,27 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this */}} {{- define "testlink.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} -{{- end -}} \ No newline at end of file +{{- end -}} + +{{/* +Return the proper Testlink image name +*/}} +{{- define "testlink.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/testlink/templates/deployment.yaml b/upstreamed/testlink/templates/deployment.yaml index d8646ec6d6..f99c04406f 100644 --- a/upstreamed/testlink/templates/deployment.yaml +++ b/upstreamed/testlink/templates/deployment.yaml @@ -32,7 +32,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "testlink.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/testlink/values.yaml b/upstreamed/testlink/values.yaml index 350ea40018..44050daa3f 100644 --- a/upstreamed/testlink/values.yaml +++ b/upstreamed/testlink/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami TestLink image version ## ref: https://hub.docker.com/r/bitnami/testlink/tags/ ## @@ -82,6 +88,8 @@ smtpConnectionMode: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/wordpress/Chart.yaml b/upstreamed/wordpress/Chart.yaml index 5b7d156eaf..62380a82b9 100644 --- a/upstreamed/wordpress/Chart.yaml +++ b/upstreamed/wordpress/Chart.yaml @@ -1,5 +1,5 @@ name: wordpress -version: 3.1.1 +version: 3.2.0 appVersion: 4.9.8 description: Web publishing platform for building blogs and websites. icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png diff --git a/upstreamed/wordpress/README.md b/upstreamed/wordpress/README.md index c7f1a24e6d..d1cadda8dc 100644 --- a/upstreamed/wordpress/README.md +++ b/upstreamed/wordpress/README.md @@ -49,6 +49,7 @@ The following table lists the configurable parameters of the WordPress chart and | Parameter | Description | Default | |----------------------------------|--------------------------------------------|---------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | WordPress image registry | `docker.io` | | `image.repository` | WordPress image name | `bitnami/wordpress` | | `image.tag` | WordPress image tag | `{VERSION}` | diff --git a/upstreamed/wordpress/requirements.lock b/upstreamed/wordpress/requirements.lock index 28c3b284d2..6621b2d70f 100644 --- a/upstreamed/wordpress/requirements.lock +++ b/upstreamed/wordpress/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.0.4 + version: 5.2.0 digest: sha256:5c711356a05ffeaffafba333092229eadc8ba3cc377b56861988517ac77b7609 -generated: 2018-09-25T12:00:13.171071112+02:00 +generated: 2018-10-16T08:51:10.026782+02:00 diff --git a/upstreamed/wordpress/templates/_helpers.tpl b/upstreamed/wordpress/templates/_helpers.tpl index 1e52d321ca..c7b068fbdd 100644 --- a/upstreamed/wordpress/templates/_helpers.tpl +++ b/upstreamed/wordpress/templates/_helpers.tpl @@ -22,3 +22,26 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper WordPress image name +*/}} +{{- define "wordpress.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/upstreamed/wordpress/templates/deployment.yaml b/upstreamed/wordpress/templates/deployment.yaml index 5fe0066508..1dbfaf3192 100644 --- a/upstreamed/wordpress/templates/deployment.yaml +++ b/upstreamed/wordpress/templates/deployment.yaml @@ -28,7 +28,7 @@ spec: {{- end }} containers: - name: {{ template "fullname" . }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "wordpress.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: ALLOW_EMPTY_PASSWORD diff --git a/upstreamed/wordpress/templates/tests/test-mariadb-connection.yaml b/upstreamed/wordpress/templates/tests/test-mariadb-connection.yaml index 95ccb38ada..c9bcdf2b82 100644 --- a/upstreamed/wordpress/templates/tests/test-mariadb-connection.yaml +++ b/upstreamed/wordpress/templates/tests/test-mariadb-connection.yaml @@ -8,7 +8,7 @@ metadata: spec: containers: - name: {{ .Release.Name }}-credentials-test - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: {{ template "wordpress.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: MARIADB_HOST diff --git a/upstreamed/wordpress/values-production.yaml b/upstreamed/wordpress/values-production.yaml index 8988ce7974..c7a0fcd045 100644 --- a/upstreamed/wordpress/values-production.yaml +++ b/upstreamed/wordpress/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami WordPress image version ## ref: https://hub.docker.com/r/bitnami/wordpress/tags/ ## @@ -85,6 +91,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true diff --git a/upstreamed/wordpress/values.yaml b/upstreamed/wordpress/values.yaml index d1707badd4..bfa1173e8c 100644 --- a/upstreamed/wordpress/values.yaml +++ b/upstreamed/wordpress/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + ## Bitnami WordPress image version ## ref: https://hub.docker.com/r/bitnami/wordpress/tags/ ## @@ -89,6 +95,8 @@ externalDatabase: ## ## MariaDB chart configuration ## +## https://github.com/helm/charts/blob/master/stable/mariadb/values.yaml +## mariadb: ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters enabled: true From cad1e96e2ccc4ec930d6b32749b731ab822ffa52 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 17 Oct 2018 10:37:17 +0000 Subject: [PATCH 025/153] Synchronize upstreamed folder to 2610c80 --- upstreamed/ghost/Chart.yaml | 4 +- upstreamed/ghost/values.yaml | 2 +- upstreamed/mongodb/Chart.yaml | 2 +- .../templates/statefulset-arbiter-rs.yaml | 2 + .../templates/statefulset-primary-rs.yaml | 2 + .../templates/statefulset-secondary-rs.yaml | 2 + upstreamed/odoo/Chart.yaml | 4 +- upstreamed/odoo/values.yaml | 2 +- upstreamed/redmine/Chart.yaml | 2 +- upstreamed/redmine/README.md | 84 ++++++++++--------- upstreamed/redmine/templates/_helpers.tpl | 8 ++ upstreamed/redmine/templates/deployment.yaml | 4 +- upstreamed/redmine/templates/ingress.yaml | 34 +++++--- upstreamed/redmine/templates/pdb.yaml | 2 +- upstreamed/redmine/templates/pvc.yaml | 2 +- upstreamed/redmine/templates/secrets.yaml | 2 +- upstreamed/redmine/templates/svc.yaml | 2 +- upstreamed/redmine/values.yaml | 38 ++++++--- 18 files changed, 123 insertions(+), 75 deletions(-) diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index e9ba6bf146..7c225ca104 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.3.1 -appVersion: 2.2.2 +version: 5.3.2 +appVersion: 2.2.3 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 880c1d376c..e532434886 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.2.2-debian-9 + tag: 2.2.3-debian-9 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 4e5a18606a..80ec884306 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.5.0 +version: 4.6.0 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml b/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml index 4ed30a16de..aa75e4e5ab 100644 --- a/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml @@ -112,6 +112,8 @@ spec: mountPath: /opt/bitnami/mongodb/conf/mongodb.conf subPath: mongodb.conf {{- end }} + resources: +{{ toYaml .Values.resources | indent 12 }} volumes: {{- if .Values.configmap }} - name: config diff --git a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml index 8dcb004715..1ac926e859 100644 --- a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml @@ -133,6 +133,8 @@ spec: mountPath: /opt/bitnami/mongodb/conf/mongodb.conf subPath: mongodb.conf {{- end }} + resources: +{{ toYaml .Values.resources | indent 12 }} volumes: {{- if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js]") }} - name: custom-init-scripts diff --git a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml index d4c4a974a4..e31d356daa 100644 --- a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml @@ -121,6 +121,8 @@ spec: mountPath: /opt/bitnami/mongodb/conf/mongodb.conf subPath: mongodb.conf {{- end }} + resources: +{{ toYaml .Values.resources | indent 12 }} volumes: {{- if .Values.configmap }} - name: config diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index 95a355113f..043175067e 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,6 +1,6 @@ name: odoo -version: 3.2.0 -appVersion: 11.0.20180915 +version: 3.2.1 +appVersion: 11.0.20181015 description: A suite of web based open source business apps. home: https://www.odoo.com/ icon: https://bitnami.com/assets/stacks/odoo/img/odoo-stack-110x117.png diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index 2c122ff577..425952716b 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/odoo - tag: 11.0.20180915-debian-9 + tag: 11.0.20181015-debian-9 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/redmine/Chart.yaml b/upstreamed/redmine/Chart.yaml index e286bcc6d9..b2ad6cf061 100644 --- a/upstreamed/redmine/Chart.yaml +++ b/upstreamed/redmine/Chart.yaml @@ -1,5 +1,5 @@ name: redmine -version: 5.1.0 +version: 5.2.0 appVersion: 3.4.6 description: A flexible project management web application. keywords: diff --git a/upstreamed/redmine/README.md b/upstreamed/redmine/README.md index f58b861d10..30a7efc5a4 100644 --- a/upstreamed/redmine/README.md +++ b/upstreamed/redmine/README.md @@ -55,46 +55,50 @@ helm install --name my-release stable/redmine --set databaseType.mariadb=false,d The following table lists the configurable parameters of the Redmine chart and their default values. -| Parameter | Description | Default | -| --------------------------------- | ---------------------------------------- | ------------------------------------------------------- | -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | Redmine image registry | `docker.io` | -| `image.repository` | Redmine image name | `bitnami/redmine` | -| `image.tag` | Redmine image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `redmineUsername` | User of the application | `user` | -| `redminePassword` | Application password | _random 10 character long alphanumeric string_ | -| `redmineEmail` | Admin email | `user@example.com` | -| `redmineLanguage` | Redmine default data language | `en` | -| `extraVars` | Environment variables, passed to redmine | `nil` | -| `smtpHost` | SMTP host | `nil` | -| `smtpPort` | SMTP port | `nil` | -| `smtpUser` | SMTP user | `nil` | -| `smtpPassword` | SMTP password | `nil` | -| `smtpTls` | Use TLS encryption with SMTP | `nil` | -| `databaseType.postgresql` | Select postgresql database | `false` | -| `databaseType.mariadb` | Select mariadb database | `true` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `postgresql.postgresqlPassword` | PostgreSQL admin password | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `serviceLoadBalancerSourceRanges` | An array of load balancer sources | `0.0.0.0/0` | -| `ingress.enabled` | Enable or disable the ingress | `false` | -| `ingress.hostname` | The virtual host name | `redmine.cluster.local` | -| `ingress.annotations` | An array of service annotations | `nil` | -| `ingress.tls[i].secretName` | The secret kubernetes.io/tls | `nil` | -| `ingress.tls[i].hosts[j]` | The virtual host name | `nil` | -| `networkPolicyApiVersion` | The kubernetes network API version | `extensions/v1beta1` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.existingClaim` | The name of an existing PVC | `nil` | -| `persistence.storageClass` | PVC Storage Class | `nil` (uses alpha storage class annotation) | -| `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce` | -| `persistence.size` | PVC Storage Request | `8Gi` | -| `podDisruptionBudget.enabled` | Pod Disruption Budget toggle | `false` | -| `podDisruptionBudget.minAvailable`| Minimum available pods | `nil` | -| `podDisruptionBudget.maxUnavailable`| Maximum unavailable pods | `nil` | -| `replicas` | The number of pod replicas (See [Replicas](#replicas)) | `1` | -| `resources` | Resources allocation (Requests and Limits) | `{}` | +| Parameter | Description | Default | +| ----------------------------------- | ------------------------------------------ | ------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registr y | `nil` | +| `image.registry` | Redmine image registry | `docker.io` | +| `image.repository` | Redmine image name | `bitnami/redmine` | +| `image.tag` | Redmine image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `redmineUsername` | User of the application | `user` | +| `redminePassword` | Application password | _random 10 character long alphanumeric string_ | +| `redmineEmail` | Admin email | `user@example.com` | +| `redmineLanguage` | Redmine default data language | `en` | +| `extraVars` | Environment variables, passed to redmine | `nil` | +| `smtpHost` | SMTP host | `nil` | +| `smtpPort` | SMTP port | `nil` | +| `smtpUser` | SMTP user | `nil` | +| `smtpPassword` | SMTP password | `nil` | +| `smtpTls` | Use TLS encryption with SMTP | `nil` | +| `databaseType.postgresql` | Select postgresql database | `false` | +| `databaseType.mariadb` | Select mariadb database | `true` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `postgresql.postgresqlPassword` | PostgreSQL admin password | `nil` | +| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `serviceLoadBalancerSourceRanges` | An array of load balancer sources | `0.0.0.0/0` | +| `ingress.enabled` | Enable or disable the ingress | `false` | +| `ingress.hosts[0].name` | Hostname to your Redmine installation | `redmine.local ` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `redmine.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.existingClaim` | The name of an existing PVC | `nil` | +| `persistence.storageClass` | PVC Storage Class | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request | `8Gi` | +| `podDisruptionBudget.enabled` | Pod Disruption Budget toggle | `false` | +| `podDisruptionBudget.minAvailable` | Minimum available pods | `nil` | +| `podDisruptionBudget.maxUnavailable`| Maximum unavailable pods | `nil` | +| `replicas` | The number of pod replicas | `1` | +| `resources` | Resources allocation (Requests and Limits) | `{}` | The above parameters map to the env variables defined in [bitnami/redmine](http://github.com/bitnami/bitnami-docker-redmine). For more information please refer to the [bitnami/redmine](http://github.com/bitnami/bitnami-docker-redmine) image documentation. diff --git a/upstreamed/redmine/templates/_helpers.tpl b/upstreamed/redmine/templates/_helpers.tpl index b3901dbb64..2139bc563e 100644 --- a/upstreamed/redmine/templates/_helpers.tpl +++ b/upstreamed/redmine/templates/_helpers.tpl @@ -53,3 +53,11 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "redmine.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + diff --git a/upstreamed/redmine/templates/deployment.yaml b/upstreamed/redmine/templates/deployment.yaml index b6506d4443..f1dd15d9ef 100644 --- a/upstreamed/redmine/templates/deployment.yaml +++ b/upstreamed/redmine/templates/deployment.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "redmine.fullname" . }} labels: app: {{ template "redmine.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "redmine.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: @@ -17,7 +17,7 @@ spec: metadata: labels: app: {{ template "redmine.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "redmine.chart" . }} release: "{{ .Release.Name }}" spec: {{- if .Values.image.pullSecrets }} diff --git a/upstreamed/redmine/templates/ingress.yaml b/upstreamed/redmine/templates/ingress.yaml index 8b9a2962ff..560a0dbde0 100644 --- a/upstreamed/redmine/templates/ingress.yaml +++ b/upstreamed/redmine/templates/ingress.yaml @@ -1,23 +1,37 @@ {{- if .Values.ingress.enabled }} -apiVersion: {{ required "A valid .Values.networkPolicyApiVersion entry required!" .Values.networkPolicyApiVersion }} +{{- range .Values.ingress.hosts }} +apiVersion: extensions/v1beta1 kind: Ingress metadata: -{{- if .Values.ingress.annotations }} + name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}" + labels: + app: {{ template "redmine.fullname" $ }} + chart: {{ template "redmine.chart" $ }} + release: "{{ $.Release.Name }}" + heritage: "{{ $.Release.Service }}" annotations: -{{ toYaml .Values.ingress.annotations | indent 4 }} -{{- end }} - name: {{ template "redmine.fullname" . }} + {{- if .certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: rules: - - host: {{ .Values.ingress.hostname | quote }} + - host: {{ .name }} http: paths: - - path: / + - path: {{ default "/" .path }} backend: - serviceName: {{ template "redmine.fullname" . }} + serviceName: {{ template "redmine.fullname" $ }} servicePort: 80 -{{- if .Values.ingress.tls }} +{{- if .tls }} tls: + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} {{ toYaml .Values.ingress.tls | indent 4 }} -{{- end -}} +{{- end }} +--- +{{- end }} {{- end }} diff --git a/upstreamed/redmine/templates/pdb.yaml b/upstreamed/redmine/templates/pdb.yaml index f545eb4939..2dfea68e47 100644 --- a/upstreamed/redmine/templates/pdb.yaml +++ b/upstreamed/redmine/templates/pdb.yaml @@ -5,7 +5,7 @@ metadata: name: {{ template "redmine.fullname" . }} labels: app: {{ template "redmine.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "redmine.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/redmine/templates/pvc.yaml b/upstreamed/redmine/templates/pvc.yaml index 3fda4c2ecc..2dd5cf0830 100644 --- a/upstreamed/redmine/templates/pvc.yaml +++ b/upstreamed/redmine/templates/pvc.yaml @@ -5,7 +5,7 @@ metadata: name: {{ template "redmine.fullname" . }} labels: app: {{ template "redmine.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "redmine.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/redmine/templates/secrets.yaml b/upstreamed/redmine/templates/secrets.yaml index d2513b6502..4624c9df83 100644 --- a/upstreamed/redmine/templates/secrets.yaml +++ b/upstreamed/redmine/templates/secrets.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "redmine.fullname" . }} labels: app: {{ template "redmine.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "redmine.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque diff --git a/upstreamed/redmine/templates/svc.yaml b/upstreamed/redmine/templates/svc.yaml index 2725587bad..72cb9f2983 100644 --- a/upstreamed/redmine/templates/svc.yaml +++ b/upstreamed/redmine/templates/svc.yaml @@ -4,7 +4,7 @@ metadata: name: {{ template "redmine.fullname" . }} labels: app: {{ template "redmine.fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + chart: {{ template "redmine.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: diff --git a/upstreamed/redmine/values.yaml b/upstreamed/redmine/values.yaml index 93a5a310c5..4a69cdfb42 100644 --- a/upstreamed/redmine/values.yaml +++ b/upstreamed/redmine/values.yaml @@ -151,20 +151,36 @@ serviceType: LoadBalancer serviceLoadBalancerSourceRanges: - 0.0.0.0/0 +## Configure the ingress resource that allows you to access the +## Redmine installation. Set up the URL +## ref: http://kubernetes.io/docs/user-guide/ingress/ +## ingress: + ## Set to true to enable ingress record generation enabled: false - hostname: redmine.cluser.local - annotations: - # kubernetes.io/ingress.class: nginx - # ingress.kubernetes.io/whitelist-source-range: "10.0.0.0/24,172.10.0.1" - tls: - # - secretName: redmine.cluster.local - # hosts: - # - redmine.cluster.local -## For Kubernetes v1.4, v1.5 and v1.6, use 'extensions/v1beta1' -## For Kubernetes v1.7, use 'networking.k8s.io/v1' -networkPolicyApiVersion: extensions/v1beta1 + ## The list of hostnames to be covered with this ingress record. + ## Most likely this will be just one host, but in the event more hosts are needed, this is an array + hosts: + - name: redmine.local + + ## Set this to true in order to enable TLS on the ingress record + ## A side effect of this will be that the backend wordpress service will be connected at port 443 + tls: false + + ## Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: redmine.local-tls + + ## Ingress annotations done as key:value pairs + ## For a full list of possible ingress annotations, please see + ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + ## + ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ From 01c51c0e4c050c8ec3d79f88fa2cec81aa50e3b3 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 17 Oct 2018 12:14:34 +0000 Subject: [PATCH 026/153] external-dns: update to `0.5.8` Signed-off-by: Bitnami Containers --- bitnami/external-dns/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/external-dns/values.yaml b/bitnami/external-dns/values.yaml index 4bbe5c5468..e5cf23c1e0 100755 --- a/bitnami/external-dns/values.yaml +++ b/bitnami/external-dns/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/external-dns - tag: 0.5.7-debian-9 + tag: 0.5.8 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 8bf1ae05d078311d36b27e295ae74cf8e52b4024 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 17 Oct 2018 12:14:34 +0000 Subject: [PATCH 027/153] external-dns: bump chart appVersion to `0.5.8` Signed-off-by: Bitnami Containers --- bitnami/external-dns/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/external-dns/Chart.yaml b/bitnami/external-dns/Chart.yaml index 7cb520dc88..2fa0703b80 100644 --- a/bitnami/external-dns/Chart.yaml +++ b/bitnami/external-dns/Chart.yaml @@ -1,6 +1,6 @@ name: external-dns version: 1.1.0 -appVersion: 0.5.7 +appVersion: 0.5.8 description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable. keywords: - external-dns From f129be574af77e99a0d0093bf422e6ce6e2c286c Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 17 Oct 2018 12:14:34 +0000 Subject: [PATCH 028/153] external-dns: bump chart version to `1.1.1` Signed-off-by: Bitnami Containers --- bitnami/external-dns/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/external-dns/Chart.yaml b/bitnami/external-dns/Chart.yaml index 2fa0703b80..6dd82b1d0a 100644 --- a/bitnami/external-dns/Chart.yaml +++ b/bitnami/external-dns/Chart.yaml @@ -1,5 +1,5 @@ name: external-dns -version: 1.1.0 +version: 1.1.1 appVersion: 0.5.8 description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable. keywords: From 427ac51cdf4de70f786563e1971a5d491d32ad54 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Wed, 17 Oct 2018 13:39:43 +0000 Subject: [PATCH 029/153] Remove distro tags in charts --- bitnami/apache/values.yaml | 2 +- bitnami/consul/values-production.yaml | 2 +- bitnami/consul/values.yaml | 2 +- bitnami/elasticsearch/values-production.yaml | 2 +- bitnami/elasticsearch/values.yaml | 2 +- bitnami/etcd/values-production.yaml | 2 +- bitnami/etcd/values.yaml | 2 +- bitnami/external-dns/values.yaml | 2 +- bitnami/jenkins/values.yaml | 2 +- bitnami/kafka/values-production.yaml | 2 +- bitnami/kafka/values.yaml | 2 +- bitnami/memcached/values.yaml | 2 +- bitnami/metrics-server/values.yaml | 2 +- bitnami/mysql/values-production.yaml | 2 +- bitnami/mysql/values.yaml | 2 +- bitnami/nginx-ingress-controller/values.yaml | 2 +- bitnami/nginx/values.yaml | 2 +- bitnami/postgresql/values-production.yaml | 2 +- bitnami/postgresql/values.yaml | 2 +- bitnami/tensorflow-inception/values.yaml | 4 ++-- bitnami/tomcat/values.yaml | 2 +- bitnami/wildfly/values.yaml | 2 +- bitnami/zookeeper/values.yaml | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/bitnami/apache/values.yaml b/bitnami/apache/values.yaml index fa0cbfa84b..aea62e7243 100644 --- a/bitnami/apache/values.yaml +++ b/bitnami/apache/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/apache - tag: 2.4.35-debian-9 + tag: 2.4.35 ## Specify a imagePullPolicy ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index 3e791c8c43..5e49ccd0d8 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/consul - tag: 1.3.0-debian-9 + tag: 1.3.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 34a760f8db..520e7a63fa 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/consul - tag: 1.3.0-debian-9 + tag: 1.3.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index b1883a5f22..3a9568e18e 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.4.2-debian-9 + tag: 6.4.2 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index b3dedbbe68..803fd9302b 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.4.2-debian-9 + tag: 6.4.2 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/etcd/values-production.yaml b/bitnami/etcd/values-production.yaml index 257e864269..9fe0a0ead9 100644 --- a/bitnami/etcd/values-production.yaml +++ b/bitnami/etcd/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/etcd - tag: 3.3.10-debian-9 + tag: 3.3.10 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/etcd/values.yaml b/bitnami/etcd/values.yaml index 4d711309e5..fd4c8709a6 100644 --- a/bitnami/etcd/values.yaml +++ b/bitnami/etcd/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/etcd - tag: 3.3.10-debian-9 + tag: 3.3.10 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/external-dns/values.yaml b/bitnami/external-dns/values.yaml index 4bbe5c5468..e86adea8c4 100755 --- a/bitnami/external-dns/values.yaml +++ b/bitnami/external-dns/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/external-dns - tag: 0.5.7-debian-9 + tag: 0.5.7 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index fa50bbffdb..80f650f027 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/jenkins - tag: 2.138.2-debian-9 + tag: 2.138.2 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/kafka/values-production.yaml b/bitnami/kafka/values-production.yaml index fb9dadc0fe..04a823fd7f 100644 --- a/bitnami/kafka/values-production.yaml +++ b/bitnami/kafka/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/kafka - tag: 2.0.0-debian-9 + tag: 2.0.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/kafka/values.yaml b/bitnami/kafka/values.yaml index 85ec43eb14..1dd92c803c 100644 --- a/bitnami/kafka/values.yaml +++ b/bitnami/kafka/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/kafka - tag: 2.0.0-debian-9 + tag: 2.0.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/memcached/values.yaml b/bitnami/memcached/values.yaml index cb634ac3d4..197ad3469b 100644 --- a/bitnami/memcached/values.yaml +++ b/bitnami/memcached/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/memcached - tag: 1.5.11-debian-9 + tag: 1.5.11 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/metrics-server/values.yaml b/bitnami/metrics-server/values.yaml index 101d03fa8b..2d8d564658 100644 --- a/bitnami/metrics-server/values.yaml +++ b/bitnami/metrics-server/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/metrics-server - tag: 0.3.1-debian-9 + tag: 0.3.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/mysql/values-production.yaml b/bitnami/mysql/values-production.yaml index 915488cc76..ab56bff972 100644 --- a/bitnami/mysql/values-production.yaml +++ b/bitnami/mysql/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mysql - tag: 5.7.23-debian-9 + tag: 5.7.23 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/mysql/values.yaml b/bitnami/mysql/values.yaml index 275ce66b64..565f3c083e 100644 --- a/bitnami/mysql/values.yaml +++ b/bitnami/mysql/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mysql - tag: 5.7.23-debian-9 + tag: 5.7.23 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index 2fe6ee695c..50ae69dbe3 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -10,7 +10,7 @@ name: controller image: registry: docker.io repository: bitnami/nginx-ingress-controller - tag: 0.20.0-debian-9 + tag: 0.20.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/nginx/values.yaml b/bitnami/nginx/values.yaml index abd4f35997..20b7ea35db 100644 --- a/bitnami/nginx/values.yaml +++ b/bitnami/nginx/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/nginx - tag: 1.14.0-debian-9 + tag: 1.14.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/postgresql/values-production.yaml b/bitnami/postgresql/values-production.yaml index 176da43ba6..eca54a09c6 100644 --- a/bitnami/postgresql/values-production.yaml +++ b/bitnami/postgresql/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 10.5.0-debian-9 + tag: 10.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/postgresql/values.yaml b/bitnami/postgresql/values.yaml index 3ccaddb5ad..68299f1e61 100644 --- a/bitnami/postgresql/values.yaml +++ b/bitnami/postgresql/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 10.5.0-debian-9 + tag: 10.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index a1ab6c5e7f..1911519284 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -11,7 +11,7 @@ server: image: registry: docker.io repository: bitnami/tensorflow-serving - tag: 1.10.1-debian-9 + tag: 1.10.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -32,7 +32,7 @@ client: image: registry: docker.io repository: bitnami/tensorflow-inception - tag: 1.10.1-debian-9 + tag: 1.10.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/tomcat/values.yaml b/bitnami/tomcat/values.yaml index 2cd86ee82e..7afd280924 100644 --- a/bitnami/tomcat/values.yaml +++ b/bitnami/tomcat/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/tomcat - tag: 8.5.34-debian-9 + tag: 8.5.34 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/wildfly/values.yaml b/bitnami/wildfly/values.yaml index 5fec2a11d3..38f02a786b 100644 --- a/bitnami/wildfly/values.yaml +++ b/bitnami/wildfly/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/wildfly - tag: 14.0.1-debian-9 + tag: 14.0.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/zookeeper/values.yaml b/bitnami/zookeeper/values.yaml index ddeeb3b721..5e4f1ac4bc 100644 --- a/bitnami/zookeeper/values.yaml +++ b/bitnami/zookeeper/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/zookeeper - tag: 3.4.12-debian-9 + tag: 3.4.12 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 0cfd3f421533a532c90438afa287bf46aa10413e Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Wed, 17 Oct 2018 15:17:08 +0000 Subject: [PATCH 030/153] Bump versions --- bitnami/apache/Chart.yaml | 2 +- bitnami/consul/Chart.yaml | 2 +- bitnami/elasticsearch/Chart.yaml | 2 +- bitnami/etcd/Chart.yaml | 2 +- bitnami/external-dns/values.yaml | 2 +- bitnami/jenkins/Chart.yaml | 2 +- bitnami/kafka/Chart.yaml | 2 +- bitnami/memcached/Chart.yaml | 2 +- bitnami/metrics-server/Chart.yaml | 2 +- bitnami/mysql/Chart.yaml | 2 +- bitnami/nginx-ingress-controller/Chart.yaml | 2 +- bitnami/nginx/Chart.yaml | 2 +- bitnami/postgresql/Chart.yaml | 2 +- bitnami/tensorflow-inception/Chart.yaml | 2 +- bitnami/tomcat/Chart.yaml | 2 +- bitnami/wildfly/Chart.yaml | 2 +- bitnami/zookeeper/Chart.yaml | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bitnami/apache/Chart.yaml b/bitnami/apache/Chart.yaml index 43ef136763..d410b4164f 100644 --- a/bitnami/apache/Chart.yaml +++ b/bitnami/apache/Chart.yaml @@ -1,5 +1,5 @@ name: apache -version: 2.1.0 +version: 2.1.1 appVersion: 2.4.35 description: Chart for Apache HTTP Server keywords: diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index fd3def30e0..bd0717ecf6 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -2,7 +2,7 @@ name: consul home: https://www.consul.io/ sources: - https://github.com/bitnami/consul -version: 2.4.0 +version: 2.4.1 appVersion: 1.3.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index ba2d3bcd05..78d280d458 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.1.0 +version: 4.1.1 appVersion: 6.4.2 description: A highly scalable open-source full-text search and analytics engine keywords: diff --git a/bitnami/etcd/Chart.yaml b/bitnami/etcd/Chart.yaml index 58df89e9db..d30f07bf28 100644 --- a/bitnami/etcd/Chart.yaml +++ b/bitnami/etcd/Chart.yaml @@ -1,5 +1,5 @@ name: etcd -version: 1.2.0 +version: 1.2.1 appVersion: 3.3.10 description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines keywords: diff --git a/bitnami/external-dns/values.yaml b/bitnami/external-dns/values.yaml index e5cf23c1e0..578bdfd9d2 100755 --- a/bitnami/external-dns/values.yaml +++ b/bitnami/external-dns/values.yaml @@ -123,7 +123,7 @@ rbac: ## serviceAccountName: default ## RBAC API version - apiVersion: v1beta1 + apiVersion: v1beta1 ## Kubernetes Security Context ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index 75a290b23d..b3af210e7f 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -1,5 +1,5 @@ name: jenkins -version: 1.2.0 +version: 1.2.1 appVersion: 2.138.2 description: The leading open source automation server keywords: diff --git a/bitnami/kafka/Chart.yaml b/bitnami/kafka/Chart.yaml index 1636c2a8b7..502d20dd60 100644 --- a/bitnami/kafka/Chart.yaml +++ b/bitnami/kafka/Chart.yaml @@ -1,5 +1,5 @@ name: kafka -version: 1.1.0 +version: 1.1.1 appVersion: 2.0.0 description: Apache Kafka is a distributed streaming platform. keywords: diff --git a/bitnami/memcached/Chart.yaml b/bitnami/memcached/Chart.yaml index 23e7f37c63..4f1580f52d 100644 --- a/bitnami/memcached/Chart.yaml +++ b/bitnami/memcached/Chart.yaml @@ -1,5 +1,5 @@ name: memcached -version: 1.2.0 +version: 1.2.1 appVersion: 1.5.11 description: Chart for Memcached keywords: diff --git a/bitnami/metrics-server/Chart.yaml b/bitnami/metrics-server/Chart.yaml index 71bc3fd2b3..e85fb83ffe 100644 --- a/bitnami/metrics-server/Chart.yaml +++ b/bitnami/metrics-server/Chart.yaml @@ -1,5 +1,5 @@ name: metrics-server -version: 2.1.0 +version: 2.1.1 appVersion: 0.3.1 description: Metrics Server is a cluster-wide aggregator of resource usage data. Metrics Server collects metrics from the Summary API, exposed by Kubelet on each node. keywords: diff --git a/bitnami/mysql/Chart.yaml b/bitnami/mysql/Chart.yaml index 915e44ac7a..20a8250325 100644 --- a/bitnami/mysql/Chart.yaml +++ b/bitnami/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 4.1.0 +version: 4.1.1 appVersion: 5.7.23 description: Chart to create a Highly available MySQL cluster keywords: diff --git a/bitnami/nginx-ingress-controller/Chart.yaml b/bitnami/nginx-ingress-controller/Chart.yaml index 58d9cb4c10..7e3eff6141 100644 --- a/bitnami/nginx-ingress-controller/Chart.yaml +++ b/bitnami/nginx-ingress-controller/Chart.yaml @@ -1,5 +1,5 @@ name: nginx-ingress-controller -version: 2.1.0 +version: 2.1.1 appVersion: 0.20.0 description: Chart for the nginx Ingress controller keywords: diff --git a/bitnami/nginx/Chart.yaml b/bitnami/nginx/Chart.yaml index f172ef7cd1..28646561b0 100644 --- a/bitnami/nginx/Chart.yaml +++ b/bitnami/nginx/Chart.yaml @@ -1,5 +1,5 @@ name: nginx -version: 1.1.0 +version: 1.1.1 appVersion: 1.14.0 description: Chart for the nginx server keywords: diff --git a/bitnami/postgresql/Chart.yaml b/bitnami/postgresql/Chart.yaml index 6c7b22be68..0a4da5f4c6 100644 --- a/bitnami/postgresql/Chart.yaml +++ b/bitnami/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 3.1.0 +version: 3.1.1 appVersion: 10.5.0 description: Chart for PostgreSQL keywords: diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index 1bc42a7ff5..babd8d9157 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,5 +1,5 @@ name: tensorflow-inception -version: 1.1.0 +version: 1.1.1 appVersion: 1.10.1 description: Open-source software library for serving machine learning models keywords: diff --git a/bitnami/tomcat/Chart.yaml b/bitnami/tomcat/Chart.yaml index b3f80df176..d3f28194ea 100644 --- a/bitnami/tomcat/Chart.yaml +++ b/bitnami/tomcat/Chart.yaml @@ -1,5 +1,5 @@ name: tomcat -version: 1.1.0 +version: 1.1.1 appVersion: 8.5.34 description: Chart for Apache Tomcat keywords: diff --git a/bitnami/wildfly/Chart.yaml b/bitnami/wildfly/Chart.yaml index 9158ca69fd..c98d7ab2ba 100644 --- a/bitnami/wildfly/Chart.yaml +++ b/bitnami/wildfly/Chart.yaml @@ -1,5 +1,5 @@ name: wildfly -version: 1.1.0 +version: 1.1.1 appVersion: 14.0.1 description: Chart for Wildfly keywords: diff --git a/bitnami/zookeeper/Chart.yaml b/bitnami/zookeeper/Chart.yaml index b8aa48c83c..a1a59acbbb 100644 --- a/bitnami/zookeeper/Chart.yaml +++ b/bitnami/zookeeper/Chart.yaml @@ -1,5 +1,5 @@ name: zookeeper -version: 1.1.0 +version: 1.1.1 appVersion: 3.4.12 description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications. keywords: From c5c8e4094bde68f6d6b2cd716666b02200b6fb3c Mon Sep 17 00:00:00 2001 From: Jota Date: Thu, 18 Oct 2018 08:33:19 +0200 Subject: [PATCH 031/153] Rename Consul to HashiCorp Consul --- bitnami/consul/README.md | 134 +++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/bitnami/consul/README.md b/bitnami/consul/README.md index 4f4e71e293..c1f35a2518 100644 --- a/bitnami/consul/README.md +++ b/bitnami/consul/README.md @@ -1,6 +1,6 @@ -# Consul Helm Chart +# HashiCorp Consul Helm Chart -[Consul](https://www.consul.io/) has multiple components, but as a whole, it is a tool for discovering and configuring services in your infrastructure +[HashiCorp Consul](https://www.consul.io/) has multiple components, but as a whole, it is a tool for discovering and configuring services in your infrastructure ## TL;DR @@ -11,7 +11,7 @@ $ helm install bitnami/consul ## Introduction -This chart bootstraps a [Consul](https://github.com/bitnami/bitnami-docker-consul) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. +This chart bootstraps a [HashiCorp Consul](https://github.com/bitnami/bitnami-docker-consul) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. @@ -28,7 +28,7 @@ To install the chart with the release name `my-release`: $ helm install --name my-release bitnami/consul ``` -The command deploys Consul on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. +The command deploys HashiCorp Consul on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. > **Tip**: List all releases using `helm list` @@ -47,63 +47,63 @@ $ helm delete --purge my-release ## Configuration -The following tables lists the configurable parameters of the Consul chart and their default values. +The following tables lists the configurable parameters of the HashiCorp Consul chart and their default values. -| Parameter | Description | Default | -| ------------------------------------ | ------------------------------------------------------ | ---------------------------------------------------------- | -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | Consul image registry | `docker.io` | -| `image.repository` | Consul image name | `bitnami/consul` | -| `image.tag` | Consul image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `replicas` | Number of replicas | `3` | -| `httpPort` | Consul http listening port | `8500` | -| `rpcPort` | Consul rpc listening port | `8400` | -| `serflanPort` | Container serf lan listening port | `8301` | -| `serverPort` | Container server listening port | `8300` | -| `consulDnsPort` | Container dns listening port | `8600` | -| `uiPort` | Consul UI port | `80` | -| `datacenterName` | Consul datacenter name | `dc1` | -| `gossipKey` | Gossip key for all members | `nil` | -| `domain` | Consul domain | `consul` | -| `clientAddress` | Address in which Consul will bind client interfaces | `0.0.0.0` | -| `serflanAddress` | Address used for Serf LAN communications | `0.0.0.0` | -| `raftMultiplier` | Multiplier used to scale key Raft timing parameters | `10Gi` | -| `persistence.enabled` | Use a PVC to persist data | `true` | -| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | -| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | -| `persistence.size` | Size of data volume | `8Gi` | -| `persistence.annotations` | Annotations for the persistent volume | `nil` | -| `resources` | Container resource requests and limits | `{}` | -| `maxUnavailable` | Pod disruption Budget maxUnavailable | `1` | -| `nodeAffinity` | Consul pod node-affinity setting | `nil` | -| `antiAffinity` | Consul pod anti-affinity setting | `soft` | -| `ui.service.enabled` | Use a service to access Consul Ui | `true` | -| `ui.service.type` | Kubernetes Service Type | `ClusterIP` | -| `ui.service.annotations` | Annotations for Consul UI service | {} | -| `ui.service.loadBalancerIP` | IP if Consul UI service type is `LoadBalancer` | `nil` | -| `ui.ingress.enabled` | Enable ingress controller resource | `false` | -| `ui.ingress.hosts[0].name` | Hostname to your Consul installation | `consul-ui.local` | -| `ui.ingress.hosts[0].path` | Path within the url structure | `/` | -| `ui.ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | -| `ui.ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | -| `ui.ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `consul-ui.local-tls` | -| `ui.ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | -| `ui.ingress.secrets[0].name` | TLS Secret Name | `nil` | -| `ui.ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | -| `ui.ingress.secrets[0].key` | TLS Secret Key | `nil` | -| `configmap` | Consul configuration to be injected as ConfigMap | `nil` | -| `metrics.enabled` | Start a side-car prometheus exporter | `false` | -| `metrics.image` | Exporter image | `prom/consul-exporter` | -| `metrics.imageTag` | Exporter image tag | `v0.3.0` | -| `metrics.imagePullPolicy` | Exporter image pull policy | `IfNotPresent` | -| `metrics.resources` | Exporter resource requests/limit | `{}` | -| `metrics.podAnnotations` | Exporter annotations | `{}` | -| `nodeSelector` | Node labels for pod assignment | `{}` | -| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | -| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | -| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | +| Parameter | Description | Default | +| ------------------------------------ | ---------------------------------------------------------------- | ---------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | HashiCorp Consul image registry | `docker.io` | +| `image.repository` | HashiCorp Consul image name | `bitnami/consul` | +| `image.tag` | HashiCorp Consul image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `replicas` | Number of replicas | `3` | +| `httpPort` | HashiCorp Consul http listening port | `8500` | +| `rpcPort` | HashiCorp Consul rpc listening port | `8400` | +| `serflanPort` | Container serf lan listening port | `8301` | +| `serverPort` | Container server listening port | `8300` | +| `consulDnsPort` | Container dns listening port | `8600` | +| `uiPort` | HashiCorp Consul UI port | `80` | +| `datacenterName` | HashiCorp Consul datacenter name | `dc1` | +| `gossipKey` | Gossip key for all members | `nil` | +| `domain` | HashiCorp Consul domain | `consul` | +| `clientAddress` | Address in which HashiCorp Consul will bind client interfaces | `0.0.0.0` | +| `serflanAddress` | Address used for Serf LAN communications | `0.0.0.0` | +| `raftMultiplier` | Multiplier used to scale key Raft timing parameters | `10Gi` | +| `persistence.enabled` | Use a PVC to persist data | `true` | +| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | +| `persistence.size` | Size of data volume | `8Gi` | +| `persistence.annotations` | Annotations for the persistent volume | `nil` | +| `resources` | Container resource requests and limits | `{}` | +| `maxUnavailable` | Pod disruption Budget maxUnavailable | `1` | +| `nodeAffinity` | HashiCorp Consul pod node-affinity setting | `nil` | +| `antiAffinity` | HashiCorp Consul pod anti-affinity setting | `soft` | +| `ui.service.enabled` | Use a service to access HashiCorp Consul Ui | `true` | +| `ui.service.type` | Kubernetes Service Type | `ClusterIP` | +| `ui.service.annotations` | Annotations for HashiCorp Consul UI service | {} | +| `ui.service.loadBalancerIP` | IP if HashiCorp Consul UI service type is `LoadBalancer` | `nil` | +| `ui.ingress.enabled` | Enable ingress controller resource | `false` | +| `ui.ingress.hosts[0].name` | Hostname to your HashiCorp Consul installation | `consul-ui.local` | +| `ui.ingress.hosts[0].path` | Path within the url structure | `/` | +| `ui.ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ui.ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ui.ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `consul-ui.local-tls` | +| `ui.ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ui.ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ui.ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ui.ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `configmap` | HashiCorp Consul configuration to be injected as ConfigMap | `nil` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image` | Exporter image | `prom/consul-exporter` | +| `metrics.imageTag` | Exporter image tag | `v0.3.0` | +| `metrics.imagePullPolicy` | Exporter image pull policy | `IfNotPresent` | +| `metrics.resources` | Exporter resource requests/limit | `{}` | +| `metrics.podAnnotations` | Exporter annotations | `{}` | +| `nodeSelector` | Node labels for pod assignment | `{}` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | +| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | +| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | | `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | | `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | | `podAnnotations` | Pod annotations | `{}` | @@ -118,7 +118,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm ```console $ helm install --name my-release --set domain=consul-domain,gossipKey=secretkey bitnami/consul ``` -The above command sets the Consul domain to `consul-domain` and sets the gossip key to `secretkey`. +The above command sets the HashiCorp Consul domain to `consul-domain` and sets the gossip key to `secretkey`. Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, @@ -130,7 +130,7 @@ $ helm install --name my-release -f values.yaml bitnami/consul ## Persistence -The [Bitnami Consul](https://github.com/bitnami/bitnami-docker-consul) image stores the Consul data at the `/bitnami` path of the container. +The [Bitnami HashiCorp Consul](https://github.com/bitnami/bitnami-docker-consul) image stores the HashiCorp Consul data at the `/bitnami` path of the container. Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. See the [Configuration](#configuration) section to configure the PVC or to disable persistence. @@ -140,20 +140,20 @@ See the [Configuration](#configuration) section to configure the PVC or to disab This chart provides support for ingress resources. If you have an ingress controller installed on your cluster, such as [nginx-ingress](https://kubeapps.com/charts/stable/nginx-ingress) or [traefik](https://kubeapps.com/charts/stable/traefik) you can utilize -the ingress controller to service your Consul UI application. +the ingress controller to service your HashiCorp Consul UI application. To enable ingress integration, please set `ingress.enabled` to `true` ### Hosts Most likely you will only want to have one hostname that maps to this -Consul installation, however it is possible to have more than one +HashiCorp Consul installation, however it is possible to have more than one host. To facilitate this, the `ingress.hosts` object is an array. For each item, please indicate a `name`, `tls`, `tlsSecret`, and any `annotations` that you may want the ingress controller to know about. -Indicating TLS will cause Consul to generate HTTPS urls, and -Consul will be connected to at port 443. The actual secret that +Indicating TLS will cause HashiCorp Consul to generate HTTPS urls, and +HashiCorp Consul will be connected to at port 443. The actual secret that `tlsSecret` references does not have to be generated by this chart. However, please note that if TLS is enabled, the ingress record will not work until this secret exists. @@ -222,7 +222,7 @@ kubectl create secret generic consul-tls-encryption \ > Take into account that you will need to create a config map with the proper configuration. -If the secret is specified, the chart will locate those files at `/opt/bitnami/consul/certs/`, so you will want to use the below snippet to configure Consul TLS encryption in your config map: +If the secret is specified, the chart will locate those files at `/opt/bitnami/consul/certs/`, so you will want to use the below snippet to configure HashiCorp Consul TLS encryption in your config map: ``` "ca_file": "/opt/bitnami/consul/certs/ca.pem", From d37c3abd26120b1b96dcd73cd23f00ee1b7c12fe Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Thu, 18 Oct 2018 08:16:02 +0000 Subject: [PATCH 032/153] Synchronize upstreamed folder to c890b99 --- upstreamed/dokuwiki/Chart.yaml | 2 +- upstreamed/dokuwiki/values.yaml | 2 +- upstreamed/drupal/Chart.yaml | 2 +- upstreamed/drupal/values.yaml | 2 +- upstreamed/ghost/Chart.yaml | 2 +- upstreamed/ghost/values.yaml | 2 +- upstreamed/jasperreports/Chart.yaml | 2 +- upstreamed/jasperreports/values.yaml | 2 +- upstreamed/joomla/Chart.yaml | 2 +- upstreamed/joomla/values.yaml | 2 +- upstreamed/magento/Chart.yaml | 2 +- upstreamed/magento/values.yaml | 2 +- upstreamed/mariadb/Chart.yaml | 2 +- upstreamed/mariadb/values-production.yaml | 2 +- upstreamed/mariadb/values.yaml | 2 +- upstreamed/mediawiki/Chart.yaml | 2 +- upstreamed/mediawiki/values.yaml | 2 +- upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/values-production.yaml | 2 +- upstreamed/mongodb/values.yaml | 2 +- upstreamed/moodle/Chart.yaml | 2 +- upstreamed/moodle/values.yaml | 2 +- upstreamed/nats/Chart.yaml | 2 +- upstreamed/nats/values-production.yaml | 2 +- upstreamed/nats/values.yaml | 2 +- upstreamed/odoo/Chart.yaml | 2 +- upstreamed/odoo/values.yaml | 2 +- upstreamed/opencart/Chart.yaml | 2 +- upstreamed/opencart/values.yaml | 2 +- upstreamed/orangehrm/Chart.yaml | 4 ++-- upstreamed/orangehrm/requirements.lock | 4 ++-- upstreamed/orangehrm/values.yaml | 2 +- upstreamed/osclass/Chart.yaml | 2 +- upstreamed/osclass/values.yaml | 2 +- upstreamed/owncloud/Chart.yaml | 2 +- upstreamed/owncloud/values.yaml | 2 +- upstreamed/parse/Chart.yaml | 2 +- upstreamed/parse/values.yaml | 4 ++-- upstreamed/phabricator/Chart.yaml | 4 ++-- upstreamed/phabricator/values.yaml | 2 +- upstreamed/phpbb/Chart.yaml | 2 +- upstreamed/phpbb/values.yaml | 2 +- upstreamed/phpmyadmin/Chart.yaml | 2 +- upstreamed/phpmyadmin/values.yaml | 2 +- upstreamed/prestashop/Chart.yaml | 2 +- upstreamed/prestashop/values.yaml | 2 +- upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/values-production.yaml | 2 +- upstreamed/rabbitmq/values.yaml | 2 +- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/values-production.yaml | 2 +- upstreamed/redis/values.yaml | 2 +- upstreamed/redmine/Chart.yaml | 2 +- upstreamed/redmine/values.yaml | 2 +- upstreamed/suitecrm/Chart.yaml | 2 +- upstreamed/suitecrm/values.yaml | 2 +- upstreamed/testlink/Chart.yaml | 2 +- upstreamed/testlink/values.yaml | 2 +- upstreamed/wordpress/Chart.yaml | 2 +- upstreamed/wordpress/values-production.yaml | 2 +- upstreamed/wordpress/values.yaml | 2 +- 61 files changed, 65 insertions(+), 65 deletions(-) diff --git a/upstreamed/dokuwiki/Chart.yaml b/upstreamed/dokuwiki/Chart.yaml index 9defc65e37..df5e46787f 100644 --- a/upstreamed/dokuwiki/Chart.yaml +++ b/upstreamed/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.2.0 +version: 3.2.1 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/upstreamed/dokuwiki/values.yaml b/upstreamed/dokuwiki/values.yaml index c0f74d52d7..6e4bea7151 100644 --- a/upstreamed/dokuwiki/values.yaml +++ b/upstreamed/dokuwiki/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/dokuwiki - tag: 0.20180422.201805030840-debian-9 + tag: 0.20180422.201805030840 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index 881cb904bd..0387c1f87d 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,5 +1,5 @@ name: drupal -version: 2.2.0 +version: 2.2.1 appVersion: 8.6.1 description: One of the most versatile open source content management systems. keywords: diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index 400e6faa7d..9e7ad635d6 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/drupal - tag: 8.6.1-debian-9 + tag: 8.6.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 7c225ca104..31a040ae78 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,5 +1,5 @@ name: ghost -version: 5.3.2 +version: 5.3.3 appVersion: 2.2.3 description: A simple, powerful publishing platform that allows you to share your stories with the world diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index e532434886..56db5e19e1 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.2.3-debian-9 + tag: 2.2.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/jasperreports/Chart.yaml b/upstreamed/jasperreports/Chart.yaml index c1cf00d9dc..2c0f57c945 100644 --- a/upstreamed/jasperreports/Chart.yaml +++ b/upstreamed/jasperreports/Chart.yaml @@ -1,5 +1,5 @@ name: jasperreports -version: 3.1.0 +version: 3.1.1 appVersion: 7.1.0 description: The JasperReports server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, diff --git a/upstreamed/jasperreports/values.yaml b/upstreamed/jasperreports/values.yaml index 724777798b..1b064d302f 100644 --- a/upstreamed/jasperreports/values.yaml +++ b/upstreamed/jasperreports/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/jasperreports - tag: 7.1.0-debian-9 + tag: 7.1.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/joomla/Chart.yaml b/upstreamed/joomla/Chart.yaml index 74f196c68f..01c4f8b4ef 100644 --- a/upstreamed/joomla/Chart.yaml +++ b/upstreamed/joomla/Chart.yaml @@ -1,5 +1,5 @@ name: joomla -version: 3.3.0 +version: 3.3.1 appVersion: 3.8.13 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/upstreamed/joomla/values.yaml b/upstreamed/joomla/values.yaml index e21476acba..1882c9435b 100644 --- a/upstreamed/joomla/values.yaml +++ b/upstreamed/joomla/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/joomla - tag: 3.8.13-debian-9 + tag: 3.8.13 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/magento/Chart.yaml b/upstreamed/magento/Chart.yaml index 66383c6c24..c304525537 100644 --- a/upstreamed/magento/Chart.yaml +++ b/upstreamed/magento/Chart.yaml @@ -1,5 +1,5 @@ name: magento -version: 3.1.0 +version: 3.1.1 appVersion: 2.2.6 description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more. keywords: diff --git a/upstreamed/magento/values.yaml b/upstreamed/magento/values.yaml index 96f0e28cc3..10b23438c3 100644 --- a/upstreamed/magento/values.yaml +++ b/upstreamed/magento/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/magento - tag: 2.2.6-debian-9 + tag: 2.2.6 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mariadb/Chart.yaml b/upstreamed/mariadb/Chart.yaml index 01e0e1c0d7..74e1b67790 100644 --- a/upstreamed/mariadb/Chart.yaml +++ b/upstreamed/mariadb/Chart.yaml @@ -1,5 +1,5 @@ name: mariadb -version: 5.2.0 +version: 5.2.1 appVersion: 10.1.36 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: diff --git a/upstreamed/mariadb/values-production.yaml b/upstreamed/mariadb/values-production.yaml index 0d1ce2306e..0e564532f0 100644 --- a/upstreamed/mariadb/values-production.yaml +++ b/upstreamed/mariadb/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mariadb - tag: 10.1.36-debian-9 + tag: 10.1.36 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mariadb/values.yaml b/upstreamed/mariadb/values.yaml index 746b8cefee..9469da65e7 100644 --- a/upstreamed/mariadb/values.yaml +++ b/upstreamed/mariadb/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mariadb - tag: 10.1.36-debian-9 + tag: 10.1.36 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mediawiki/Chart.yaml b/upstreamed/mediawiki/Chart.yaml index b304660e33..4d77d5e08c 100644 --- a/upstreamed/mediawiki/Chart.yaml +++ b/upstreamed/mediawiki/Chart.yaml @@ -1,5 +1,5 @@ name: mediawiki -version: 5.0.0 +version: 5.0.1 appVersion: 1.31.1 description: Extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database. diff --git a/upstreamed/mediawiki/values.yaml b/upstreamed/mediawiki/values.yaml index 1e510fd104..ca3e494deb 100644 --- a/upstreamed/mediawiki/values.yaml +++ b/upstreamed/mediawiki/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mediawiki - tag: 1.31.1-debian-9 + tag: 1.31.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 80ec884306..318bdfde69 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.6.0 +version: 4.6.1 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/values-production.yaml b/upstreamed/mongodb/values-production.yaml index 9070f3b416..4f86e27c4f 100644 --- a/upstreamed/mongodb/values-production.yaml +++ b/upstreamed/mongodb/values-production.yaml @@ -14,7 +14,7 @@ image: ## Bitnami MongoDB image tag ## ref: https://hub.docker.com/r/bitnami/mongodb/tags/ ## - tag: 4.0.3-debian-9 + tag: 4.0.3 ## Specify a imagePullPolicy ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mongodb/values.yaml b/upstreamed/mongodb/values.yaml index 4b090d41b0..3f496731c9 100644 --- a/upstreamed/mongodb/values.yaml +++ b/upstreamed/mongodb/values.yaml @@ -14,7 +14,7 @@ image: ## Bitnami MongoDB image tag ## ref: https://hub.docker.com/r/bitnami/mongodb/tags/ ## - tag: 4.0.3-debian-9 + tag: 4.0.3 ## Specify a imagePullPolicy ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/moodle/Chart.yaml b/upstreamed/moodle/Chart.yaml index f79df1979f..45704a5d92 100644 --- a/upstreamed/moodle/Chart.yaml +++ b/upstreamed/moodle/Chart.yaml @@ -1,5 +1,5 @@ name: moodle -version: 3.2.0 +version: 3.2.1 appVersion: 3.5.2 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised diff --git a/upstreamed/moodle/values.yaml b/upstreamed/moodle/values.yaml index ec8a9fc6d6..5897e3bc95 100644 --- a/upstreamed/moodle/values.yaml +++ b/upstreamed/moodle/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/moodle - tag: 3.5.2-debian-9 + tag: 3.5.2 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/nats/Chart.yaml b/upstreamed/nats/Chart.yaml index d29d400ec1..22696b427f 100644 --- a/upstreamed/nats/Chart.yaml +++ b/upstreamed/nats/Chart.yaml @@ -1,5 +1,5 @@ name: nats -version: 1.1.0 +version: 1.1.1 appVersion: 1.3.0 description: An open-source, cloud-native messaging system keywords: diff --git a/upstreamed/nats/values-production.yaml b/upstreamed/nats/values-production.yaml index 67fec7a492..3d13b0f31f 100644 --- a/upstreamed/nats/values-production.yaml +++ b/upstreamed/nats/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/nats - tag: 1.3.0-debian-9 + tag: 1.3.0 pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. diff --git a/upstreamed/nats/values.yaml b/upstreamed/nats/values.yaml index 4bff1671f0..6d0bf31c44 100644 --- a/upstreamed/nats/values.yaml +++ b/upstreamed/nats/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/nats - tag: 1.3.0-debian-9 + tag: 1.3.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index 043175067e..321ec20661 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 3.2.1 +version: 3.2.2 appVersion: 11.0.20181015 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index 425952716b..bca6e75c1b 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/odoo - tag: 11.0.20181015-debian-9 + tag: 11.0.20181015 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/opencart/Chart.yaml b/upstreamed/opencart/Chart.yaml index 7eb351fb6c..ec1d5dc402 100644 --- a/upstreamed/opencart/Chart.yaml +++ b/upstreamed/opencart/Chart.yaml @@ -1,5 +1,5 @@ name: opencart -version: 3.1.0 +version: 3.1.1 appVersion: 3.0.2-0 description: A free and open source e-commerce platform for online merchants. It provides a professional and reliable foundation for a successful online store. diff --git a/upstreamed/opencart/values.yaml b/upstreamed/opencart/values.yaml index 0045c04daa..062c45bfa4 100644 --- a/upstreamed/opencart/values.yaml +++ b/upstreamed/opencart/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/opencart - tag: 3.0.2-0-debian-9 + tag: 3.0.2-0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/orangehrm/Chart.yaml b/upstreamed/orangehrm/Chart.yaml index b8ae48eb10..d81704b376 100644 --- a/upstreamed/orangehrm/Chart.yaml +++ b/upstreamed/orangehrm/Chart.yaml @@ -1,6 +1,6 @@ name: orangehrm -version: 3.1.0 -appVersion: 4.1.2 +version: 3.1.2 +appVersion: 4.1.2-1 description: OrangeHRM is a free HR management system that offers a wealth of modules to suit the needs of your business. keywords: diff --git a/upstreamed/orangehrm/requirements.lock b/upstreamed/orangehrm/requirements.lock index 18fcf3a13f..13de3f1788 100644 --- a/upstreamed/orangehrm/requirements.lock +++ b/upstreamed/orangehrm/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.1 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:49:23.919504+02:00 +generated: 2018-10-18T04:08:10.550596288Z diff --git a/upstreamed/orangehrm/values.yaml b/upstreamed/orangehrm/values.yaml index 59ca4e7fd8..e969301f18 100644 --- a/upstreamed/orangehrm/values.yaml +++ b/upstreamed/orangehrm/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/orangehrm - tag: 4.1.2-debian-9 + tag: 4.1.2-1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/osclass/Chart.yaml b/upstreamed/osclass/Chart.yaml index 2a2dfaf21b..d9927ee186 100644 --- a/upstreamed/osclass/Chart.yaml +++ b/upstreamed/osclass/Chart.yaml @@ -1,5 +1,5 @@ name: osclass -version: 3.1.0 +version: 3.1.1 appVersion: 3.7.4 description: Osclass is a php script that allows you to quickly create and manage your own free classifieds site. diff --git a/upstreamed/osclass/values.yaml b/upstreamed/osclass/values.yaml index 25abfc6ee3..a9250fa5cf 100644 --- a/upstreamed/osclass/values.yaml +++ b/upstreamed/osclass/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/osclass - tag: 3.7.4-debian-9 + tag: 3.7.4 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/owncloud/Chart.yaml b/upstreamed/owncloud/Chart.yaml index 7c182ef368..78e3fa26c7 100644 --- a/upstreamed/owncloud/Chart.yaml +++ b/upstreamed/owncloud/Chart.yaml @@ -1,5 +1,5 @@ name: owncloud -version: 3.2.1 +version: 3.2.2 appVersion: 10.0.10 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/upstreamed/owncloud/values.yaml b/upstreamed/owncloud/values.yaml index 560fd0001e..cce2d9c4e3 100644 --- a/upstreamed/owncloud/values.yaml +++ b/upstreamed/owncloud/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/owncloud - tag: 10.0.10-debian-9 + tag: 10.0.10 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/parse/Chart.yaml b/upstreamed/parse/Chart.yaml index 23fe8cb783..a02e3611fd 100644 --- a/upstreamed/parse/Chart.yaml +++ b/upstreamed/parse/Chart.yaml @@ -1,5 +1,5 @@ name: parse -version: 3.1.0 +version: 3.1.1 appVersion: 3.0.0 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: diff --git a/upstreamed/parse/values.yaml b/upstreamed/parse/values.yaml index 6e1181a185..700ed42534 100644 --- a/upstreamed/parse/values.yaml +++ b/upstreamed/parse/values.yaml @@ -21,7 +21,7 @@ server: image: registry: docker.io repository: bitnami/parse - tag: 3.0.0-debian-9 + tag: 3.0.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -73,7 +73,7 @@ dashboard: image: registry: docker.io repository: bitnami/parse-dashboard - tag: 1.2.0-ol-7 + tag: 1.2.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index a9e2bdfe7a..2c4aecc99e 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,6 +1,6 @@ name: phabricator -version: 3.2.0 -appVersion: 2018.40.0 +version: 3.2.2 +appVersion: 2018.41.0 description: Collection of open source web applications that help software companies build better software. keywords: - phabricator diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 9b5b6dd073..124354be80 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phabricator - tag: 2018.40.0-debian-9 + tag: 2018.41.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/phpbb/Chart.yaml b/upstreamed/phpbb/Chart.yaml index 5c904ef964..fd3f0b799d 100644 --- a/upstreamed/phpbb/Chart.yaml +++ b/upstreamed/phpbb/Chart.yaml @@ -1,5 +1,5 @@ name: phpbb -version: 3.1.0 +version: 3.1.1 appVersion: 3.2.3 description: Community forum that supports the notion of users and groups, file attachments, full-text search, notifications and more. diff --git a/upstreamed/phpbb/values.yaml b/upstreamed/phpbb/values.yaml index 6145a7a81f..6c5a65f8a9 100644 --- a/upstreamed/phpbb/values.yaml +++ b/upstreamed/phpbb/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phpbb - tag: 3.2.3-debian-9 + tag: 3.2.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/phpmyadmin/Chart.yaml b/upstreamed/phpmyadmin/Chart.yaml index ccc2415915..5794045e0f 100644 --- a/upstreamed/phpmyadmin/Chart.yaml +++ b/upstreamed/phpmyadmin/Chart.yaml @@ -1,5 +1,5 @@ name: phpmyadmin -version: 1.2.0 +version: 1.2.1 appVersion: 4.8.2 description: phpMyAdmin is an mysql administration frontend keywords: diff --git a/upstreamed/phpmyadmin/values.yaml b/upstreamed/phpmyadmin/values.yaml index d671f23a0a..d5cf9305a4 100644 --- a/upstreamed/phpmyadmin/values.yaml +++ b/upstreamed/phpmyadmin/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phpmyadmin - tag: 4.8.2-debian-9 + tag: 4.8.2 ## Specify a imagePullPolicy pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. diff --git a/upstreamed/prestashop/Chart.yaml b/upstreamed/prestashop/Chart.yaml index ab870a88f9..00c08cde5b 100644 --- a/upstreamed/prestashop/Chart.yaml +++ b/upstreamed/prestashop/Chart.yaml @@ -1,5 +1,5 @@ name: prestashop -version: 4.0.0 +version: 4.0.1 appVersion: 1.7.4-3 description: A popular open source ecommerce solution. Professional tools are easily accessible to increase online sales including instant guest checkout, abandoned diff --git a/upstreamed/prestashop/values.yaml b/upstreamed/prestashop/values.yaml index bb7d1302ce..59a929b72f 100644 --- a/upstreamed/prestashop/values.yaml +++ b/upstreamed/prestashop/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/prestashop - tag: 1.7.4-3-debian-9 + tag: 1.7.4-3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index 0b4fe1f68d..9935caa2cc 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.5.0 +version: 3.5.1 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/values-production.yaml b/upstreamed/rabbitmq/values-production.yaml index 50cda255c2..95dfbd1caa 100644 --- a/upstreamed/rabbitmq/values-production.yaml +++ b/upstreamed/rabbitmq/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/rabbitmq - tag: 3.7.8-debian-9 + tag: 3.7.8 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/rabbitmq/values.yaml b/upstreamed/rabbitmq/values.yaml index 04e1eb39ff..36b6868033 100644 --- a/upstreamed/rabbitmq/values.yaml +++ b/upstreamed/rabbitmq/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/rabbitmq - tag: 3.7.8-debian-9 + tag: 3.7.8 ## set to true if you would like to see extra information on logs ## it turns BASH and NAMI debugging in minideb diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 56e72e5c52..9822d927f5 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.0 +version: 4.2.1 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/values-production.yaml b/upstreamed/redis/values-production.yaml index 4863d65f10..6345f3eedf 100644 --- a/upstreamed/redis/values-production.yaml +++ b/upstreamed/redis/values-production.yaml @@ -13,7 +13,7 @@ image: ## Bitnami Redis image tag ## ref: https://github.com/bitnami/bitnami-docker-redis#supported-tags-and-respective-dockerfile-links ## - tag: 4.0.11-debian-9 + tag: 4.0.11 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index 557d77695c..2b092e5f94 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -13,7 +13,7 @@ image: ## Bitnami Redis image tag ## ref: https://github.com/bitnami/bitnami-docker-redis#supported-tags-and-respective-dockerfile-links ## - tag: 4.0.11-debian-9 + tag: 4.0.11 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/redmine/Chart.yaml b/upstreamed/redmine/Chart.yaml index b2ad6cf061..6c83d11d64 100644 --- a/upstreamed/redmine/Chart.yaml +++ b/upstreamed/redmine/Chart.yaml @@ -1,5 +1,5 @@ name: redmine -version: 5.2.0 +version: 5.2.1 appVersion: 3.4.6 description: A flexible project management web application. keywords: diff --git a/upstreamed/redmine/values.yaml b/upstreamed/redmine/values.yaml index 4a69cdfb42..dc375723c6 100644 --- a/upstreamed/redmine/values.yaml +++ b/upstreamed/redmine/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/redmine - tag: 3.4.6-debian-9 + tag: 3.4.6 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/suitecrm/Chart.yaml b/upstreamed/suitecrm/Chart.yaml index b017fd3317..f2ca7985ad 100644 --- a/upstreamed/suitecrm/Chart.yaml +++ b/upstreamed/suitecrm/Chart.yaml @@ -1,5 +1,5 @@ name: suitecrm -version: 4.0.0 +version: 4.0.1 appVersion: 7.10.9 description: SuiteCRM is a completely open source enterprise-grade Customer Relationship Management (CRM) application. SuiteCRM is a software fork of the popular customer relationship management (CRM) system SugarCRM. keywords: diff --git a/upstreamed/suitecrm/values.yaml b/upstreamed/suitecrm/values.yaml index dbfcb27bff..86abe1b2a9 100644 --- a/upstreamed/suitecrm/values.yaml +++ b/upstreamed/suitecrm/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/suitecrm - tag: 7.10.9-debian-9 + tag: 7.10.9 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/testlink/Chart.yaml b/upstreamed/testlink/Chart.yaml index 6da6397da4..bcdcda6a18 100644 --- a/upstreamed/testlink/Chart.yaml +++ b/upstreamed/testlink/Chart.yaml @@ -1,5 +1,5 @@ name: testlink -version: 3.1.0 +version: 3.1.1 appVersion: 1.9.17 description: Web-based test management system that facilitates software quality assurance. icon: https://bitnami.com/assets/stacks/testlink/img/testlink-stack-220x234.png diff --git a/upstreamed/testlink/values.yaml b/upstreamed/testlink/values.yaml index 44050daa3f..139c5b668f 100644 --- a/upstreamed/testlink/values.yaml +++ b/upstreamed/testlink/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/testlink - tag: 1.9.17-debian-9 + tag: 1.9.17 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/wordpress/Chart.yaml b/upstreamed/wordpress/Chart.yaml index 62380a82b9..3bdccff56c 100644 --- a/upstreamed/wordpress/Chart.yaml +++ b/upstreamed/wordpress/Chart.yaml @@ -1,5 +1,5 @@ name: wordpress -version: 3.2.0 +version: 3.2.1 appVersion: 4.9.8 description: Web publishing platform for building blogs and websites. icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png diff --git a/upstreamed/wordpress/values-production.yaml b/upstreamed/wordpress/values-production.yaml index c7a0fcd045..352c587e1f 100644 --- a/upstreamed/wordpress/values-production.yaml +++ b/upstreamed/wordpress/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/wordpress - tag: 4.9.8-debian-9 + tag: 4.9.8 pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. diff --git a/upstreamed/wordpress/values.yaml b/upstreamed/wordpress/values.yaml index bfa1173e8c..0cd93d1abf 100644 --- a/upstreamed/wordpress/values.yaml +++ b/upstreamed/wordpress/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/wordpress - tag: 4.9.8-debian-9 + tag: 4.9.8 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From d54309020334c574cc642ddf00e757c436fbd96a Mon Sep 17 00:00:00 2001 From: juan131 Date: Thu, 18 Oct 2018 11:15:02 +0200 Subject: [PATCH 033/153] [bitnami/consul] Remove duplicates on Chart.yaml Signed-off-by: juan131 --- bitnami/consul/Chart.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index fd3def30e0..ce0d8e1ad7 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -1,8 +1,5 @@ name: consul -home: https://www.consul.io/ -sources: -- https://github.com/bitnami/consul -version: 2.4.0 +version: 2.4.1 appVersion: 1.3.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and From a6c90f44325efd41dae9e27c3ee13777ae008af9 Mon Sep 17 00:00:00 2001 From: Jota Date: Thu, 18 Oct 2018 12:04:37 +0200 Subject: [PATCH 034/153] Modify some comments --- bitnami/consul/values-production.yaml | 2 +- bitnami/consul/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index 3e791c8c43..0d296b1a41 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -4,7 +4,7 @@ # global: # imageRegistry: -## Bitnami Consul image version +## Bitnami HashiCorp Consul image version ## ref: https://hub.docker.com/r/bitnami/consul/tags/ ## image: diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 34a760f8db..ccd12bc646 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -4,7 +4,7 @@ # global: # imageRegistry: -## Bitnami Consul image version +## Bitnami HashiCorp Consul image version ## ref: https://hub.docker.com/r/bitnami/consul/tags/ ## image: From 464d88eac7a516093a307c5cf11fe334bd994f8c Mon Sep 17 00:00:00 2001 From: Jota Date: Thu, 18 Oct 2018 16:00:31 +0200 Subject: [PATCH 035/153] Rename Consul in the main README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9740d78f7..3f7b5b52ca 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ $ helm search bitnami ## Bitnami charts - [Apache](https://github.com/bitnami/charts/tree/master/bitnami/apache) -- [Consul](https://github.com/bitnami/charts/tree/master/bitnami/consul) +- [HashiCorp Consul](https://github.com/bitnami/charts/tree/master/bitnami/consul) - [Elasticsearch](https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch) - [etcd](https://github.com/bitnami/charts/tree/master/bitnami/etcd) - [Jenkins](https://github.com/bitnami/charts/tree/master/bitnami/jenkins) From 913fd4642686a30acdb2168f7c95103b34aa337f Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Thu, 18 Oct 2018 15:50:48 +0000 Subject: [PATCH 036/153] kubeapps: bump chart version to 0.8.0 --- bitnami/kubeapps/Chart.yaml | 4 ++-- bitnami/kubeapps/values.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 35d07c8537..d271af8814 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: kubeapps -version: 0.7.0 -appVersion: v1.0.0-beta.2 +version: 0.8.0 +appVersion: v1.0.0-beta.3 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png keywords: diff --git a/bitnami/kubeapps/values.yaml b/bitnami/kubeapps/values.yaml index 9aff7fa038..2ef044dcea 100644 --- a/bitnami/kubeapps/values.yaml +++ b/bitnami/kubeapps/values.yaml @@ -60,7 +60,7 @@ apprepository: image: registry: docker.io repository: kubeapps/apprepository-controller - tag: v1.0.0-beta.2 + tag: v1.0.0-beta.3 # Image used to perform chart repository syncs syncImage: registry: docker.io @@ -106,7 +106,7 @@ tillerProxy: image: registry: docker.io repository: kubeapps/tiller-proxy - tag: v1.0.0-beta.2 + tag: v1.0.0-beta.3 service: port: 8080 host: tiller-deploy.kube-system:44134 @@ -168,7 +168,7 @@ dashboard: image: registry: docker.io repository: kubeapps/dashboard - tag: v1.0.0-beta.2 + tag: v1.0.0-beta.3 service: port: 8080 livenessProbe: From 70414e121bc1bb1fe9d48e200a1f51dfd8539a94 Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Fri, 19 Oct 2018 08:37:04 +0000 Subject: [PATCH 037/153] kubeapps: bump chart version to 0.9.0 --- bitnami/kubeapps/Chart.yaml | 2 +- bitnami/kubeapps/README.md | 15 ++++++- bitnami/kubeapps/templates/ingress.yaml | 49 ++++++++++----------- bitnami/kubeapps/templates/tls-secrets.yaml | 17 +++++++ bitnami/kubeapps/values.yaml | 46 ++++++++++++++++--- 5 files changed, 94 insertions(+), 35 deletions(-) create mode 100644 bitnami/kubeapps/templates/tls-secrets.yaml diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index d271af8814..9f74f12e03 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.8.0 +version: 0.9.0 appVersion: v1.0.0-beta.3 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/README.md b/bitnami/kubeapps/README.md index 7bd40ec405..2656378e98 100644 --- a/bitnami/kubeapps/README.md +++ b/bitnami/kubeapps/README.md @@ -171,7 +171,7 @@ To enable ingress integration, please set `ingress.enabled` to `true` ##### Hosts -Most likely you will only want to have one hostname that maps to this Kubeapps installation, however, it is possible to have more than one host. To facilitate this, the `ingress.hosts` object is an array. +Most likely you will only want to have one hostname that maps to this Kubeapps installation, however, it is possible to have more than one host. To facilitate this, the `ingress.hosts` object is an array. ##### Annotations @@ -179,7 +179,18 @@ For annotations, please see [this document](https://github.com/kubernetes/ingres ##### TLS -TLS can be configured using the `ingress.tls` object in the same format that the Kubernetes Ingress requests. Please see [this example](https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tls) for more information. +TLS can be configured using setting the `ingress.hosts[].tls` boolean of the corresponding hostname to true, then you can choose the TLS secret name setting `ingress.hosts[].tlsSecret`. Please see [this example](https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tls) for more information. + +You can provide your own certificates using the `ingress.secrets` object. If your cluster has a [cert-manager](https://github.com/jetstack/cert-manager) add-on to automate the management and issuance of TLS certificates, set `ingress.hosts[].certManager` boolean to true to enable the corresponding annotations for cert-manager as shown in the example below: + +```console +helm install --name kubeapps --namespace kubeapps bitnami/kubeapps \ + --set ingress.enabled=true \ + --set ingress.certManager=true \ + --set ingress.hosts[0].name=kubeapps.custom.domain \ + --set ingress.hosts[0].tls=true \ + --set ingress.hosts[0].tlsSecret=kubeapps-tls +``` ## Troubleshooting diff --git a/bitnami/kubeapps/templates/ingress.yaml b/bitnami/kubeapps/templates/ingress.yaml index b78a7ad584..3d184924be 100644 --- a/bitnami/kubeapps/templates/ingress.yaml +++ b/bitnami/kubeapps/templates/ingress.yaml @@ -1,38 +1,37 @@ {{- if .Values.ingress.enabled -}} -{{- $fullName := include "kubeapps.fullname" . -}} -{{- $ingressPath := .Values.ingress.path -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: - name: {{ $fullName }} + name: {{ template "kubeapps.fullname" . }} labels: - app: {{ include "kubeapps.name" . }} - chart: {{ include "kubeapps.chart" . }} + app: {{ template "kubeapps.name" . }} + chart: {{ template "kubeapps.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} -{{- with .Values.ingress.annotations }} annotations: -{{ toYaml . | indent 4 }} -{{- end }} + {{- if .Values.ingress.certManager }} + kubernetes.io/tls-acme: "true" + {{- end }} + {{- range $key, $value := .Values.ingress.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: -{{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} -{{- end }} rules: {{- range .Values.ingress.hosts }} - - host: {{ . | quote }} - http: - paths: - - path: {{ $ingressPath }} - backend: - serviceName: {{ $fullName }} - servicePort: http + - host: {{ .name }} + http: + paths: + - path: {{ default "/" .path }} + backend: + serviceName: {{ template "kubeapps.fullname" $ }} + servicePort: http + {{- end }} + tls: + {{- range .Values.ingress.hosts }} + {{- if .tls }} + - hosts: + - {{ .name }} + secretName: {{ .tlsSecret }} + {{- end }} {{- end }} {{- end }} diff --git a/bitnami/kubeapps/templates/tls-secrets.yaml b/bitnami/kubeapps/templates/tls-secrets.yaml new file mode 100644 index 0000000000..b7d959d28b --- /dev/null +++ b/bitnami/kubeapps/templates/tls-secrets.yaml @@ -0,0 +1,17 @@ +{{- if .Values.ingress.enabled }} +{{- range .Values.ingress.secrets }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ .name }} + labels: + app: {{ template "kubeapps.name" $ }} + chart: {{ template "kubeapps.chart" $ }} + release: {{ $.Release.Name }} + heritage: {{ $.Release.Service }} +type: kubernetes.io/tls +data: + tls.crt: {{ .certificate | b64enc }} + tls.key: {{ .key | b64enc }} +{{- end }} +{{- end }} diff --git a/bitnami/kubeapps/values.yaml b/bitnami/kubeapps/values.yaml index 2ef044dcea..e4c03f6ad9 100644 --- a/bitnami/kubeapps/values.yaml +++ b/bitnami/kubeapps/values.yaml @@ -6,16 +6,48 @@ # The frontend service is the main reverse proxy used to access the Kubeapps UI # To expose Kubeapps externally either configure the ingress object below or # set frontend.service.type=LoadBalancer in the frontend configuration. +# ref: http://kubernetes.io/docs/user-guide/ingress/ +# ingress: + # Set to true to enable ingress record generation enabled: false - annotations: {} - path: / + + # Set this to true in order to add the corresponding annotations for cert-manager + certManager: false + + # Ingress annotations done as key:value pairs + # For a full list of possible ingress annotations, please see + # ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md + # + # If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set + annotations: + # kubernetes.io/ingress.class: nginx + + # The list of hostnames to be covered with this ingress record. + # Most likely this will be just one host, but in the event more hosts are needed, this is an array hosts: - - kubeapps.local - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local + - name: kubeapps.local + path: / + + # Set this to true in order to enable TLS on the ingress record + tls: false + + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS + tlsSecret: kubeapps.local-tls + + secrets: + # If you're providing your own certificates, please use this to add the certificates as secrets + # key and certificate should start with -----BEGIN CERTIFICATE----- or + # -----BEGIN RSA PRIVATE KEY----- + # + # name should line up with a tlsSecret set further up + # If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set + # + # It is also possible to create and manage the certificates outside of this helm chart + # Please see README.md for more information + # - name: kubeapps.local-tls + # key: + # certificate: frontend: replicaCount: 2 From b9f80d8185a9e740a7b1a018d7829dffe78b0ead Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Fri, 19 Oct 2018 10:37:16 +0000 Subject: [PATCH 038/153] Synchronize upstreamed folder to 100fc4b --- upstreamed/drupal/Chart.yaml | 4 ++-- upstreamed/drupal/requirements.lock | 4 ++-- upstreamed/drupal/values.yaml | 2 +- upstreamed/ghost/Chart.yaml | 4 ++-- upstreamed/ghost/requirements.lock | 4 ++-- upstreamed/ghost/values.yaml | 2 +- upstreamed/parse/Chart.yaml | 4 ++-- upstreamed/parse/values.yaml | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index 0387c1f87d..4d653fc003 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,6 +1,6 @@ name: drupal -version: 2.2.1 -appVersion: 8.6.1 +version: 2.2.2 +appVersion: 8.6.2 description: One of the most versatile open source content management systems. keywords: - drupal diff --git a/upstreamed/drupal/requirements.lock b/upstreamed/drupal/requirements.lock index a8fe6450cb..662b6d330c 100644 --- a/upstreamed/drupal/requirements.lock +++ b/upstreamed/drupal/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.1 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:47:39.060312+02:00 +generated: 2018-10-18T13:44:56.891341815Z diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index 9e7ad635d6..54d2900610 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/drupal - tag: 8.6.1 + tag: 8.6.2 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 31a040ae78..feb8605588 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.3.3 -appVersion: 2.2.3 +version: 5.3.4 +appVersion: 2.2.4 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/requirements.lock b/upstreamed/ghost/requirements.lock index 5dfebd4675..d802baa56b 100644 --- a/upstreamed/ghost/requirements.lock +++ b/upstreamed/ghost/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.1 digest: sha256:b3053e73f5c114f55a794eccea2606cc9fe8a669eaab1716246994bbdd37a473 -generated: 2018-10-16T08:47:50.749844+02:00 +generated: 2018-10-18T15:44:54.770529237Z diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 56db5e19e1..bf8ae7e5b3 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.2.3 + tag: 2.2.4 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/parse/Chart.yaml b/upstreamed/parse/Chart.yaml index a02e3611fd..33bf46084d 100644 --- a/upstreamed/parse/Chart.yaml +++ b/upstreamed/parse/Chart.yaml @@ -1,6 +1,6 @@ name: parse -version: 3.1.1 -appVersion: 3.0.0 +version: 3.1.2 +appVersion: 3.1.0 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: - parse diff --git a/upstreamed/parse/values.yaml b/upstreamed/parse/values.yaml index 700ed42534..dcbffc36ce 100644 --- a/upstreamed/parse/values.yaml +++ b/upstreamed/parse/values.yaml @@ -21,7 +21,7 @@ server: image: registry: docker.io repository: bitnami/parse - tag: 3.0.0 + tag: 3.1.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 7abdec472b8438f048fed1ed2bc75ca70ab1c0f4 Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Mon, 22 Oct 2018 18:54:19 +0000 Subject: [PATCH 039/153] kubeapps: bump chart version to 0.9.1 --- bitnami/kubeapps/Chart.yaml | 2 +- bitnami/kubeapps/values.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 9f74f12e03..87abb1d73a 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.0 +version: 0.9.1 appVersion: v1.0.0-beta.3 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/values.yaml b/bitnami/kubeapps/values.yaml index e4c03f6ad9..a1a2b22763 100644 --- a/bitnami/kubeapps/values.yaml +++ b/bitnami/kubeapps/values.yaml @@ -95,8 +95,8 @@ apprepository: tag: v1.0.0-beta.3 # Image used to perform chart repository syncs syncImage: - registry: docker.io - repository: quay.io/helmpack/chart-repo + registry: quay.io + repository: helmpack/chart-repo tag: v1.0.0 initialRepos: - name: stable @@ -163,8 +163,8 @@ tillerProxy: chartsvc: replicaCount: 2 image: - registry: docker.io - repository: quay.io/helmpack/chartsvc + registry: quay.io + repository: helmpack/chartsvc tag: v1.0.0 service: port: 8080 From fbb25321660f4a7cd89e5fb7bbe1f20abf433530 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Mon, 22 Oct 2018 21:16:52 +0000 Subject: [PATCH 040/153] mysql: update to `5.7.24` Signed-off-by: Bitnami Containers --- bitnami/mysql/values-production.yaml | 2 +- bitnami/mysql/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/mysql/values-production.yaml b/bitnami/mysql/values-production.yaml index ab56bff972..66486b23cf 100644 --- a/bitnami/mysql/values-production.yaml +++ b/bitnami/mysql/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mysql - tag: 5.7.23 + tag: 5.7.24 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/mysql/values.yaml b/bitnami/mysql/values.yaml index 565f3c083e..b32d639f35 100644 --- a/bitnami/mysql/values.yaml +++ b/bitnami/mysql/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mysql - tag: 5.7.23 + tag: 5.7.24 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 972ea393825d9343777d3cb2a526eea62582f432 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Mon, 22 Oct 2018 21:16:53 +0000 Subject: [PATCH 041/153] mysql: bump chart appVersion to `5.7.24` Signed-off-by: Bitnami Containers --- bitnami/mysql/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/mysql/Chart.yaml b/bitnami/mysql/Chart.yaml index 20a8250325..d9c272f1fe 100644 --- a/bitnami/mysql/Chart.yaml +++ b/bitnami/mysql/Chart.yaml @@ -1,6 +1,6 @@ name: mysql version: 4.1.1 -appVersion: 5.7.23 +appVersion: 5.7.24 description: Chart to create a Highly available MySQL cluster keywords: - mysql From ab72ac056e175ab6b53f8bba2c2974565454a4c1 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Mon, 22 Oct 2018 21:16:53 +0000 Subject: [PATCH 042/153] mysql: bump chart version to `4.1.2` Signed-off-by: Bitnami Containers --- bitnami/mysql/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/mysql/Chart.yaml b/bitnami/mysql/Chart.yaml index d9c272f1fe..cfe075ad76 100644 --- a/bitnami/mysql/Chart.yaml +++ b/bitnami/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 4.1.1 +version: 4.1.2 appVersion: 5.7.24 description: Chart to create a Highly available MySQL cluster keywords: From bc5bbe0465ecdad1a10e375ad8374520e0bc91a7 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Tue, 23 Oct 2018 10:37:16 +0000 Subject: [PATCH 043/153] Synchronize upstreamed folder to 25512b65 --- upstreamed/ghost/Chart.yaml | 4 ++-- upstreamed/ghost/values.yaml | 2 +- upstreamed/nats/Chart.yaml | 2 +- upstreamed/nats/templates/configmap.yaml | 2 +- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/templates/metrics-svc.yaml | 2 ++ upstreamed/redis/templates/redis-slave-svc.yaml | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index feb8605588..10fff962f5 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.3.4 -appVersion: 2.2.4 +version: 5.3.5 +appVersion: 2.3.0 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index bf8ae7e5b3..2cf1f7f377 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.2.4 + tag: 2.3.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/nats/Chart.yaml b/upstreamed/nats/Chart.yaml index 22696b427f..1abbb2ddab 100644 --- a/upstreamed/nats/Chart.yaml +++ b/upstreamed/nats/Chart.yaml @@ -1,5 +1,5 @@ name: nats -version: 1.1.1 +version: 1.1.2 appVersion: 1.3.0 description: An open-source, cloud-native messaging system keywords: diff --git a/upstreamed/nats/templates/configmap.yaml b/upstreamed/nats/templates/configmap.yaml index 2391d68ee6..a5304f8283 100644 --- a/upstreamed/nats/templates/configmap.yaml +++ b/upstreamed/nats/templates/configmap.yaml @@ -1,4 +1,4 @@ -{{- $authPwd := default (randAlphaNum 10) .Values.auth.password -}} +{{- $authPwd := default (include "nats.randomPassword" .) .Values.auth.password -}} {{- $clusterAuthPwd := default (include "nats.randomPassword" .) .Values.clusterAuth.password -}} apiVersion: v1 kind: ConfigMap diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 9822d927f5..0547a9bcc9 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.1 +version: 4.2.2 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/templates/metrics-svc.yaml b/upstreamed/redis/templates/metrics-svc.yaml index 269f1fc60e..a2105152ca 100644 --- a/upstreamed/redis/templates/metrics-svc.yaml +++ b/upstreamed/redis/templates/metrics-svc.yaml @@ -8,8 +8,10 @@ metadata: chart: {{ template "redis.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" +{{- if .Values.metrics.service.annotations }} annotations: {{ toYaml .Values.metrics.service.annotations | indent 4 }} +{{- end }} spec: type: {{ .Values.metrics.service.type }} {{ if eq .Values.metrics.service.type "LoadBalancer" -}} {{ if .Values.metrics.service.loadBalancerIP -}} diff --git a/upstreamed/redis/templates/redis-slave-svc.yaml b/upstreamed/redis/templates/redis-slave-svc.yaml index c2dd4fa340..f2de1b9b8d 100644 --- a/upstreamed/redis/templates/redis-slave-svc.yaml +++ b/upstreamed/redis/templates/redis-slave-svc.yaml @@ -8,8 +8,8 @@ metadata: chart: {{ template "redis.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" - annotations: {{- if .Values.slave.service.annotations }} + annotations: {{ toYaml .Values.slave.service.annotations | indent 4 }} {{- end }} spec: From e136da10c78f5fc787a8975c39efb88802fa710f Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Tue, 23 Oct 2018 16:01:58 +0000 Subject: [PATCH 044/153] kubeapps: bump chart version to 0.9.2 --- bitnami/kubeapps/Chart.yaml | 2 +- bitnami/kubeapps/templates/NOTES.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 87abb1d73a..d2f6622713 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.1 +version: 0.9.2 appVersion: v1.0.0-beta.3 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/templates/NOTES.txt b/bitnami/kubeapps/templates/NOTES.txt index e3ca5b4339..9cdd3f4bef 100644 --- a/bitnami/kubeapps/templates/NOTES.txt +++ b/bitnami/kubeapps/templates/NOTES.txt @@ -14,11 +14,11 @@ To access Kubeapps from outside your K8s cluster, follow the steps below: 1. Get the Kubeapps URL and associate Kubeapps hostname to your cluster external IP: -{{- range .Values.ingress.hosts }} export CLUSTER_IP=$(minikube ip) # On Minikube. Use: `kubectl cluster-info` on others K8s clusters - echo "Kubeapps URL: http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}" - echo "$CLUSTER_IP {{ . }}" | sudo tee -a /etc/hosts -{{- end }} + {{- range .Values.ingress.hosts }} + echo "Kubeapps URL: http{{ if .tls }}s{{ end }}://{{ .name }}{{ default "/" .path }}" + echo "$CLUSTER_IP {{ .name }}" | sudo tee -a /etc/hosts + {{- end }} {{- else }} From 6a89554bc8a36a6f39a6e4a087d5c04e189c73cd Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 23 Oct 2018 16:49:25 +0000 Subject: [PATCH 045/153] apache: update to `2.4.37` Signed-off-by: Bitnami Containers --- bitnami/apache/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/apache/values.yaml b/bitnami/apache/values.yaml index aea62e7243..d6073c6106 100644 --- a/bitnami/apache/values.yaml +++ b/bitnami/apache/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/apache - tag: 2.4.35 + tag: 2.4.37 ## Specify a imagePullPolicy ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## From affe81a4695f2484b3da03ad6f8e98be3363c194 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 23 Oct 2018 16:49:25 +0000 Subject: [PATCH 046/153] apache: bump chart appVersion to `2.4.37` Signed-off-by: Bitnami Containers --- bitnami/apache/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/apache/Chart.yaml b/bitnami/apache/Chart.yaml index d410b4164f..fe0871d4d5 100644 --- a/bitnami/apache/Chart.yaml +++ b/bitnami/apache/Chart.yaml @@ -1,6 +1,6 @@ name: apache version: 2.1.1 -appVersion: 2.4.35 +appVersion: 2.4.37 description: Chart for Apache HTTP Server keywords: - apache From f5ec4d43f11616fac913ee8cb04d9a205744e549 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 23 Oct 2018 16:49:25 +0000 Subject: [PATCH 047/153] apache: bump chart version to `2.1.2` Signed-off-by: Bitnami Containers --- bitnami/apache/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/apache/Chart.yaml b/bitnami/apache/Chart.yaml index fe0871d4d5..baa24e218d 100644 --- a/bitnami/apache/Chart.yaml +++ b/bitnami/apache/Chart.yaml @@ -1,5 +1,5 @@ name: apache -version: 2.1.1 +version: 2.1.2 appVersion: 2.4.37 description: Chart for Apache HTTP Server keywords: From 8dfd7bed8a5b9b267c99805a81fca03ebeb9bc58 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Tue, 23 Oct 2018 20:40:01 +0000 Subject: [PATCH 048/153] Replace alpine git image by bitnami git --- bitnami/mean/Chart.yaml | 2 +- bitnami/mean/README.md | 12 ++++++------ bitnami/mean/templates/_helpers.tpl | 23 +++++++++++++++++++++++ bitnami/mean/templates/deployment.yaml | 4 ++-- bitnami/mean/values.yaml | 4 ++-- bitnami/node/Chart.yaml | 2 +- bitnami/node/README.md | 13 ++++++------- bitnami/node/templates/_helpers.tpl | 23 +++++++++++++++++++++++ bitnami/node/templates/deployment.yaml | 4 ++-- bitnami/node/values.yaml | 4 ++-- 10 files changed, 68 insertions(+), 23 deletions(-) diff --git a/bitnami/mean/Chart.yaml b/bitnami/mean/Chart.yaml index 65ff669772..184f32c7b8 100644 --- a/bitnami/mean/Chart.yaml +++ b/bitnami/mean/Chart.yaml @@ -1,5 +1,5 @@ name: mean -version: 4.2.0 +version: 4.2.1 appVersion: 3.6.4 description: MEAN is a free and open-source JavaScript software stack for building dynamic web sites and web applications. The MEAN stack is MongoDB, Express.js, Angular, and Node.js. Because all components of the MEAN stack support programs written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. keywords: diff --git a/bitnami/mean/README.md b/bitnami/mean/README.md index e891c34838..b46ed2852e 100644 --- a/bitnami/mean/README.md +++ b/bitnami/mean/README.md @@ -53,14 +53,14 @@ The following table lists the configurable parameters of the MEAN chart and thei |-----------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| | `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | NodeJS image registry | `docker.io` | -| `image.repository` | NodeJS Image name | `bitnami/node` | -| `image.tag` | NodeJS Image tag | `{VERSION}` | +| `image.repository` | NodeJS image name | `bitnami/node` | +| `image.tag` | NodeJS image tag | `{VERSION}` | | `image.pullPolicy` | NodeJS image pull policy | `IfNotPresent` | | `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `gitImage.registry` | Git image registry | `docker.io` | -| `gitImage.repository` | Git Image name | `alpine/git` | -| `gitImage.tag` | Git Image tag | `latest` | -| `gitImage.pullPolicy` | Git image pull policy | IfNotPresent` | +| `git.registry` | Git image registry | `docker.io` | +| `git.repository` | Git image name | `bitnami/git` | +| `git.tag` | Git image tag | `latest` | +| `git.pullPolicy` | Git image pull policy | IfNotPresent` | | `repository` | Repo of the application | `https://github.com/bitnami/sample-mean.git` | | `revision` | Revision to checkout | `master` | | `replicas` | Number of replicas for the application | `1` | diff --git a/bitnami/mean/templates/_helpers.tpl b/bitnami/mean/templates/_helpers.tpl index 5bd43abb5b..464a3d75e3 100644 --- a/bitnami/mean/templates/_helpers.tpl +++ b/bitnami/mean/templates/_helpers.tpl @@ -63,3 +63,26 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper Git image name +*/}} +{{- define "git.image" -}} +{{- $registryName := .Values.git.registry -}} +{{- $repositoryName := .Values.git.repository -}} +{{- $tag := .Values.git.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/bitnami/mean/templates/deployment.yaml b/bitnami/mean/templates/deployment.yaml index 9475cb40d6..811680ddb4 100644 --- a/bitnami/mean/templates/deployment.yaml +++ b/bitnami/mean/templates/deployment.yaml @@ -28,8 +28,8 @@ spec: {{- end }} initContainers: - name: git-clone-repository - image: "{{ .Values.gitImage.registry }}/{{ .Values.gitImage.repository }}:{{ .Values.gitImage.tag }}" - imagePullPolicy: {{ .Values.gitImage.pullPolicy | quote }} + image: "{{ template "git.image" . }}" + imagePullPolicy: {{ .Values.git.pullPolicy | quote }} command: [ '/bin/sh', '-c' , 'git clone {{ .Values.repository }} /app && cd /app && git checkout {{ .Values.revision }}'] volumeMounts: - name: app diff --git a/bitnami/mean/values.yaml b/bitnami/mean/values.yaml index 102e709d22..1feb04a67c 100644 --- a/bitnami/mean/values.yaml +++ b/bitnami/mean/values.yaml @@ -23,9 +23,9 @@ image: # pullSecrets: # - myRegistrKeySecretName -gitImage: +git: registry: docker.io - repository: alpine/git + repository: bitnami/git tag: latest pullPolicy: IfNotPresent diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index b531de3c02..32fcf8d330 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,5 +1,5 @@ name: node -version: 6.2.0 +version: 6.2.1 appVersion: 10.7.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: diff --git a/bitnami/node/README.md b/bitnami/node/README.md index 3cd42ab117..e243eb871a 100644 --- a/bitnami/node/README.md +++ b/bitnami/node/README.md @@ -53,15 +53,14 @@ The following table lists the configurable parameters of the Node chart and thei |-----------------------------------------|-----------------------------------------------------------|-----------------------------------------------------------| | `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | NodeJS image registry | `docker.io` | -| `image.repository` | NodeJS Image name | `bitnami/node` | -| `image.tag` | NodeJS Image tag | `{VERSION}` | +| `image.repository` | NodeJS image name | `bitnami/node` | +| `image.tag` | NodeJS image tag | `{VERSION}` | | `image.pullPolicy` | NodeJS image pull policy | `IfNotPresent` | | `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `gitImage.registry` | Git image registry | `docker.io` | -| `gitImage.repository` | Git Image name | `alpine/git` | -| `gitImage.tag` | Git Image tag | `latest` | -| `gitImage.pullPolicy` | Git image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `gitImage` | Image used for initContainers | `alpine/git` | +| `git.registry` | Git image registry | `docker.io` | +| `git.repository` | Git image name | `bitnami/git` | +| `git.tag` | Git image tag | `latest` | +| `git.pullPolicy` | Git image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | | `repository` | Repo of the application | `https://github.com/bitnami/sample-mean.git` | | `revision` | Revision to checkout | `master` | | `replicas` | Number of replicas for the application | `1` | diff --git a/bitnami/node/templates/_helpers.tpl b/bitnami/node/templates/_helpers.tpl index 7009fe0917..15927885fd 100644 --- a/bitnami/node/templates/_helpers.tpl +++ b/bitnami/node/templates/_helpers.tpl @@ -63,3 +63,26 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper git image name +*/}} +{{- define "git.image" -}} +{{- $registryName := .Values.git.registry -}} +{{- $repositoryName := .Values.git.repository -}} +{{- $tag := .Values.git.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} diff --git a/bitnami/node/templates/deployment.yaml b/bitnami/node/templates/deployment.yaml index a3d95404cd..02d619bf67 100644 --- a/bitnami/node/templates/deployment.yaml +++ b/bitnami/node/templates/deployment.yaml @@ -29,8 +29,8 @@ spec: {{- end }} initContainers: - name: git-clone-repository - image: "{{ .Values.gitImage.registry }}/{{ .Values.gitImage.repository }}:{{ .Values.gitImage.tag }}" - imagePullPolicy: {{ .Values.gitImage.pullPolicy | quote }} + image: "{{ template "git.image" . }}" + imagePullPolicy: {{ .Values.git.pullPolicy | quote }} command: [ '/bin/sh', '-c' , 'git clone {{ .Values.repository }} /app && cd /app && git checkout {{ .Values.revision }}'] volumeMounts: - name: app diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index 2b155e946c..493b6c10d3 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -23,9 +23,9 @@ image: # pullSecrets: # - myRegistrKeySecretName -gitImage: +git: registry: docker.io - repository: alpine/git + repository: bitnami/git tag: latest pullPolicy: IfNotPresent From 5e80f54d4e0dc48d2e88e4d0edfc7a6e63af5fbb Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Wed, 24 Oct 2018 07:58:59 +0000 Subject: [PATCH 049/153] Remove PostgreSQL chart from Bitnami --- README.md | 2 +- bitnami/postgresql/.helmignore | 1 - bitnami/postgresql/Chart.yaml | 18 -- bitnami/postgresql/README.md | 156 ----------------- bitnami/postgresql/files/README.md | 1 - .../docker-entrypoint-initdb.d/README.md | 3 - bitnami/postgresql/templates/NOTES.txt | 53 ------ bitnami/postgresql/templates/_helpers.tpl | 68 -------- bitnami/postgresql/templates/configmap.yaml | 13 -- .../templates/initialization-configmap.yaml | 11 -- .../templates/metrics-deployment.yaml | 75 -------- bitnami/postgresql/templates/metrics-svc.yaml | 27 --- bitnami/postgresql/templates/secrets.yaml | 23 --- .../templates/statefulset-slaves.yaml | 152 ----------------- bitnami/postgresql/templates/statefulset.yaml | 156 ----------------- .../postgresql/templates/svc-headless.yaml | 19 --- bitnami/postgresql/templates/svc.yaml | 19 --- bitnami/postgresql/values-production.yaml | 161 ------------------ bitnami/postgresql/values.yaml | 161 ------------------ 19 files changed, 1 insertion(+), 1118 deletions(-) delete mode 100644 bitnami/postgresql/.helmignore delete mode 100644 bitnami/postgresql/Chart.yaml delete mode 100644 bitnami/postgresql/README.md delete mode 100644 bitnami/postgresql/files/README.md delete mode 100644 bitnami/postgresql/files/docker-entrypoint-initdb.d/README.md delete mode 100644 bitnami/postgresql/templates/NOTES.txt delete mode 100644 bitnami/postgresql/templates/_helpers.tpl delete mode 100644 bitnami/postgresql/templates/configmap.yaml delete mode 100644 bitnami/postgresql/templates/initialization-configmap.yaml delete mode 100644 bitnami/postgresql/templates/metrics-deployment.yaml delete mode 100644 bitnami/postgresql/templates/metrics-svc.yaml delete mode 100644 bitnami/postgresql/templates/secrets.yaml delete mode 100644 bitnami/postgresql/templates/statefulset-slaves.yaml delete mode 100644 bitnami/postgresql/templates/statefulset.yaml delete mode 100644 bitnami/postgresql/templates/svc-headless.yaml delete mode 100644 bitnami/postgresql/templates/svc.yaml delete mode 100644 bitnami/postgresql/values-production.yaml delete mode 100644 bitnami/postgresql/values.yaml diff --git a/README.md b/README.md index 3f7b5b52ca..b08a939b57 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ $ helm search bitnami - [Parse](https://github.com/helm/charts/tree/master/stable/parse) - [Phabricator](https://github.com/helm/charts/tree/master/stable/phabricator) - [phpBB](https://github.com/helm/charts/tree/master/stable/phpbb) +- [PostgreSQL](https://github.com/helm/charts/tree/master/stable/postgresql) - [PrestaShop](https://github.com/helm/charts/tree/master/stable/prestashop) - [RabbitMQ](https://github.com/helm/charts/tree/master/stable/rabbitmq) - [Redis](https://github.com/helm/charts/tree/master/stable/redis) @@ -51,7 +52,6 @@ $ helm search bitnami - [MySQL](https://github.com/bitnami/charts/tree/master/bitnami/mysql) - [nginx](https://github.com/bitnami/charts/tree/master/bitnami/nginx) - [NodeJS](https://github.com/bitnami/charts/tree/master/bitnami/node) -- [PostgreSQL](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) - [TensorFlow Inception](https://github.com/bitnami/charts/tree/master/bitnami/tensorflow-inception) - [Tomcat](https://github.com/bitnami/charts/tree/master/bitnami/tomcat) - [WildFly](https://github.com/bitnami/charts/tree/master/bitnami/wildfly) diff --git a/bitnami/postgresql/.helmignore b/bitnami/postgresql/.helmignore deleted file mode 100644 index 6b8710a711..0000000000 --- a/bitnami/postgresql/.helmignore +++ /dev/null @@ -1 +0,0 @@ -.git diff --git a/bitnami/postgresql/Chart.yaml b/bitnami/postgresql/Chart.yaml deleted file mode 100644 index 0a4da5f4c6..0000000000 --- a/bitnami/postgresql/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: postgresql -version: 3.1.1 -appVersion: 10.5.0 -description: Chart for PostgreSQL -keywords: -- postgresql -- database -- sql -- replication -- cluster -home: http://www.postgresql.org -sources: -- https://github.com/bitnami/bitnami-docker-postgresql -maintainers: -- name: Bitnami - email: containers@bitnami.com -engine: gotpl -icon: https://bitnami.com/assets/stacks/postgresql/img/postgresql-stack-110x117.png diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md deleted file mode 100644 index 97b5efb1bb..0000000000 --- a/bitnami/postgresql/README.md +++ /dev/null @@ -1,156 +0,0 @@ -# PostgreSQL - -[PostgreSQL](https://www.postgresql.org/) is an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. - -## TL;DR; - -```console -$ helm install bitnami/postgresql -``` - -## Introduction - -This chart bootstraps a [PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - -Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. - -## Prerequisites - -- Kubernetes 1.4+ with Beta APIs enabled -- PV provisioner support in the underlying infrastructure - -## Installing the Chart - -To install the chart with the release name `my-release`: - -```console -$ helm install --name my-release bitnami/postgresql -``` - -The command deploys PostgreSQL on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. - -> **Tip**: List all releases using `helm list` - -## Uninstalling the Chart - -To uninstall/delete the `my-release` deployment: - -```console -$ helm delete my-release -``` - -The command removes all the Kubernetes components associated with the chart and deletes the release. - -## Configuration - -The following tables lists the configurable parameters of the PostgreSQL chart and their default values. - -| Parameter | Description | Default | -|----------------------------|-------------------------------------------|---------------------------------------------------------- | -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | PostgreSQL image registry | `docker.io` | -| `image.repository` | PostgreSQL Image name | `bitnami/postgresql` | -| `image.tag` | PostgreSQL Image tag | `{VERSION}` | -| `image.pullPolicy` | PostgreSQL image pull policy | `Always` | -| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `image.debug` | Specify if debug values should be set | `false` | -| `replication.enabled` | Would you like to enable replication | `false` | -| `replication.user` | Replication user | `repl_user` | -| `replication.password` | Replication user password | `repl_password` | -| `replication.slaveReplicas`| Number of slaves replicas | `1` | -| `postgresqlUsername` | PostgreSQL admin user | `postgres` | -| `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | -| `postgresqlDatabase` | PostgreSQL database | `nil` | -| `service.type` | Kubernetes Service type | `ClusterIP` | -| `service.port` | PostgreSQL port | `5432` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.storageClass` | PVC Storage Class for PostgreSQL volume | `nil` | -| `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | -| `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | -| `persistence.annotations` | Annotations for the PVC | `{}` | -| `nodeSelector` | Node labels for pod assignment | `{}` | -| `tolerations` | Toleration labels for pod assignment | `[]` | -| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | `livenessProbe.enabled` | would you like a livessProbed to be enabled | `true` | -| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | -| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | -| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | -| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | -| `readinessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 5 | -| `readinessProbe.periodSeconds` | How often to perform the probe | 10 | -| `readinessProbe.timeoutSeconds` | When the probe times out | 5 | -| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `metrics.enabled` | Start a prometheus exporter | `false` | -| `metrics.service.type` | Kubernetes Service type | `ClusterIP` | -| `metrics.service.annotatios` | Additional annotations for metrics exporter pod | `{}` | -| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | -| `metrics.image.registry` | PostgreSQL image registry | `docker.io` | -| `metrics.image.repository` | PostgreSQL Image name | `wrouesnel/postgres_exporter` | -| `metrics.image.tag` | PostgreSQL Image tag | `{VERSION}` | -| `metrics.image.pullPolicy` | PostgreSQL image pull policy | `IfNotPresent` | -| `metrics.image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | - -Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, - -```console -$ helm install --name my-release \ - --set postgresqlPassword=secretpassword,postgresqlDatabase=my-database \ - bitnami/postgresql -``` - -The above command sets the PostgreSQL `postgres` account password to `secretpassword`. Additionally it creates a database named `my-database`. - -Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, - -```console -$ helm install --name my-release -f values.yaml bitnami/postgresql -``` - -> **Tip**: You can use the default [values.yaml](values.yaml) - -### postgresql.conf file as configMap - -Instead of using specific variables for the PostgreSQL configuration, this helm chart also supports to customize the whole configuration file. - -Add your custom file to "files/postgresql.conf" in your working directory. This file will be mounted as configMap to the containers and it will be used for configuring the PostgreSQL server. - -## Initialize a fresh instance - -The [Bitnami PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) image allows you to use your custom scripts to initialize a fresh instance. In order to execute the scripts, they must be located inside the chart folder `files/docker-entrypoint-initdb.d` so they can be consumed as a ConfigMap. - -The allowed extensions are `.sh`, `.sql` and `.sql.gz`. - -## Production and horizontal scaling - -The following repo contains the recommended production settings for PostgreSQL server in an alternative [values file](values-production.yaml). Please read carefully the comments in the values-production.yaml file to set up your environment - -To horizontally scale this chart, first download the [values-production.yaml](values-production.yaml) file to your local folder, then: - -```console -$ helm install --name my-release -f ./values-production.yaml bitnami/postgresql -$ kubectl scale statefulset my-postgresql-slave --replicas=3 -``` - -## Persistence - -The [Bitnami PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) image stores the PostgreSQL data and configurations at the `/bitnami/postgresql` path of the container. - -Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. -See the [Configuration](#configuration) section to configure the PVC or to disable persistence. - -## Upgrading - -### To 3.0.0 - -Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. -Use the workaround below to upgrade from versions previous to 3.0.0. The following example assumes that the release name is postgresql: - -```console -$ kubectl delete statefulset postgresql --cascade=false -$ kubectl delete statefulset postgresql-slave --cascade=false -``` diff --git a/bitnami/postgresql/files/README.md b/bitnami/postgresql/files/README.md deleted file mode 100644 index 5906be3e11..0000000000 --- a/bitnami/postgresql/files/README.md +++ /dev/null @@ -1 +0,0 @@ -Copy here your postgresql.conf file to use it as a config map. \ No newline at end of file diff --git a/bitnami/postgresql/files/docker-entrypoint-initdb.d/README.md b/bitnami/postgresql/files/docker-entrypoint-initdb.d/README.md deleted file mode 100644 index cba38091e0..0000000000 --- a/bitnami/postgresql/files/docker-entrypoint-initdb.d/README.md +++ /dev/null @@ -1,3 +0,0 @@ -You can copy here your custom `.sh`, `.sql` or `.sql.gz` file so they are executed during the first boot of the image. - -More info in the [bitnami-docker-postgresql](https://github.com/bitnami/bitnami-docker-postgresql#initializing-a-new-instance) repository. \ No newline at end of file diff --git a/bitnami/postgresql/templates/NOTES.txt b/bitnami/postgresql/templates/NOTES.txt deleted file mode 100644 index a85ddbb941..0000000000 --- a/bitnami/postgresql/templates/NOTES.txt +++ /dev/null @@ -1,53 +0,0 @@ -{{- if contains .Values.service.type "LoadBalancer" }} -{{- if not .Values.postgresqlPassword }} -------------------------------------------------------------------------------- - WARNING - - By specifying "serviceType=LoadBalancer" and not specifying "postgresqlPassword" - you have most likely exposed the PostgreSQL service externally without any - authentication mechanism. - - For security reasons, we strongly suggest that you switch to "ClusterIP" or - "NodePort". As alternative, you can also specify a valid password on the - "postgresqlPassword" parameter. - -------------------------------------------------------------------------------- -{{- end }} -{{- end }} - -** Please be patient while the chart is being deployed ** - -PostgreSQL can be accessed via port 5432 on the following DNS name from within your cluster: - - {{ template "postgresql.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local - -To get the password for "{{ .Values.postgresqlUsername }}" run: - - export POSTGRESQL_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} -o jsonpath="{.data.postgresql-password}" | base64 --decode) - -To connect to your database run the following command: - - kubectl run {{ template "postgresql.fullname" . }}-client --rm --tty -i --image bitnami/postgresql --env="PGPASSWORD=$POSTGRESQL_PASSWORD" --command -- psql --host {{ template "postgresql.fullname" . }} -U {{ .Values.postgresqlUsername }} - -To connect to your database from outside the cluster execute the following commands: - -{{- if contains "NodePort" .Values.service.type }} - - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "postgresql.fullname" . }}) - {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host $NODE_IP --port $NODE_PORT -U {{ .Values.postgresqlUsername }} - -{{- else if contains "LoadBalancer" .Values.service.type }} - - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "postgresql.fullname" . }}' - - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host $SERVICE_IP --port {{ .Values.service.port }} -U {{ .Values.postgresqlUsername }} - -{{- else if contains "ClusterIP" .Values.service.type }} - - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "postgresql.fullname" . }} 5432:5432 & - {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host 127.0.0.1 -U {{ .Values.postgresqlUsername }} - -{{- end }} diff --git a/bitnami/postgresql/templates/_helpers.tpl b/bitnami/postgresql/templates/_helpers.tpl deleted file mode 100644 index 4cfc44d6b5..0000000000 --- a/bitnami/postgresql/templates/_helpers.tpl +++ /dev/null @@ -1,68 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "postgresql.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -*/}} -{{- define "postgresql.fullname" -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -*/}} -{{- define "postgresql.master.fullname" -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if .Values.replication.enabled -}} -{{- printf "%s-%s-%s" .Release.Name $name "master" | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "postgresql.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Return the proper PostgreSQL image name -*/}} -{{- define "postgresql.image" -}} -{{- $registryName := .Values.image.registry -}} -{{- $repositoryName := .Values.image.repository -}} -{{- $tag := .Values.image.tag | toString -}} -{{/* -Helm 2.11 supports the assignment of a value to a variable defined in a different scope, -but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. -Also, we can't use a single if because lazy evaluation is not an option -*/}} -{{- if .Values.global }} - {{- if .Values.global.imageRegistry }} - {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} - {{- else -}} - {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} - {{- end -}} -{{- else -}} - {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} -{{- end -}} -{{- end -}} - -{{/* -Return the proper PostgreSQL metrics image name -*/}} -{{- define "metrics.image" -}} -{{- $registryName := default "docker.io" .Values.metrics.image.registry -}} -{{- $tag := default "latest" .Values.metrics.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.metrics.image.repository $tag -}} -{{- end -}} diff --git a/bitnami/postgresql/templates/configmap.yaml b/bitnami/postgresql/templates/configmap.yaml deleted file mode 100644 index f6bad0d21f..0000000000 --- a/bitnami/postgresql/templates/configmap.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{ if (.Files.Glob "files/postgresql.conf") }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "postgresql.fullname" . }}-configuration - labels: - app: "{{ template "postgresql.name" . }}" - chart: {{ template "postgresql.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} -data: -{{ (.Files.Glob "files/postgresql.conf").AsConfig | indent 2 }} -{{ end }} \ No newline at end of file diff --git a/bitnami/postgresql/templates/initialization-configmap.yaml b/bitnami/postgresql/templates/initialization-configmap.yaml deleted file mode 100644 index 657590e730..0000000000 --- a/bitnami/postgresql/templates/initialization-configmap.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "postgresql.fullname" . }}-init-scripts - labels: - app: "{{ template "postgresql.name" . }}" - chart: {{ template "postgresql.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} -data: -{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*").AsConfig | indent 2 }} \ No newline at end of file diff --git a/bitnami/postgresql/templates/metrics-deployment.yaml b/bitnami/postgresql/templates/metrics-deployment.yaml deleted file mode 100644 index b86220fbf5..0000000000 --- a/bitnami/postgresql/templates/metrics-deployment.yaml +++ /dev/null @@ -1,75 +0,0 @@ -{{- if .Values.metrics.enabled }} -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: {{ template "postgresql.fullname" . }}-metrics - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - template: - metadata: - labels: - release: "{{ .Release.Name }}" - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - role: metrics - {{- if .Values.metrics.podLabels }} -{{ toYaml .Values.metrics.podLabels | indent 8 }} - {{- end }} - {{- if .Values.metrics.podAnnotations }} - annotations: -{{ toYaml .Values.metrics.podAnnotations | indent 8 }} - {{- end }} - spec: - {{- if .Values.metrics.image.pullSecrets }} - imagePullSecrets: - {{- range .Values.metrics.image.pullSecrets }} - - name: {{ . }} - {{- end}} - {{- end}} - {{- if .Values.metrics.nodeSelector }} - nodeSelector: -{{ toYaml .Values.metrics.nodeSelector | indent 8 }} - {{- end }} - {{- if .Values.metrics.tolerations }} - tolerations: -{{ toYaml .Values.metrics.tolerations | indent 8 }} - {{- end }} - containers: - - name: metrics - image: {{ template "metrics.image" . }} - imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} - env: - - name: DATA_SOURCE_NAME - value: {{ printf "postgresql://%s:%s@%s:%d/?sslmode=disable" (.Values.postgresqlUsername) (.Values.postgresqlPassword) ( include "postgresql.fullname" . ) (int .Values.service.port) | quote }} - {{- if .Values.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: / - port: metrics - initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} - successThreshold: {{ .Values.livenessProbe.successThreshold }} - failureThreshold: {{ .Values.livenessProbe.failureThreshold }} - {{- end }} - {{- if .Values.readinessProbe.enabled }} - readinessProbe: - httpGet: - path: / - port: metrics - initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.readinessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} - successThreshold: {{ .Values.readinessProbe.successThreshold }} - failureThreshold: {{ .Values.readinessProbe.failureThreshold }} - {{- end }} - ports: - - name: metrics - containerPort: 9187 - resources: -{{ toYaml .Values.metrics.resources | indent 10 }} -{{- end }} diff --git a/bitnami/postgresql/templates/metrics-svc.yaml b/bitnami/postgresql/templates/metrics-svc.yaml deleted file mode 100644 index e1af278732..0000000000 --- a/bitnami/postgresql/templates/metrics-svc.yaml +++ /dev/null @@ -1,27 +0,0 @@ -{{- if .Values.metrics.enabled }} -apiVersion: v1 -kind: Service -metadata: - name: {{ template "postgresql.fullname" . }}-metrics - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" - annotations: -{{ toYaml .Values.metrics.service.annotations | indent 4 }} -spec: - type: {{ .Values.metrics.service.type }} - {{ if eq .Values.metrics.service.type "LoadBalancer" -}} {{ if .Values.metrics.service.loadBalancerIP -}} - loadBalancerIP: {{ .Values.metrics.service.loadBalancerIP }} - {{ end -}} - {{- end -}} - ports: - - name: metrics - port: 9187 - targetPort: metrics - selector: - app: {{ template "postgresql.name" . }} - release: {{ .Release.Name }} - role: metrics -{{- end }} \ No newline at end of file diff --git a/bitnami/postgresql/templates/secrets.yaml b/bitnami/postgresql/templates/secrets.yaml deleted file mode 100644 index e123512a71..0000000000 --- a/bitnami/postgresql/templates/secrets.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "postgresql.fullname" . }} - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -type: Opaque -data: - {{ if .Values.postgresqlPassword }} - postgresql-password: {{ .Values.postgresqlPassword | b64enc | quote }} - {{ else }} - postgresql-password: {{ randAlphaNum 10 | b64enc | quote }} - {{ end }} - {{ if .Values.replication.enabled }} - {{ if .Values.replication.password }} - postgresql-replication-password: {{ .Values.replication.password | b64enc | quote }} - {{ else }} - postgresql-replication-password: {{ randAlphaNum 10 | b64enc | quote }} - {{ end }} - {{ end }} diff --git a/bitnami/postgresql/templates/statefulset-slaves.yaml b/bitnami/postgresql/templates/statefulset-slaves.yaml deleted file mode 100644 index c9fab81479..0000000000 --- a/bitnami/postgresql/templates/statefulset-slaves.yaml +++ /dev/null @@ -1,152 +0,0 @@ -{{- if .Values.replication.enabled }} -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - name: "{{ template "postgresql.fullname" . }}-slave" - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} -spec: - serviceName: {{ template "postgresql.fullname" . }}-headless - replicas: {{ .Values.replication.slaveReplicas }} - updateStrategy: - type: RollingUpdate - selector: - matchLabels: - app: {{ template "postgresql.name" . }} - release: {{ .Release.Name | quote }} - role: slave - template: - metadata: - name: "{{ template "postgresql.fullname" . }}" - labels: - app: "{{ template "postgresql.name" . }}" - chart: {{ template "postgresql.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} - role: slave - spec: - {{- if .Values.securityContext.enabled }} - securityContext: - fsGroup: {{ .Values.securityContext.fsGroup }} - runAsUser: {{ .Values.securityContext.runAsUser }} - {{- end }} - {{- if .Values.image.pullSecrets }} - imagePullSecrets: - {{- range .Values.image.pullSecrets }} - - name: {{ . }} - {{- end}} - {{- end }} - {{- if .Values.nodeSelector }} - nodeSelector: -{{ toYaml .Values.nodeSelector | indent 8 }} - {{- end }} - {{- if .Values.tolerations }} - tolerations: -{{ toYaml .Values.tolerations | indent 8 }} - {{- end }} - containers: - - name: "{{ template "postgresql.fullname" . }}" - image: "{{ template "postgresql.image" . }}" - imagePullPolicy: "{{ .Values.image.pullPolicy }}" - resources: -{{ toYaml .Values.Resources | indent 10 }} - env: - {{- if .Values.image.debug}} - - name: BASH_DEBUG - value: 1 - - name: NAMI_DEBUG - value: 1 - {{- end }} - - name: POSTGRESQL_REPLICATION_MODE - value: "slave" - - name: POSTGRESQL_REPLICATION_USER - value: {{ .Values.replication.user | quote }} - - name: POSTGRESQL_REPLICATION_PASSWORD - valueFrom: - secretKeyRef: - name: {{ template "postgresql.fullname" . }} - key: postgresql-replication-password - - name: POSTGRESQL_MASTER_HOST - value: {{ template "postgresql.fullname" . }} - - name: POSTGRESQL_MASTER_PORT_NUMBER - value: {{ .Values.service.port | quote }} - - name: POD_IP - valueFrom: { fieldRef: { fieldPath: status.podIP } } - ports: - - name: postgresql - containerPort: {{ .Values.service.port }} - {{- if .Values.livenessProbe.enabled }} - livenessProbe: - exec: - command: - - sh - - -c - - exec pg_isready -U {{ default "" .Values.postgresqlUsername | quote }} --host $POD_IP - initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} - successThreshold: {{ .Values.livenessProbe.successThreshold }} - failureThreshold: {{ .Values.livenessProbe.failureThreshold }} - {{- end }} - {{- if .Values.readinessProbe.enabled }} - readinessProbe: - exec: - command: - - sh - - -c - - exec pg_isready -U {{ default "" .Values.postgresqlUsername | quote }} --host $POD_IP - initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.readinessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} - successThreshold: {{ .Values.readinessProbe.successThreshold }} - failureThreshold: {{ .Values.readinessProbe.failureThreshold }} - {{- end }} - volumeMounts: - {{- if .Values.persistence.enabled }} - - name: data - mountPath: /bitnami/postgresql - {{ end }} - {{ if (.Files.Glob "files/postgresql.conf") }} - - name: postgresql-config - mountPath: /opt/bitnami/postgresql/conf/postgresql.conf - subPath: postgresql.conf - {{ end }} - volumes: - {{ if (.Files.Glob "files/postgresql.conf") }} - - name: postgresql-config - configMap: - name: {{ template "postgresql.fullname" . }}-configuration - {{ end }} -{{- if .Values.persistence.enabled }} - volumeClaimTemplates: - - metadata: - name: data - annotations: - {{- range $key, $value := .Values.persistence.annotations }} - {{ $key }}: {{ $value }} - {{- end }} - spec: - accessModes: - {{- range .Values.persistence.accessModes }} - - {{ . | quote }} - {{- end }} - resources: - requests: - storage: {{ .Values.persistence.size | quote }} - {{- if .Values.persistence.storageClass }} - {{- if (eq "-" .Values.persistence.storageClass) }} - storageClassName: "" - {{- else }} - storageClassName: "{{ .Values.persistence.storageClass }}" - {{- end }} - {{- end }} -{{- else }} - - name: data - emptyDir: {} -{{- end }} -{{- end }} - - diff --git a/bitnami/postgresql/templates/statefulset.yaml b/bitnami/postgresql/templates/statefulset.yaml deleted file mode 100644 index e6d4a77bf3..0000000000 --- a/bitnami/postgresql/templates/statefulset.yaml +++ /dev/null @@ -1,156 +0,0 @@ -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - name: "{{ template "postgresql.master.fullname" . }}" - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} -spec: - serviceName: {{ template "postgresql.fullname" . }}-headless - replicas: 1 - updateStrategy: - type: RollingUpdate - selector: - matchLabels: - app: {{ template "postgresql.name" . }} - release: {{ .Release.Name | quote }} - role: master - template: - metadata: - name: "{{ template "postgresql.fullname" . }}" - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} - role: master - spec: - {{- if .Values.securityContext.enabled }} - securityContext: - fsGroup: {{ .Values.securityContext.fsGroup }} - runAsUser: {{ .Values.securityContext.runAsUser }} - {{- end }} - {{- if .Values.image.pullSecrets }} - imagePullSecrets: - {{- range .Values.image.pullSecrets }} - - name: {{ . }} - {{- end}} - {{- end }} - {{- if .Values.nodeSelector }} - nodeSelector: -{{ toYaml .Values.nodeSelector | indent 8 }} - {{- end }} - {{- if .Values.tolerations }} - tolerations: -{{ toYaml .Values.tolerations | indent 8 }} - {{- end }} - containers: - - name: "{{ template "postgresql.fullname" . }}" - image: "{{ template "postgresql.image" . }}" - imagePullPolicy: "{{ .Values.image.pullPolicy }}" - resources: -{{ toYaml .Values.Resources | indent 10 }} - env: - {{- if .Values.replication.enabled }} - - name: POSTGRESQL_REPLICATION_MODE - value: "master" - - name: POSTGRESQL_REPLICATION_USER - value: {{ .Values.replication.user | quote }} - - name: POSTGRESQL_REPLICATION_PASSWORD - valueFrom: - secretKeyRef: - name: {{ template "postgresql.fullname" . }} - key: postgresql-replication-password - {{- end }} - - name: POSTGRESQL_USERNAME - value: {{ .Values.postgresqlUsername | quote }} - - name: POSTGRESQL_PASSWORD - valueFrom: - secretKeyRef: - name: {{ template "postgresql.fullname" . }} - key: postgresql-password - - name: POSTGRESQL_DATABASE - value: {{ .Values.postgresqlDatabase | quote }} - - name: POD_IP - valueFrom: { fieldRef: { fieldPath: status.podIP } } - ports: - - name: postgresql - containerPort: {{ .Values.service.port }} - {{- if .Values.livenessProbe.enabled }} - livenessProbe: - exec: - command: - - sh - - -c - - exec pg_isready -U {{ default "" .Values.postgresqlUsername | quote }} --host $POD_IP - initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} - successThreshold: {{ .Values.livenessProbe.successThreshold }} - failureThreshold: {{ .Values.livenessProbe.failureThreshold }} - {{- end }} - {{- if .Values.readinessProbe.enabled }} - readinessProbe: - exec: - command: - - sh - - -c - - exec pg_isready -U {{ default "" .Values.postgresqlUsername | quote }} --host $POD_IP - initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.readinessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} - successThreshold: {{ .Values.readinessProbe.successThreshold }} - failureThreshold: {{ .Values.readinessProbe.failureThreshold }} - {{- end }} - volumeMounts: - - name: custom-init-scripts - mountPath: /docker-entrypoint-initdb.d - {{- if .Values.persistence.enabled }} - - name: data - mountPath: /bitnami/postgresql - {{ end }} - {{ if (.Files.Glob "files/postgresql.conf") }} - - name: postgresql-config - mountPath: /opt/bitnami/postgresql/conf/postgresql.conf - subPath: postgresql.conf - {{ end }} - volumes: - {{ if (.Files.Glob "files/postgresql.conf") }} - - name: postgresql-config - configMap: - name: {{ template "postgresql.fullname" . }}-configuration - {{ end }} - - name: custom-init-scripts - configMap: - name: {{ template "postgresql.fullname" . }}-init-scripts -{{- if .Values.persistence.enabled }} - volumeClaimTemplates: - - metadata: - name: data - annotations: - {{- range $key, $value := .Values.persistence.annotations }} - {{ $key }}: {{ $value }} - {{- end }} - spec: - accessModes: - {{- range .Values.persistence.accessModes }} - - {{ . | quote }} - {{- end }} - resources: - requests: - storage: {{ .Values.persistence.size | quote }} - {{- if .Values.persistence.storageClass }} - {{- if (eq "-" .Values.persistence.storageClass) }} - storageClassName: "" - {{- else }} - storageClassName: "{{ .Values.persistence.storageClass }}" - {{- end }} - {{- end }} -{{- else }} - - name: data - emptyDir: {} -{{- end }} - - diff --git a/bitnami/postgresql/templates/svc-headless.yaml b/bitnami/postgresql/templates/svc-headless.yaml deleted file mode 100644 index 738123ca69..0000000000 --- a/bitnami/postgresql/templates/svc-headless.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "postgresql.fullname" . }}-headless - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - type: ClusterIP - clusterIP: None - ports: - - name: postgresql - port: 5432 - targetPort: postgresql - selector: - app: {{ template "postgresql.name" . }} - release: "{{ .Release.Name }}" diff --git a/bitnami/postgresql/templates/svc.yaml b/bitnami/postgresql/templates/svc.yaml deleted file mode 100644 index 1a4bea1dff..0000000000 --- a/bitnami/postgresql/templates/svc.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "postgresql.fullname" . }} - labels: - app: {{ template "postgresql.name" . }} - chart: {{ template "postgresql.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - type: {{ .Values.service.type }} - ports: - - name: postgresql - port: 5432 - targetPort: postgresql - selector: - app: {{ template "postgresql.name" . }} - release: {{ .Release.Name | quote }} - role: master \ No newline at end of file diff --git a/bitnami/postgresql/values-production.yaml b/bitnami/postgresql/values-production.yaml deleted file mode 100644 index eca54a09c6..0000000000 --- a/bitnami/postgresql/values-production.yaml +++ /dev/null @@ -1,161 +0,0 @@ -## Global Docker image registry -## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value -## -# global: -# imageRegistry: - -## Bitnami PostgreSQL image version -## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ -## -image: - registry: docker.io - repository: bitnami/postgresql - tag: 10.5.0 - ## Specify a imagePullPolicy - ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' - ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images - ## - pullPolicy: Always - - ## Optionally specify an array of imagePullSecrets. - ## Secrets must be manually created in the namespace. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - # pullSecrets: - # - myRegistrKeySecretName - - ## Set to true if you would like to see extra information on logs - ## It turns BASH and NAMI debugging in minideb - ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging - debug: false - -## Pod Security Context -## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ -## -securityContext: - enabled: true - fsGroup: 1001 - runAsUser: 1001 - -replication: - enabled: true - user: repl_user - password: repl_password - slaveReplicas: 1 - -## PostgreSQL admin user -## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run -postgresqlUsername: postgres - -## PostgreSQL password -## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run -## -# postgresqlPassword: - -## Create a database -## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run -## -# postgresqlDatabase: - -## Kubernetes configuration -## For minikube, set this to NodePort, elsewhere use LoadBalancer -## -service: - type: ClusterIP - port: 5432 - -## PostgreSQL data Persistent Volume Storage Class -## If defined, storageClassName: -## If set to "-", storageClassName: "", which disables dynamic provisioning -## If undefined (the default) or set to null, no storageClassName spec is -## set, choosing the default provisioner. (gp2 on AWS, standard on -## GKE, AWS & OpenStack) -## -persistence: - enabled: true - # storageClass: "-" - accessModes: - - ReadWriteOnce - size: 8Gi - annotations: {} - -## Node labels and tolerations for pod assignment -## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector -## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature -nodeSelector: {} -tolerations: [] - -## Configure resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## -resources: - requests: - memory: 256Mi - cpu: 250m - -## Configure extra options for liveness and readiness probes -## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) -livenessProbe: - enabled: true - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 - -readinessProbe: - enabled: true - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 - -## Configure metrics exporter -## -metrics: - enabled: false - # resources: {} - # podAnnotations: {} - service: - type: ClusterIP - annotations: {} - # prometheus.io/scrape: "true" - # prometheus.io/port: "9187" - loadBalancerIP: - image: - registry: docker.io - repository: wrouesnel/postgres_exporter - tag: v0.4.6 - pullPolicy: IfNotPresent - ## Optionally specify an array of imagePullSecrets. - ## Secrets must be manually created in the namespace. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - # pullSecrets: - # - myRegistrKeySecretName - - ## Metrics exporter labels and tolerations for pod assignment - # nodeSelector: {"beta.kubernetes.io/arch": "amd64"} - # tolerations: [] - - ## Metrics exporter pod Annotation and Labels - # podLabels: {} - - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) - ## Configure extra options for liveness and readiness probes - livenessProbe: - enabled: true - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 - - readinessProbe: - enabled: true - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 diff --git a/bitnami/postgresql/values.yaml b/bitnami/postgresql/values.yaml deleted file mode 100644 index 68299f1e61..0000000000 --- a/bitnami/postgresql/values.yaml +++ /dev/null @@ -1,161 +0,0 @@ -## Global Docker image registry -## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value -## -# global: -# imageRegistry: - -## Bitnami PostgreSQL image version -## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ -## -image: - registry: docker.io - repository: bitnami/postgresql - tag: 10.5.0 - ## Specify a imagePullPolicy - ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' - ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images - ## - pullPolicy: Always - - ## Optionally specify an array of imagePullSecrets. - ## Secrets must be manually created in the namespace. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - # pullSecrets: - # - myRegistrKeySecretName - - ## Set to true if you would like to see extra information on logs - ## It turns BASH and NAMI debugging in minideb - ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging - debug: false - -## Pod Security Context -## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ -## -securityContext: - enabled: true - fsGroup: 1001 - runAsUser: 1001 - -replication: - enabled: false - user: repl_user - password: repl_password - slaveReplicas: 1 - -## PostgreSQL admin user -## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run -postgresqlUsername: postgres - -## PostgreSQL password -## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run -## -# postgresqlPassword: - -## Create a database -## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run -## -# postgresqlDatabase: - -## Kubernetes configuration -## For minikube, set this to NodePort, elsewhere use LoadBalancer -## -service: - type: ClusterIP - port: 5432 - -## PostgreSQL data Persistent Volume Storage Class -## If defined, storageClassName: -## If set to "-", storageClassName: "", which disables dynamic provisioning -## If undefined (the default) or set to null, no storageClassName spec is -## set, choosing the default provisioner. (gp2 on AWS, standard on -## GKE, AWS & OpenStack) -## -persistence: - enabled: true - # storageClass: "-" - accessModes: - - ReadWriteOnce - size: 8Gi - annotations: {} - -## Node labels and tolerations for pod assignment -## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector -## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature -nodeSelector: {} -tolerations: [] - -## Configure resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## -resources: - requests: - memory: 256Mi - cpu: 250m - -## Configure extra options for liveness and readiness probes -## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) -livenessProbe: - enabled: true - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 - -readinessProbe: - enabled: true - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 - -## Configure metrics exporter -## -metrics: - enabled: false - # resources: {} - # podAnnotations: {} - service: - type: ClusterIP - annotations: {} - # prometheus.io/scrape: "true" - # prometheus.io/port: "9187" - loadBalancerIP: - image: - registry: docker.io - repository: wrouesnel/postgres_exporter - tag: v0.4.6 - pullPolicy: IfNotPresent - ## Optionally specify an array of imagePullSecrets. - ## Secrets must be manually created in the namespace. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - # pullSecrets: - # - myRegistrKeySecretName - - ## Metrics exporter labels and tolerations for pod assignment - # nodeSelector: {"beta.kubernetes.io/arch": "amd64"} - # tolerations: [] - - ## Metrics exporter pod Annotation and Labels - # podLabels: {} - - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) - ## Configure extra options for liveness and readiness probes - livenessProbe: - enabled: true - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 - - readinessProbe: - enabled: true - initialDelaySeconds: 5 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 - successThreshold: 1 From 2efda1ee8464d9b203cd84c86b940c4d998ed8b9 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 24 Oct 2018 08:25:38 +0000 Subject: [PATCH 050/153] Synchronize upstreamed folder to f38d6464 --- upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/README.md | 1 + .../templates/deployment-standalone.yaml | 6 + .../mongodb/templates/svc-primary-rs.yaml | 3 + .../mongodb/templates/svc-standalone.yaml | 3 + upstreamed/mongodb/values-production.yaml | 1 + upstreamed/mongodb/values.yaml | 1 + upstreamed/phabricator/Chart.yaml | 4 +- upstreamed/phabricator/requirements.lock | 4 +- upstreamed/phabricator/values.yaml | 2 +- upstreamed/postgresql/.helmignore | 2 + upstreamed/postgresql/Chart.yaml | 19 ++ upstreamed/postgresql/OWNERS | 12 + upstreamed/postgresql/README.md | 220 ++++++++++++++++++ upstreamed/postgresql/files/README.md | 1 + .../docker-entrypoint-initdb.d/README.md | 3 + upstreamed/postgresql/templates/NOTES.txt | 58 +++++ upstreamed/postgresql/templates/_helpers.tpl | 65 ++++++ .../postgresql/templates/configmap.yaml | 18 ++ .../templates/initialization-configmap.yaml | 11 + .../templates/metrics-deployment.yaml | 82 +++++++ .../postgresql/templates/metrics-svc.yaml | 26 +++ .../postgresql/templates/networkpolicy.yaml | 29 +++ upstreamed/postgresql/templates/secrets.yaml | 23 ++ .../templates/statefulset-slaves.yaml | 155 ++++++++++++ .../postgresql/templates/statefulset.yaml | 165 +++++++++++++ .../postgresql/templates/svc-headless.yaml | 19 ++ upstreamed/postgresql/templates/svc.yaml | 19 ++ upstreamed/postgresql/values-production.yaml | 170 ++++++++++++++ upstreamed/postgresql/values.yaml | 175 ++++++++++++++ 30 files changed, 1293 insertions(+), 6 deletions(-) create mode 100644 upstreamed/postgresql/.helmignore create mode 100644 upstreamed/postgresql/Chart.yaml create mode 100644 upstreamed/postgresql/OWNERS create mode 100644 upstreamed/postgresql/README.md create mode 100644 upstreamed/postgresql/files/README.md create mode 100644 upstreamed/postgresql/files/docker-entrypoint-initdb.d/README.md create mode 100644 upstreamed/postgresql/templates/NOTES.txt create mode 100644 upstreamed/postgresql/templates/_helpers.tpl create mode 100644 upstreamed/postgresql/templates/configmap.yaml create mode 100644 upstreamed/postgresql/templates/initialization-configmap.yaml create mode 100644 upstreamed/postgresql/templates/metrics-deployment.yaml create mode 100644 upstreamed/postgresql/templates/metrics-svc.yaml create mode 100644 upstreamed/postgresql/templates/networkpolicy.yaml create mode 100644 upstreamed/postgresql/templates/secrets.yaml create mode 100644 upstreamed/postgresql/templates/statefulset-slaves.yaml create mode 100644 upstreamed/postgresql/templates/statefulset.yaml create mode 100644 upstreamed/postgresql/templates/svc-headless.yaml create mode 100644 upstreamed/postgresql/templates/svc.yaml create mode 100644 upstreamed/postgresql/values-production.yaml create mode 100644 upstreamed/postgresql/values.yaml diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 318bdfde69..4362747e0f 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.6.1 +version: 4.6.2 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/README.md b/upstreamed/mongodb/README.md index 1b9d003d2c..eedbb64797 100644 --- a/upstreamed/mongodb/README.md +++ b/upstreamed/mongodb/README.md @@ -63,6 +63,7 @@ The following table lists the configurable parameters of the MongoDB chart and t | `mongodbExtraFlags` | MongoDB additional command line flags | [] | | `service.annotations` | Kubernetes service annotations | `{}` | | `service.type` | Kubernetes Service type | `ClusterIP` | +| `service.clusterIP` | Static clusterIP or None for headless services | `nil` | | `service.nodePort` | Port to bind to for NodePort service type | `nil` | | `port` | MongoDB service port | `27017` | | `replicaSet.enabled` | Switch to enable/disable replica set configuration | `false` | diff --git a/upstreamed/mongodb/templates/deployment-standalone.yaml b/upstreamed/mongodb/templates/deployment-standalone.yaml index d8ff01be35..6311ddd33a 100644 --- a/upstreamed/mongodb/templates/deployment-standalone.yaml +++ b/upstreamed/mongodb/templates/deployment-standalone.yaml @@ -78,6 +78,12 @@ spec: {{- end }} - name: MONGODB_EXTRA_FLAGS value: {{ default "" .Values.mongodbExtraFlags | join " " }} + - name: MONGODB_ENABLE_IPV6 + {{- if .Values.mongodbEnableIPv6 }} + value: "yes" + {{- else }} + value: "no" + {{- end }} ports: - name: mongodb containerPort: 27017 diff --git a/upstreamed/mongodb/templates/svc-primary-rs.yaml b/upstreamed/mongodb/templates/svc-primary-rs.yaml index fd440c839d..ccc73ecb35 100644 --- a/upstreamed/mongodb/templates/svc-primary-rs.yaml +++ b/upstreamed/mongodb/templates/svc-primary-rs.yaml @@ -14,6 +14,9 @@ metadata: {{- end }} spec: type: {{ .Values.service.type }} + {{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} ports: - name: mongodb port: 27017 diff --git a/upstreamed/mongodb/templates/svc-standalone.yaml b/upstreamed/mongodb/templates/svc-standalone.yaml index 4ca9443179..00eecc6b1e 100644 --- a/upstreamed/mongodb/templates/svc-standalone.yaml +++ b/upstreamed/mongodb/templates/svc-standalone.yaml @@ -14,6 +14,9 @@ metadata: {{- end }} spec: type: {{ .Values.service.type }} + {{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} ports: - name: mongodb port: 27017 diff --git a/upstreamed/mongodb/values-production.yaml b/upstreamed/mongodb/values-production.yaml index 4f86e27c4f..9437401ec9 100644 --- a/upstreamed/mongodb/values-production.yaml +++ b/upstreamed/mongodb/values-production.yaml @@ -73,6 +73,7 @@ clusterDomain: cluster.local service: annotations: {} type: ClusterIP + # clusterIP: None port: 27017 ## Specify the nodePort value for the LoadBalancer and NodePort service types. diff --git a/upstreamed/mongodb/values.yaml b/upstreamed/mongodb/values.yaml index 3f496731c9..b602fc13dc 100644 --- a/upstreamed/mongodb/values.yaml +++ b/upstreamed/mongodb/values.yaml @@ -74,6 +74,7 @@ clusterDomain: cluster.local service: annotations: {} type: ClusterIP + # clusterIP: None port: 27017 ## Specify the nodePort value for the LoadBalancer and NodePort service types. diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 2c4aecc99e..04ae68a0e3 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,6 +1,6 @@ name: phabricator -version: 3.2.2 -appVersion: 2018.41.0 +version: 3.2.3 +appVersion: 2018.42.0 description: Collection of open source web applications that help software companies build better software. keywords: - phabricator diff --git a/upstreamed/phabricator/requirements.lock b/upstreamed/phabricator/requirements.lock index b5b6e3b533..800d63bc59 100644 --- a/upstreamed/phabricator/requirements.lock +++ b/upstreamed/phabricator/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.1 digest: sha256:e09c8ca7126923a30e39f442c3863b44684d4eb3f7b6dc869f0206da4463f416 -generated: 2018-10-16T08:50:03.59136+02:00 +generated: 2018-10-23T11:10:43.067362461Z diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 124354be80..7bfec33967 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phabricator - tag: 2018.41.0 + tag: 2018.42.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/.helmignore b/upstreamed/postgresql/.helmignore new file mode 100644 index 0000000000..acbcabf42a --- /dev/null +++ b/upstreamed/postgresql/.helmignore @@ -0,0 +1,2 @@ +.git +OWNERS diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml new file mode 100644 index 0000000000..60d42e2329 --- /dev/null +++ b/upstreamed/postgresql/Chart.yaml @@ -0,0 +1,19 @@ +name: postgresql +version: 2.0.0 +appVersion: 10.5.0 +description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. +keywords: +- postgresql +- postgres +- database +- sql +- replication +- cluster +home: https://www.postgresql.org/ +icon: https://bitnami.com/assets/stacks/postgresql/img/postgresql-stack-110x117.png +sources: +- https://github.com/bitnami/bitnami-docker-postgresql +maintainers: +- name: Bitnami + email: containers@bitnami.com +engine: gotpl diff --git a/upstreamed/postgresql/OWNERS b/upstreamed/postgresql/OWNERS new file mode 100644 index 0000000000..e74df3ff33 --- /dev/null +++ b/upstreamed/postgresql/OWNERS @@ -0,0 +1,12 @@ +approvers: +- prydonius +- tompizmor +- sameersbn +- carrodher +- juan131 +reviewers: +- prydonius +- tompizmor +- sameersbn +- carrodher +- juan131 \ No newline at end of file diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md new file mode 100644 index 0000000000..355ba30b44 --- /dev/null +++ b/upstreamed/postgresql/README.md @@ -0,0 +1,220 @@ +# PostgreSQL + +[PostgreSQL](https://www.postgresql.org/) is an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. + +## TL;DR; + +```console +$ helm install stable/postgresql +``` + +## Introduction + +This chart bootstraps a [PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + +Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. + +## Prerequisites + +- Kubernetes 1.4+ with Beta APIs enabled +- PV provisioner support in the underlying infrastructure + +## Installing the Chart + +To install the chart with the release name `my-release`: + +```console +$ helm install --name my-release stable/postgresql +``` + +The command deploys PostgreSQL on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. + +> **Tip**: List all releases using `helm list` + +## Uninstalling the Chart + +To uninstall/delete the `my-release` deployment: + +```console +$ helm delete my-release +``` + +The command removes all the Kubernetes components associated with the chart and deletes the release. + +## Configuration + +The following tables lists the configurable parameters of the PostgreSQL chart and their default values. + +| Parameter | Description | Default | +|----------------------------|-------------------------------------------|---------------------------------------------------------- | +| `image.registry` | PostgreSQL image registry | `docker.io` | +| `image.repository` | PostgreSQL Image name | `stable/postgresql` | +| `image.tag` | PostgreSQL Image tag | `{VERSION}` | +| `image.pullPolicy` | PostgreSQL image pull policy | `Always` | +| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `image.debug` | Specify if debug values should be set | `false` | +| `replication.enabled` | Would you like to enable replication | `false` | +| `replication.user` | Replication user | `repl_user` | +| `replication.password` | Replication user password | `repl_password` | +| `replication.slaveReplicas`| Number of slaves replicas | `1` | +| `postgresqlUsername` | PostgreSQL admin user | `postgres` | +| `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | +| `postgresqlDatabase` | PostgreSQL database | `nil` | +| `service.type` | Kubernetes Service type | `ClusterIP` | +| `service.port` | PostgreSQL port | `5432` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.storageClass` | PVC Storage Class for PostgreSQL volume | `nil` | +| `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | +| `persistence.annotations` | Annotations for the PVC | `{}` | +| `nodeSelector` | Node labels for pod assignment | `{}` | +| `tolerations` | Toleration labels for pod assignment | `[]` | +| `terminationGracePeriodSeconds` | Optional duration in seconds the pod needs to terminate gracefully | `nil` | +| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | `livenessProbe.enabled` | would you like a livessProbed to be enabled | `true` | +| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | +| `networkPolicy.allowExternal` | Don't require client label for connections | `true` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | +| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | +| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | +| `readinessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 5 | +| `readinessProbe.periodSeconds` | How often to perform the probe | 10 | +| `readinessProbe.timeoutSeconds` | When the probe times out | 5 | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `metrics.enabled` | Start a prometheus exporter | `false` | +| `metrics.service.type` | Kubernetes Service type | `ClusterIP` | +| `metrics.service.annotatios` | Additional annotations for metrics exporter pod | `{}` | +| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | +| `metrics.image.registry` | PostgreSQL image registry | `docker.io` | +| `metrics.image.repository` | PostgreSQL Image name | `wrouesnel/postgres_exporter` | +| `metrics.image.tag` | PostgreSQL Image tag | `{VERSION}` | +| `metrics.image.pullPolicy` | PostgreSQL image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `extraEnv` | Any extra environment variables you would like to pass on to the pod | {} | + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, + +```console +$ helm install --name my-release \ + --set postgresqlPassword=secretpassword,postgresqlDatabase=my-database \ + stable/postgresql +``` + +The above command sets the PostgreSQL `postgres` account password to `secretpassword`. Additionally it creates a database named `my-database`. + +Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, + +```console +$ helm install --name my-release -f values.yaml stable/postgresql +``` + +> **Tip**: You can use the default [values.yaml](values.yaml) + +### postgresql.conf file as configMap + +Instead of using specific variables for the PostgreSQL configuration, this helm chart also supports to customize the whole configuration file. + +Add your custom file to "files/postgresql.conf" in your working directory. This file will be mounted as configMap to the containers and it will be used for configuring the PostgreSQL server. + +## Initialize a fresh instance + +The [Bitnami PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) image allows you to use your custom scripts to initialize a fresh instance. In order to execute the scripts, they must be located inside the chart folder `files/docker-entrypoint-initdb.d` so they can be consumed as a ConfigMap. + +The allowed extensions are `.sh`, `.sql` and `.sql.gz`. + +## Production and horizontal scaling + +The following repo contains the recommended production settings for PostgreSQL server in an alternative [values file](values-production.yaml). Please read carefully the comments in the values-production.yaml file to set up your environment + +To horizontally scale this chart, first download the [values-production.yaml](values-production.yaml) file to your local folder, then: + +```console +$ helm install --name my-release -f ./values-production.yaml stable/postgresql +$ kubectl scale statefulset my-postgresql-slave --replicas=3 +``` + +## Persistence + +The [Bitnami PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) image stores the PostgreSQL data and configurations at the `/bitnami/postgresql` path of the container. + +Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. +See the [Configuration](#configuration) section to configure the PVC or to disable persistence. + +## Metrics + +The chart optionally can start a metrics exporter for [prometheus](https://prometheus.io). The metrics endpoint (port 9187) is not exposed and it is expected that the metrics are collected from inside the k8s cluster using something similar as the described in the [example Prometheus scrape configuration](https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml). + +The exporter allows to create custom metrics from additional SQL queries. See the Chart's `values.yaml` for an example and consult the [exporters documentation](https://github.com/wrouesnel/postgres_exporter#adding-new-metrics-via-a-config-file) for more details. + +## NetworkPolicy + +To enable network policy for PostgreSQL, install [a networking plugin that implements the Kubernetes NetworkPolicy spec](https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy#before-you-begin), and set `networkPolicy.enabled` to `true`. + +For Kubernetes v1.5 & v1.6, you must also turn on NetworkPolicy by setting the DefaultDeny namespace annotation. Note: this will enforce policy for _all_ pods in the namespace: + +```console +$ kubectl annotate namespace default "net.beta.kubernetes.io/network-policy={\"ingress\":{\"isolation\":\"DefaultDeny\"}}" +``` + +With NetworkPolicy enabled, traffic will be limited to just port 5432. + +For more precise policy, set `networkPolicy.allowExternal=false`. This will only allow pods with the generated client label to connect to PostgreSQL. +This label will be displayed in the output of a successful install. + +## Upgrade + +In order to upgrade from the `0.X.X` branch to `1.X.X`, you should follow the below steps: + + - Obtain the service name (`SERVICE_NAME`) and password (`OLD_PASSWORD`) of the existing postgresql chart. You can find the instructions to obtain the password in the NOTES.txt, the service name can be obtained by running + + ```console +$ kubectl get svc + ``` + +- Install (not upgrade) the new version + +```console +$ helm repo update +$ helm install --name my-release stable/postgresql +``` + +- Connect to the new pod (you can obtain the name by running `kubectl get pods`): + +```console +$ kubectl exec -it NAME bash +``` + +- Once logged in, create a dump file from the previous database using `pg_dump`, for that we should connect to the previous postgresql chart: + +```console +$ pg_dump -h SERVICE_NAME -U postgres DATABASE_NAME > /tmp/backup.sql +``` + +After run above command you should be prompted for a password, this password is the previous chart password (`OLD_PASSWORD`). +This operation could take some time depending on the database size. + +- Once you have the backup file, you can restore it with a command like the one below: + +```console +$ psql -U postgres DATABASE_NAME < /tmp/backup.sql +``` + +In this case, you are accessing to the local postgresql, so the password should be the new one (you can find it in NOTES.txt). + +If you want to restore the database and the database schema does not exist, it is necessary to first follow the steps described below. + +```console +$ psql -U postgres +postgres=# drop database DATABASE_NAME; +postgres=# create database DATABASE_NAME; +postgres=# create user USER_NAME; +postgres=# alter role USER_NAME with password 'BITNAMI_USER_PASSWORD'; +postgres=# grant all privileges on database DATABASE_NAME to USER_NAME; +postgres=# alter database DATABASE_NAME owner to USER_NAME; +``` diff --git a/upstreamed/postgresql/files/README.md b/upstreamed/postgresql/files/README.md new file mode 100644 index 0000000000..1813a2feaa --- /dev/null +++ b/upstreamed/postgresql/files/README.md @@ -0,0 +1 @@ +Copy here your postgresql.conf and/or pg_hba.conf files to use it as a config map. diff --git a/upstreamed/postgresql/files/docker-entrypoint-initdb.d/README.md b/upstreamed/postgresql/files/docker-entrypoint-initdb.d/README.md new file mode 100644 index 0000000000..cba38091e0 --- /dev/null +++ b/upstreamed/postgresql/files/docker-entrypoint-initdb.d/README.md @@ -0,0 +1,3 @@ +You can copy here your custom `.sh`, `.sql` or `.sql.gz` file so they are executed during the first boot of the image. + +More info in the [bitnami-docker-postgresql](https://github.com/bitnami/bitnami-docker-postgresql#initializing-a-new-instance) repository. \ No newline at end of file diff --git a/upstreamed/postgresql/templates/NOTES.txt b/upstreamed/postgresql/templates/NOTES.txt new file mode 100644 index 0000000000..3b157d27b7 --- /dev/null +++ b/upstreamed/postgresql/templates/NOTES.txt @@ -0,0 +1,58 @@ +{{- if contains .Values.service.type "LoadBalancer" }} +{{- if not .Values.postgresqlPassword }} +------------------------------------------------------------------------------- + WARNING + + By specifying "serviceType=LoadBalancer" and not specifying "postgresqlPassword" + you have most likely exposed the PostgreSQL service externally without any + authentication mechanism. + + For security reasons, we strongly suggest that you switch to "ClusterIP" or + "NodePort". As an alternative, you can also specify a valid password on the + "postgresqlPassword" parameter. + +------------------------------------------------------------------------------- +{{- end }} +{{- end }} + +** Please be patient while the chart is being deployed ** + +PostgreSQL can be accessed via port 5432 on the following DNS name from within your cluster: + + {{ template "postgresql.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local + +To get the password for "{{ .Values.postgresqlUsername }}" run: + + export POSTGRESQL_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} -o jsonpath="{.data.postgresql-password}" | base64 --decode) + +To connect to your database run the following command: + + kubectl run {{ template "postgresql.fullname" . }}-client --rm --tty -i --image bitnami/postgresql --env="PGPASSWORD=$POSTGRESQL_PASSWORD" {{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} + --labels="{{ template "postgresql.fullname" . }}-client=true" {{- end }} --command -- psql --host {{ template "postgresql.fullname" . }} -U {{ .Values.postgresqlUsername }} + +{{ if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} +Note: Since NetworkPolicy is enabled, only pods with label {{ template "postgresql.fullname" . }}-client=true" will be able to connect to this PostgreSQL cluster. +{{- end }} + +To connect to your database from outside the cluster execute the following commands: + +{{- if contains "NodePort" .Values.service.type }} + + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "postgresql.fullname" . }}) + {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host $NODE_IP --port $NODE_PORT -U {{ .Values.postgresqlUsername }} + +{{- else if contains "LoadBalancer" .Values.service.type }} + + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "postgresql.fullname" . }}' + + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") + {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host $SERVICE_IP --port {{ .Values.service.port }} -U {{ .Values.postgresqlUsername }} + +{{- else if contains "ClusterIP" .Values.service.type }} + + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "postgresql.fullname" . }} 5432:5432 & + {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host 127.0.0.1 -U {{ .Values.postgresqlUsername }} + +{{- end }} diff --git a/upstreamed/postgresql/templates/_helpers.tpl b/upstreamed/postgresql/templates/_helpers.tpl new file mode 100644 index 0000000000..76f5a17733 --- /dev/null +++ b/upstreamed/postgresql/templates/_helpers.tpl @@ -0,0 +1,65 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "postgresql.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +*/}} +{{- define "postgresql.fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +*/}} +{{- define "postgresql.master.fullname" -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if .Values.replication.enabled -}} +{{- printf "%s-%s-%s" .Release.Name $name "master" | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for networkpolicy. +*/}} +{{- define "postgresql.networkPolicy.apiVersion" -}} +{{- if semverCompare ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.GitVersion -}} +"extensions/v1beta1" +{{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.GitVersion -}} +"networking.k8s.io/v1" +{{- end -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "postgresql.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Return the proper PostgreSQL image name +*/}} +{{- define "postgresql.image" -}} +{{- $registryName := default "docker.io" .Values.image.registry -}} +{{- $tag := default "latest" .Values.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- end -}} + +{{/* +Return the proper PostgreSQL metrics image name +*/}} +{{- define "metrics.image" -}} +{{- $registryName := default "docker.io" .Values.metrics.image.registry -}} +{{- $tag := default "latest" .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName .Values.metrics.image.repository $tag -}} +{{- end -}} diff --git a/upstreamed/postgresql/templates/configmap.yaml b/upstreamed/postgresql/templates/configmap.yaml new file mode 100644 index 0000000000..2cc9b48d08 --- /dev/null +++ b/upstreamed/postgresql/templates/configmap.yaml @@ -0,0 +1,18 @@ +{{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ template "postgresql.fullname" . }}-configuration + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +data: +{{- if (.Files.Glob "files/postgresql.conf") }} +{{ (.Files.Glob "files/postgresql.conf").AsConfig | indent 2 }} +{{- end }} +{{- if (.Files.Glob "files/pg_hba.conf") }} +{{ (.Files.Glob "files/pg_hba.conf").AsConfig | indent 2 }} +{{- end }} +{{ end }} diff --git a/upstreamed/postgresql/templates/initialization-configmap.yaml b/upstreamed/postgresql/templates/initialization-configmap.yaml new file mode 100644 index 0000000000..d8472fd1d2 --- /dev/null +++ b/upstreamed/postgresql/templates/initialization-configmap.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ template "postgresql.fullname" . }}-init-scripts + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +data: +{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*").AsConfig | indent 2 }} diff --git a/upstreamed/postgresql/templates/metrics-deployment.yaml b/upstreamed/postgresql/templates/metrics-deployment.yaml new file mode 100644 index 0000000000..7bbe0da45e --- /dev/null +++ b/upstreamed/postgresql/templates/metrics-deployment.yaml @@ -0,0 +1,82 @@ +{{- if .Values.metrics.enabled }} +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: {{ template "postgresql.fullname" . }}-metrics + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote}} + heritage: {{ .Release.Service | quote }} +spec: + template: + metadata: + labels: + release: {{ .Release.Name | quote }} + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + role: metrics + {{- if .Values.metrics.podLabels }} +{{ toYaml .Values.metrics.podLabels | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} + annotations: +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} + spec: + {{- if .Values.metrics.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.metrics.image.pullSecrets }} + - name: {{ . }} + {{- end}} + {{- end}} + {{- if .Values.metrics.nodeSelector }} + nodeSelector: +{{ toYaml .Values.metrics.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.metrics.tolerations }} + tolerations: +{{ toYaml .Values.metrics.tolerations | indent 8 }} + {{- end }} + containers: + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + env: + - name: DATA_SOURCE_URI + value: {{ printf "%s:%d/?sslmode=disable" ( include "postgresql.fullname" . ) (int .Values.service.port) | quote }} + - name: DATA_SOURCE_PASS + valueFrom: + secretKeyRef: + name: {{ template "postgresql.fullname" . }} + key: postgresql-password + - name: DATA_SOURCE_USER + value: {{ .Values.postgresqlUsername }} + {{- if .Values.livenessProbe.enabled }} + livenessProbe: + httpGet: + path: / + port: metrics + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + {{- end }} + {{- if .Values.readinessProbe.enabled }} + readinessProbe: + httpGet: + path: / + port: metrics + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + {{- end }} + ports: + - name: metrics + containerPort: 9187 + resources: +{{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} diff --git a/upstreamed/postgresql/templates/metrics-svc.yaml b/upstreamed/postgresql/templates/metrics-svc.yaml new file mode 100644 index 0000000000..0559c8cfdc --- /dev/null +++ b/upstreamed/postgresql/templates/metrics-svc.yaml @@ -0,0 +1,26 @@ +{{- if .Values.metrics.enabled }} +apiVersion: v1 +kind: Service +metadata: + name: {{ template "postgresql.fullname" . }}-metrics + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} + annotations: +{{ toYaml .Values.metrics.service.annotations | indent 4 }} +spec: + type: {{ .Values.metrics.service.type }} + {{- if and (eq .Values.metrics.service.type "LoadBalancer") .Values.metrics.service.loadBalancerIP }} + loadBalancerIP: {{ .Values.metrics.service.loadBalancerIP }} + {{- end }} + ports: + - name: metrics + port: 9187 + targetPort: metrics + selector: + app: {{ template "postgresql.name" . }} + release: {{ .Release.Name }} + role: metrics +{{- end }} diff --git a/upstreamed/postgresql/templates/networkpolicy.yaml b/upstreamed/postgresql/templates/networkpolicy.yaml new file mode 100644 index 0000000000..40496a763f --- /dev/null +++ b/upstreamed/postgresql/templates/networkpolicy.yaml @@ -0,0 +1,29 @@ +{{- if .Values.networkPolicy.enabled }} +kind: NetworkPolicy +apiVersion: {{ template "postgresql.networkPolicy.apiVersion" . }} +metadata: + name: {{ template "postgresql.fullname" . }} + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +spec: + podSelector: + matchLabels: + app: {{ template "postgresql.name" . }} + release: {{ .Release.Name | quote }} + ingress: + # Allow inbound connections + - ports: + - port: 5432 + {{- if not .Values.networkPolicy.allowExternal }} + from: + - podSelector: + matchLabels: + {{ template "postgresql.fullname" . }}-client: "true" + {{- end }} + # Allow prometheus scrapes + - ports: + - port: 9187 +{{- end }} diff --git a/upstreamed/postgresql/templates/secrets.yaml b/upstreamed/postgresql/templates/secrets.yaml new file mode 100644 index 0000000000..3ba26396f5 --- /dev/null +++ b/upstreamed/postgresql/templates/secrets.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ template "postgresql.fullname" . }} + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +type: Opaque +data: + {{ if .Values.postgresqlPassword }} + postgresql-password: {{ .Values.postgresqlPassword | b64enc | quote }} + {{ else }} + postgresql-password: {{ randAlphaNum 10 | b64enc | quote }} + {{ end }} + {{ if .Values.replication.enabled }} + {{ if .Values.replication.password }} + postgresql-replication-password: {{ .Values.replication.password | b64enc | quote }} + {{ else }} + postgresql-replication-password: {{ randAlphaNum 10 | b64enc | quote }} + {{ end }} + {{ end }} diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml new file mode 100644 index 0000000000..818f0ad4ec --- /dev/null +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -0,0 +1,155 @@ +{{- if .Values.replication.enabled }} +apiVersion: apps/v1beta2 +kind: StatefulSet +metadata: + name: "{{ template "postgresql.fullname" . }}-slave" + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +spec: + serviceName: {{ template "postgresql.fullname" . }}-headless + replicas: {{ .Values.replication.slaveReplicas }} + updateStrategy: + type: RollingUpdate + selector: + matchLabels: + app: {{ template "postgresql.name" . }} + release: {{ .Release.Name | quote }} + role: slave + template: + metadata: + name: "{{ template "postgresql.fullname" . }}" + labels: + app: "{{ template "postgresql.name" . }}" + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} + role: slave + spec: + {{- if .Values.securityContext.enabled }} + securityContext: + fsGroup: {{ .Values.securityContext.fsGroup }} + runAsUser: {{ .Values.securityContext.runAsUser }} + {{- end }} + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end}} + {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: +{{ toYaml .Values.tolerations | indent 8 }} + {{- end }} + containers: + - name: "{{ template "postgresql.fullname" . }}" + image: "{{ template "postgresql.image" . }}" + imagePullPolicy: "{{ .Values.image.pullPolicy }}" + resources: +{{ toYaml .Values.Resources | indent 10 }} + env: + {{- if .Values.image.debug}} + - name: BASH_DEBUG + value: 1 + - name: NAMI_DEBUG + value: 1 + {{- end }} + - name: POSTGRESQL_REPLICATION_MODE + value: "slave" + - name: POSTGRESQL_REPLICATION_USER + value: {{ .Values.replication.user | quote }} + - name: POSTGRESQL_REPLICATION_PASSWORD + valueFrom: + secretKeyRef: + name: {{ template "postgresql.fullname" . }} + key: postgresql-replication-password + - name: POSTGRESQL_MASTER_HOST + value: {{ template "postgresql.fullname" . }} + - name: POSTGRESQL_MASTER_PORT_NUMBER + value: {{ .Values.service.port | quote }} + - name: POD_IP + valueFrom: { fieldRef: { fieldPath: status.podIP } } + ports: + - name: postgresql + containerPort: {{ .Values.service.port }} + {{- if .Values.livenessProbe.enabled }} + livenessProbe: + exec: + command: + - sh + - -c + - exec pg_isready -U {{ .Values.postgresqlUsername | quote }} --host $POD_IP + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + {{- end }} + {{- if .Values.readinessProbe.enabled }} + readinessProbe: + exec: + command: + - sh + - -c + - exec pg_isready -U {{ .Values.postgresqlUsername | quote }} --host $POD_IP + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + {{- end }} + volumeMounts: + {{- if .Values.persistence.enabled }} + - name: data + mountPath: /bitnami/postgresql + {{ end }} + {{ if (.Files.Glob "files/postgresql.conf") }} + - name: postgresql-config + mountPath: /opt/bitnami/postgresql/conf/postgresql.conf + subPath: postgresql.conf + {{ end }} + {{ if (.Files.Glob "files/pg_hba.conf") }} + - name: postgresql-config + mountPath: /opt/bitnami/postgresql/conf/pg_hba.conf + subPath: pg_hba.conf + {{ end }} + volumes: + {{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") }} + - name: postgresql-config + configMap: + name: {{ template "postgresql.fullname" . }}-configuration + {{ end }} +{{- if .Values.persistence.enabled }} + volumeClaimTemplates: + - metadata: + name: data + annotations: + {{- range $key, $value := .Values.persistence.annotations }} + {{ $key }}: {{ $value }} + {{- end }} + spec: + accessModes: + {{- range .Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} + {{- if .Values.persistence.storageClass }} + {{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: "{{ .Values.persistence.storageClass }}" + {{- end }} + {{- end }} +{{- else }} + - name: data + emptyDir: {} +{{- end }} +{{- end }} diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml new file mode 100644 index 0000000000..583d46759e --- /dev/null +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -0,0 +1,165 @@ +apiVersion: apps/v1beta2 +kind: StatefulSet +metadata: + name: "{{ template "postgresql.master.fullname" . }}" + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +spec: + serviceName: {{ template "postgresql.fullname" . }}-headless + replicas: 1 + updateStrategy: + type: RollingUpdate + selector: + matchLabels: + app: {{ template "postgresql.name" . }} + release: {{ .Release.Name | quote }} + role: master + template: + metadata: + name: "{{ template "postgresql.fullname" . }}" + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} + role: master + spec: + {{- if .Values.securityContext.enabled }} + securityContext: + fsGroup: {{ .Values.securityContext.fsGroup }} + runAsUser: {{ .Values.securityContext.runAsUser }} + {{- end }} + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end}} + {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: +{{ toYaml .Values.tolerations | indent 8 }} + {{- end }} + {{- if .Values.terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} + {{- end }} + containers: + - name: "{{ template "postgresql.fullname" . }}" + image: "{{ template "postgresql.image" . }}" + imagePullPolicy: "{{ .Values.image.pullPolicy }}" + resources: +{{ toYaml .Values.Resources | indent 10 }} + env: + {{- if .Values.replication.enabled }} + - name: POSTGRESQL_REPLICATION_MODE + value: "master" + - name: POSTGRESQL_REPLICATION_USER + value: {{ .Values.replication.user | quote }} + - name: POSTGRESQL_REPLICATION_PASSWORD + valueFrom: + secretKeyRef: + name: {{ template "postgresql.fullname" . }} + key: postgresql-replication-password + {{- end }} + - name: POSTGRESQL_USERNAME + value: {{ .Values.postgresqlUsername | quote }} + - name: POSTGRESQL_PASSWORD + valueFrom: + secretKeyRef: + name: {{ template "postgresql.fullname" . }} + key: postgresql-password + - name: POSTGRESQL_DATABASE + value: {{ .Values.postgresqlDatabase | quote }} + - name: POD_IP + valueFrom: { fieldRef: { fieldPath: status.podIP } } +{{- if .Values.extraEnv }} +{{ toYaml .Values.extraEnv | indent 8 }} +{{- end }} + ports: + - name: postgresql + containerPort: {{ .Values.service.port }} + {{- if .Values.livenessProbe.enabled }} + livenessProbe: + exec: + command: + - sh + - -c + - exec pg_isready -U {{ .Values.postgresqlUsername | quote }} --host $POD_IP + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + {{- end }} + {{- if .Values.readinessProbe.enabled }} + readinessProbe: + exec: + command: + - sh + - -c + - exec pg_isready -U {{ .Values.postgresqlUsername | quote }} --host $POD_IP + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + {{- end }} + volumeMounts: + - name: custom-init-scripts + mountPath: /docker-entrypoint-initdb.d + {{- if .Values.persistence.enabled }} + - name: data + mountPath: /bitnami/postgresql + {{ end }} + {{ if (.Files.Glob "files/postgresql.conf") }} + - name: postgresql-config + mountPath: /opt/bitnami/postgresql/conf/postgresql.conf + subPath: postgresql.conf + {{ end }} + {{ if (.Files.Glob "files/pg_hba.conf") }} + - name: postgresql-config + mountPath: /opt/bitnami/postgresql/conf/pg_hba.conf + subPath: pg_hba.conf + {{ end }} + volumes: + {{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") }} + - name: postgresql-config + configMap: + name: {{ template "postgresql.fullname" . }}-configuration + {{ end }} + - name: custom-init-scripts + configMap: + name: {{ template "postgresql.fullname" . }}-init-scripts +{{- if .Values.persistence.enabled }} + volumeClaimTemplates: + - metadata: + name: data + annotations: + {{- range $key, $value := .Values.persistence.annotations }} + {{ $key }}: {{ $value }} + {{- end }} + spec: + accessModes: + {{- range .Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} + {{- if .Values.persistence.storageClass }} + {{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: "{{ .Values.persistence.storageClass }}" + {{- end }} + {{- end }} +{{- else }} + - name: data + emptyDir: {} +{{- end }} diff --git a/upstreamed/postgresql/templates/svc-headless.yaml b/upstreamed/postgresql/templates/svc-headless.yaml new file mode 100644 index 0000000000..9414d609a3 --- /dev/null +++ b/upstreamed/postgresql/templates/svc-headless.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "postgresql.fullname" . }}-headless + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +spec: + type: ClusterIP + clusterIP: None + ports: + - name: postgresql + port: 5432 + targetPort: postgresql + selector: + app: {{ template "postgresql.name" . }} + release: {{ .Release.Name | quote }} diff --git a/upstreamed/postgresql/templates/svc.yaml b/upstreamed/postgresql/templates/svc.yaml new file mode 100644 index 0000000000..702bd57841 --- /dev/null +++ b/upstreamed/postgresql/templates/svc.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "postgresql.fullname" . }} + labels: + app: {{ template "postgresql.name" . }} + chart: {{ template "postgresql.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +spec: + type: {{ .Values.service.type }} + ports: + - name: postgresql + port: 5432 + targetPort: postgresql + selector: + app: {{ template "postgresql.name" . }} + release: {{ .Release.Name | quote }} + role: master diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml new file mode 100644 index 0000000000..a00bda92e2 --- /dev/null +++ b/upstreamed/postgresql/values-production.yaml @@ -0,0 +1,170 @@ +## Bitnami PostgreSQL image version +## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ +## +image: + registry: docker.io + repository: bitnami/postgresql + tag: 10.5.0 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images + ## + pullPolicy: Always + + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Set to true if you would like to see extra information on logs + ## It turns BASH and NAMI debugging in minideb + ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging + debug: false + +## Pod Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ +## +securityContext: + enabled: true + fsGroup: 1001 + runAsUser: 1001 + +replication: + enabled: true + user: repl_user + password: repl_password + slaveReplicas: 1 + +## PostgreSQL admin user +## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run +postgresqlUsername: postgres + +## PostgreSQL password +## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run +## +# postgresqlPassword: + +## Create a database +## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run +## +# postgresqlDatabase: + +## Kubernetes configuration +## For minikube, set this to NodePort, elsewhere use LoadBalancer +## +service: + type: ClusterIP + port: 5432 + +## PostgreSQL data Persistent Volume Storage Class +## If defined, storageClassName: +## If set to "-", storageClassName: "", which disables dynamic provisioning +## If undefined (the default) or set to null, no storageClassName spec is +## set, choosing the default provisioner. (gp2 on AWS, standard on +## GKE, AWS & OpenStack) +## +persistence: + enabled: true + # storageClass: "-" + accessModes: + - ReadWriteOnce + size: 8Gi + annotations: {} + +## Node labels and tolerations for pod assignment +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature +nodeSelector: {} +tolerations: [] + +## Configure resource requests and limits +## ref: http://kubernetes.io/docs/user-guide/compute-resources/ +## +resources: + requests: + memory: 256Mi + cpu: 250m + +networkPolicy: + ## Enable creation of NetworkPolicy resources. + ## + enabled: false + + ## The Policy model to apply. When set to false, only pods with the correct + ## client label will have network access to the port PostgreSQL is listening + ## on. When true, PostgreSQL will accept connections from any source + ## (with the correct destination port). + ## + allowExternal: true + +## Configure extra options for liveness and readiness probes +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) +livenessProbe: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +## Configure metrics exporter +## +metrics: + enabled: true + # resources: {} + # podAnnotations: {} + service: + type: ClusterIP + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9187" + loadBalancerIP: + image: + registry: docker.io + repository: wrouesnel/postgres_exporter + tag: v0.4.6 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Metrics exporter labels and tolerations for pod assignment + # nodeSelector: {"beta.kubernetes.io/arch": "amd64"} + # tolerations: [] + + ## Metrics exporter pod Annotation and Labels + # podLabels: {} + + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) + ## Configure extra options for liveness and readiness probes + livenessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + + readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +# Define custom environment variables to pass to the image here +extraEnv: {} diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml new file mode 100644 index 0000000000..ffe8829684 --- /dev/null +++ b/upstreamed/postgresql/values.yaml @@ -0,0 +1,175 @@ +## Bitnami PostgreSQL image version +## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ +## +image: + registry: docker.io + repository: bitnami/postgresql + tag: 10.5.0 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images + ## + pullPolicy: Always + + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Set to true if you would like to see extra information on logs + ## It turns BASH and NAMI debugging in minideb + ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging + debug: false + +## Pod Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ +## +securityContext: + enabled: true + fsGroup: 1001 + runAsUser: 1001 + +replication: + enabled: false + user: repl_user + password: repl_password + slaveReplicas: 1 + +## PostgreSQL admin user +## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run +postgresqlUsername: postgres + +## PostgreSQL password +## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run +## +# postgresqlPassword: + +## Create a database +## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run +## +# postgresqlDatabase: + +## Optional duration in seconds the pod needs to terminate gracefully. +## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods +## +# terminationGracePeriodSeconds: 30 + +## Kubernetes configuration +## For minikube, set this to NodePort, elsewhere use LoadBalancer +## +service: + type: ClusterIP + port: 5432 + +## PostgreSQL data Persistent Volume Storage Class +## If defined, storageClassName: +## If set to "-", storageClassName: "", which disables dynamic provisioning +## If undefined (the default) or set to null, no storageClassName spec is +## set, choosing the default provisioner. (gp2 on AWS, standard on +## GKE, AWS & OpenStack) +## +persistence: + enabled: true + # storageClass: "-" + accessModes: + - ReadWriteOnce + size: 8Gi + annotations: {} + +## Node labels and tolerations for pod assignment +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature +nodeSelector: {} +tolerations: [] + +## Configure resource requests and limits +## ref: http://kubernetes.io/docs/user-guide/compute-resources/ +## +resources: + requests: + memory: 256Mi + cpu: 250m + +networkPolicy: + ## Enable creation of NetworkPolicy resources. + ## + enabled: false + + ## The Policy model to apply. When set to false, only pods with the correct + ## client label will have network access to the port PostgreSQL is listening + ## on. When true, PostgreSQL will accept connections from any source + ## (with the correct destination port). + ## + allowExternal: true + +## Configure extra options for liveness and readiness probes +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) +livenessProbe: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +## Configure metrics exporter +## +metrics: + enabled: false + # resources: {} + # podAnnotations: {} + service: + type: ClusterIP + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9187" + loadBalancerIP: + image: + registry: docker.io + repository: wrouesnel/postgres_exporter + tag: v0.4.6 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Metrics exporter labels and tolerations for pod assignment + # nodeSelector: {"beta.kubernetes.io/arch": "amd64"} + # tolerations: [] + + ## Metrics exporter pod Annotation and Labels + # podLabels: {} + + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) + ## Configure extra options for liveness and readiness probes + livenessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + + readinessProbe: + enabled: true + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + successThreshold: 1 + +# Define custom environment variables to pass to the image here +extraEnv: {} From 39a69d5168eed24c215af631c09d349111604db8 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Wed, 24 Oct 2018 11:44:34 +0200 Subject: [PATCH 051/153] [bitnami/tensorflow-inception] Fix persistence conflicts Signed-off-by: Javier J. Salmeron Garcia --- bitnami/tensorflow-inception/Chart.yaml | 2 +- .../templates/deployment.yaml | 26 ++++++++++-- .../templates/inception-job.yaml | 41 ------------------- .../templates/inception-pvc.yaml | 15 ------- bitnami/tensorflow-inception/values.yaml | 2 + 5 files changed, 26 insertions(+), 60 deletions(-) delete mode 100644 bitnami/tensorflow-inception/templates/inception-job.yaml delete mode 100644 bitnami/tensorflow-inception/templates/inception-pvc.yaml diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index 014b7f230b..193253288d 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,5 +1,5 @@ name: tensorflow-inception -version: 2.0.0 +version: 3.0.0 appVersion: 1.10.1 description: Open-source software library for serving machine learning models keywords: diff --git a/bitnami/tensorflow-inception/templates/deployment.yaml b/bitnami/tensorflow-inception/templates/deployment.yaml index 6de220f07c..289d133d6c 100644 --- a/bitnami/tensorflow-inception/templates/deployment.yaml +++ b/bitnami/tensorflow-inception/templates/deployment.yaml @@ -12,7 +12,7 @@ spec: matchLabels: app: {{ template "fullname" . }} release: "{{ .Release.Name }}" - replicas: 1 + replicas: {{ .Values.replicaCount }} template: metadata: labels: @@ -26,6 +26,27 @@ spec: - name: {{ . }} {{- end}} {{- end }} + initContainers: + - name: seed + image: "{{ template "tensorflow-inception.client.image" . }}" + imagePullPolicy: {{ .Values.client.image.pullPolicy | quote }} + command: + - "/bin/sh" + - "-c" + - | + if [ -f /seed/.initialized ];then + echo "Already initialized. Skipping" + else + curl -o /seed/inception-v3-2016-03-01.tar.gz http://download.tensorflow.org/models/image/imagenet/inception-v3-2016-03-01.tar.gz + cd /seed/ && tar -xzf inception-v3-2016-03-01.tar.gz + rm inception-v3-2016-03-01.tar.gz + inception_saved_model --checkpoint_dir=/seed/inception-v3 --output_dir=/seed/ + rm -rf inception-v3 + touch /seed/.initialized + fi + volumeMounts: + - name: seed + mountPath: /seed containers: - name: {{ template "fullname" . }} image: "{{ template "tensorflow-inception.server.image" . }}" @@ -45,5 +66,4 @@ spec: mountPath: "/bitnami/model-data" volumes: - name: seed - persistentVolumeClaim: - claimName: {{ template "fullname" . }}-seed-inception \ No newline at end of file + emptyDir: {} diff --git a/bitnami/tensorflow-inception/templates/inception-job.yaml b/bitnami/tensorflow-inception/templates/inception-job.yaml deleted file mode 100644 index 21ec859e42..0000000000 --- a/bitnami/tensorflow-inception/templates/inception-job.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ template "fullname" . }}-seed-inception - labels: - app: {{ template "fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - template: - metadata: - name: seed-inception - spec: - containers: - {{- if .Values.client.image.pullSecrets }} - imagePullSecrets: - {{- range .Values.client.image.pullSecrets }} - - name: {{ . }} - {{- end}} - {{- end }} - - name: seed - image: "{{ template "tensorflow-inception.client.image" . }}" - imagePullPolicy: {{ .Values.client.image.pullPolicy | quote }} - command: - - "/bin/sh" - - "-c" - - | - curl -o /seed/inception-v3-2016-03-01.tar.gz http://download.tensorflow.org/models/image/imagenet/inception-v3-2016-03-01.tar.gz - cd /seed/ && tar -xzf inception-v3-2016-03-01.tar.gz - rm inception-v3-2016-03-01.tar.gz - inception_saved_model --checkpoint_dir=/seed/inception-v3 --output_dir=/seed/ - rm -rf inception-v3 - volumeMounts: - - name: seed - mountPath: /seed - restartPolicy: Never - volumes: - - name: seed - persistentVolumeClaim: - claimName: {{ template "fullname" . }}-seed-inception diff --git a/bitnami/tensorflow-inception/templates/inception-pvc.yaml b/bitnami/tensorflow-inception/templates/inception-pvc.yaml deleted file mode 100644 index 84d5b34a86..0000000000 --- a/bitnami/tensorflow-inception/templates/inception-pvc.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: {{ template "fullname" . }}-seed-inception - labels: - app: {{ template "fullname" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 500Mi diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index ef1703833d..e739f02c3e 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -4,6 +4,8 @@ # global: # imageRegistry: +replicaCount: 1 + ## TensorFlow Serving server image version ## ref: https://hub.docker.com/r/bitnami/tensorflow-serving/tags/ ## From 445063b2b619f83d0e432b316dd7c20e8e080bff Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Wed, 24 Oct 2018 11:47:10 +0200 Subject: [PATCH 052/153] Update readme Signed-off-by: Javier J. Salmeron Garcia --- bitnami/tensorflow-inception/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/bitnami/tensorflow-inception/README.md b/bitnami/tensorflow-inception/README.md index 2466a598f4..3c539a6563 100755 --- a/bitnami/tensorflow-inception/README.md +++ b/bitnami/tensorflow-inception/README.md @@ -63,6 +63,7 @@ The following tables lists the configurable parameters of the TensorFlow Incepti | Parameter | Description | Default | | ------------------------------- | -------------------------------------- | ---------------------------------------------------------- | | `global.imageRegistry` | Global Docker image registry | `nil` | +| `replicaCount` | desired number of pods | `1` | | `server.image.registry` | TensorFlow Serving image registry | `docker.io` | | `server.image.repository` | TensorFlow Serving Image name | `bitnami/tensorflow-serving` | | `server.image.tag` | TensorFlow Serving Image tag | `{VERSION}` | From f4e21a580f8a10280330780aeca456c6fc3e2de8 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 24 Oct 2018 10:37:15 +0000 Subject: [PATCH 053/153] Synchronize upstreamed folder to e44cbede --- upstreamed/postgresql/Chart.yaml | 2 +- upstreamed/postgresql/README.md | 3 ++- upstreamed/postgresql/templates/_helpers.tpl | 21 ++++++++++++++++--- .../templates/statefulset-slaves.yaml | 8 +++---- .../postgresql/templates/statefulset.yaml | 8 +++---- upstreamed/postgresql/values-production.yaml | 6 ++++++ upstreamed/postgresql/values.yaml | 6 ++++++ upstreamed/rabbitmq/.helmignore | 1 + upstreamed/rabbitmq/Chart.yaml | 4 +++- upstreamed/rabbitmq/OWNERS | 14 +++++++------ upstreamed/redis/Chart.yaml | 4 +++- upstreamed/redis/OWNERS | 14 +++++++------ upstreamed/redmine/.helmignore | 1 + upstreamed/redmine/Chart.yaml | 2 +- upstreamed/redmine/requirements.lock | 8 +++---- upstreamed/redmine/requirements.yaml | 2 +- upstreamed/redmine/values.yaml | 2 ++ 17 files changed, 73 insertions(+), 33 deletions(-) diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 60d42e2329..0d68d8a74d 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.0.0 +version: 2.1.0 appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md index 355ba30b44..18b1c8faf1 100644 --- a/upstreamed/postgresql/README.md +++ b/upstreamed/postgresql/README.md @@ -47,8 +47,9 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | Parameter | Description | Default | |----------------------------|-------------------------------------------|---------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | PostgreSQL image registry | `docker.io` | -| `image.repository` | PostgreSQL Image name | `stable/postgresql` | +| `image.repository` | PostgreSQL Image name | `stable/postgresql` | | `image.tag` | PostgreSQL Image tag | `{VERSION}` | | `image.pullPolicy` | PostgreSQL image pull policy | `Always` | | `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | diff --git a/upstreamed/postgresql/templates/_helpers.tpl b/upstreamed/postgresql/templates/_helpers.tpl index 76f5a17733..90627d6094 100644 --- a/upstreamed/postgresql/templates/_helpers.tpl +++ b/upstreamed/postgresql/templates/_helpers.tpl @@ -50,10 +50,25 @@ Create chart name and version as used by the chart label. Return the proper PostgreSQL image name */}} {{- define "postgresql.image" -}} -{{- $registryName := default "docker.io" .Values.image.registry -}} -{{- $tag := default "latest" .Values.image.tag | toString -}} -{{- printf "%s/%s:%s" $registryName .Values.image.repository $tag -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} +{{- end -}} + {{/* Return the proper PostgreSQL metrics image name diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml index 818f0ad4ec..a8da82f7e4 100644 --- a/upstreamed/postgresql/templates/statefulset-slaves.yaml +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -20,9 +20,9 @@ spec: role: slave template: metadata: - name: "{{ template "postgresql.fullname" . }}" + name: {{ template "postgresql.fullname" . }} labels: - app: "{{ template "postgresql.name" . }}" + app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} @@ -48,8 +48,8 @@ spec: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} containers: - - name: "{{ template "postgresql.fullname" . }}" - image: "{{ template "postgresql.image" . }}" + - name: {{ template "postgresql.fullname" . }} + image: {{ template "postgresql.image" . }} imagePullPolicy: "{{ .Values.image.pullPolicy }}" resources: {{ toYaml .Values.Resources | indent 10 }} diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml index 583d46759e..edb4e73096 100644 --- a/upstreamed/postgresql/templates/statefulset.yaml +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -1,7 +1,7 @@ apiVersion: apps/v1beta2 kind: StatefulSet metadata: - name: "{{ template "postgresql.master.fullname" . }}" + name: {{ template "postgresql.master.fullname" . }} labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} @@ -19,7 +19,7 @@ spec: role: master template: metadata: - name: "{{ template "postgresql.fullname" . }}" + name: {{ template "postgresql.fullname" . }} labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} @@ -50,8 +50,8 @@ spec: terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- end }} containers: - - name: "{{ template "postgresql.fullname" . }}" - image: "{{ template "postgresql.image" . }}" + - name: {{ template "postgresql.fullname" . }} + image: {{ template "postgresql.image" . }} imagePullPolicy: "{{ .Values.image.pullPolicy }}" resources: {{ toYaml .Values.Resources | indent 10 }} diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index a00bda92e2..76fd3bc1b6 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +### Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +### +## global: +## imageRegistry: + ## Bitnami PostgreSQL image version ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ ## diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index ffe8829684..79d45cf0e8 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -1,3 +1,9 @@ +## Global Docker image registry +### Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +### +## global: +## imageRegistry: + ## Bitnami PostgreSQL image version ## ref: https://hub.docker.com/r/bitnami/postgresql/tags/ ## diff --git a/upstreamed/rabbitmq/.helmignore b/upstreamed/rabbitmq/.helmignore index 6b8710a711..acbcabf42a 100644 --- a/upstreamed/rabbitmq/.helmignore +++ b/upstreamed/rabbitmq/.helmignore @@ -1 +1,2 @@ .git +OWNERS diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index 9935caa2cc..e6b1a9537b 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.5.1 +version: 3.5.2 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: @@ -13,4 +13,6 @@ sources: maintainers: - name: Bitnami email: containers@bitnami.com +- name: desaintmartin + email: cedric@desaintmartin.fr engine: gotpl diff --git a/upstreamed/rabbitmq/OWNERS b/upstreamed/rabbitmq/OWNERS index 2c3e9fa1a4..0e93555cff 100644 --- a/upstreamed/rabbitmq/OWNERS +++ b/upstreamed/rabbitmq/OWNERS @@ -1,12 +1,14 @@ approvers: -- prydonius -- tompizmor -- sameersbn - carrodher +- desaintmartin - juan131 +- prydonius +- sameersbn +- tompizmor reviewers: -- prydonius -- tompizmor -- sameersbn - carrodher +- desaintmartin - juan131 +- prydonius +- sameersbn +- tompizmor diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 0547a9bcc9..11f5e120aa 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.2 +version: 4.2.3 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: @@ -13,4 +13,6 @@ sources: maintainers: - name: Bitnami email: containers@bitnami.com +- name: desaintmartin + email: cedric@desaintmartin.fr engine: gotpl diff --git a/upstreamed/redis/OWNERS b/upstreamed/redis/OWNERS index e74df3ff33..0e93555cff 100644 --- a/upstreamed/redis/OWNERS +++ b/upstreamed/redis/OWNERS @@ -1,12 +1,14 @@ approvers: -- prydonius -- tompizmor -- sameersbn - carrodher +- desaintmartin - juan131 -reviewers: - prydonius -- tompizmor - sameersbn +- tompizmor +reviewers: - carrodher -- juan131 \ No newline at end of file +- desaintmartin +- juan131 +- prydonius +- sameersbn +- tompizmor diff --git a/upstreamed/redmine/.helmignore b/upstreamed/redmine/.helmignore index 6b8710a711..acbcabf42a 100644 --- a/upstreamed/redmine/.helmignore +++ b/upstreamed/redmine/.helmignore @@ -1 +1,2 @@ .git +OWNERS diff --git a/upstreamed/redmine/Chart.yaml b/upstreamed/redmine/Chart.yaml index 6c83d11d64..8324ec861e 100644 --- a/upstreamed/redmine/Chart.yaml +++ b/upstreamed/redmine/Chart.yaml @@ -1,5 +1,5 @@ name: redmine -version: 5.2.1 +version: 6.0.0 appVersion: 3.4.6 description: A flexible project management web application. keywords: diff --git a/upstreamed/redmine/requirements.lock b/upstreamed/redmine/requirements.lock index 10b9c79ee7..6b8afb6465 100644 --- a/upstreamed/redmine/requirements.lock +++ b/upstreamed/redmine/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.1 - name: postgresql repository: https://kubernetes-charts.storage.googleapis.com/ - version: 0.19.0 -digest: sha256:bd7da903db69d89a8de155f6259a2ef20de455280360674b2955bb6515c13eee -generated: 2018-10-16T08:50:37.621182+02:00 + version: 2.1.0 +digest: sha256:0634de3cb0459ae2959df51ccac306fff4ae4618410bf6fae996ab085dbad62f +generated: 2018-10-24T11:56:52.143391+02:00 diff --git a/upstreamed/redmine/requirements.yaml b/upstreamed/redmine/requirements.yaml index df2235b736..23f9773609 100644 --- a/upstreamed/redmine/requirements.yaml +++ b/upstreamed/redmine/requirements.yaml @@ -4,6 +4,6 @@ dependencies: repository: https://kubernetes-charts.storage.googleapis.com/ condition: databaseType.mariadb - name: postgresql - version: 0.x.x + version: 2.x.x repository: https://kubernetes-charts.storage.googleapis.com/ condition: databaseType.postgresql diff --git a/upstreamed/redmine/values.yaml b/upstreamed/redmine/values.yaml index dc375723c6..a4049c52a0 100644 --- a/upstreamed/redmine/values.yaml +++ b/upstreamed/redmine/values.yaml @@ -114,6 +114,8 @@ mariadb: ## ## PostgreSQL chart configuration ## +## https://github.com/helm/charts/blob/master/stable/postgresql/values.yaml +## postgresql: ## PostgreSQL admin password ## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run From 346fdfdbc5dc4276fef52f635394d8102a8e9cef Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Thu, 25 Oct 2018 07:53:08 +0000 Subject: [PATCH 054/153] Synchronize upstreamed folder to e0379852 --- upstreamed/mariadb/Chart.yaml | 2 +- upstreamed/mariadb/README.md | 2 +- upstreamed/odoo/.helmignore | 1 + upstreamed/odoo/Chart.yaml | 2 +- upstreamed/odoo/requirements.lock | 6 +- upstreamed/odoo/requirements.yaml | 2 +- upstreamed/odoo/templates/deployment.yaml | 2 +- upstreamed/odoo/values.yaml | 2 + upstreamed/postgresql/Chart.yaml | 2 +- upstreamed/postgresql/README.md | 110 ++++++++++--------- upstreamed/postgresql/templates/svc.yaml | 12 +- upstreamed/postgresql/values-production.yaml | 17 ++- upstreamed/postgresql/values.yaml | 17 ++- upstreamed/redmine/Chart.yaml | 2 +- upstreamed/redmine/templates/deployment.yaml | 2 +- 15 files changed, 110 insertions(+), 71 deletions(-) diff --git a/upstreamed/mariadb/Chart.yaml b/upstreamed/mariadb/Chart.yaml index 74e1b67790..51744a2dd8 100644 --- a/upstreamed/mariadb/Chart.yaml +++ b/upstreamed/mariadb/Chart.yaml @@ -1,5 +1,5 @@ name: mariadb -version: 5.2.1 +version: 5.2.2 appVersion: 10.1.36 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: diff --git a/upstreamed/mariadb/README.md b/upstreamed/mariadb/README.md index 042c6ff73f..557de504e4 100644 --- a/upstreamed/mariadb/README.md +++ b/upstreamed/mariadb/README.md @@ -167,7 +167,7 @@ It's necessary to set the `rootUser.password` parameter when upgrading for readi $ helm upgrade my-release stable/mariadb --set rootUser.password=[ROOT_PASSWORD] ``` -| Note: you need to substitue the placeholder _[ROOT_PASSWORD]_ with the value obtained in the installation notes. +| Note: you need to substitute the placeholder _[ROOT_PASSWORD]_ with the value obtained in the installation notes. ### To 5.0.0 diff --git a/upstreamed/odoo/.helmignore b/upstreamed/odoo/.helmignore index 6b8710a711..acbcabf42a 100644 --- a/upstreamed/odoo/.helmignore +++ b/upstreamed/odoo/.helmignore @@ -1 +1,2 @@ .git +OWNERS diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index 321ec20661..a86ffea2e1 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 3.2.2 +version: 4.0.0 appVersion: 11.0.20181015 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/upstreamed/odoo/requirements.lock b/upstreamed/odoo/requirements.lock index 6c3e3cfd88..0654004aa1 100644 --- a/upstreamed/odoo/requirements.lock +++ b/upstreamed/odoo/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: postgresql repository: https://kubernetes-charts.storage.googleapis.com/ - version: 0.19.0 -digest: sha256:88ef0719267ade838b784ffd08d91a6728350516344d5cd7089502587c982ded -generated: 2018-10-16T08:49:00.660599+02:00 + version: 2.1.0 +digest: sha256:972c7085960fbe4a3f530f726f5a1cc6fe038f0ab84df632f6427c3a49f3f366 +generated: 2018-10-24T11:56:43.864565+02:00 diff --git a/upstreamed/odoo/requirements.yaml b/upstreamed/odoo/requirements.yaml index 076637e7ba..8b19b44566 100644 --- a/upstreamed/odoo/requirements.yaml +++ b/upstreamed/odoo/requirements.yaml @@ -1,4 +1,4 @@ dependencies: - name: postgresql - version: 0.x.x + version: 2.x.x repository: https://kubernetes-charts.storage.googleapis.com/ diff --git a/upstreamed/odoo/templates/deployment.yaml b/upstreamed/odoo/templates/deployment.yaml index 4a1a481822..6ab0986ff5 100644 --- a/upstreamed/odoo/templates/deployment.yaml +++ b/upstreamed/odoo/templates/deployment.yaml @@ -38,7 +38,7 @@ spec: valueFrom: secretKeyRef: name: {{ template "odoo.postgresql.fullname" . }} - key: postgres-password + key: postgresql-password - name: ODOO_EMAIL value: {{ .Values.odooEmail | quote }} - name: ODOO_PASSWORD diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index bca6e75c1b..4d287c4d44 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -50,6 +50,8 @@ odooEmail: user@example.com ## ## PostgreSQL chart configuration ## +## https://github.com/helm/charts/blob/master/stable/postgresql/values.yaml +## postgresql: ## PostgreSQL password ## ref: https://hub.docker.com/_/postgres/ diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 0d68d8a74d..d39f919c9d 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.1.0 +version: 2.2.0 appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md index 18b1c8faf1..24a553e92a 100644 --- a/upstreamed/postgresql/README.md +++ b/upstreamed/postgresql/README.md @@ -45,59 +45,63 @@ The command removes all the Kubernetes components associated with the chart and The following tables lists the configurable parameters of the PostgreSQL chart and their default values. -| Parameter | Description | Default | -|----------------------------|-------------------------------------------|---------------------------------------------------------- | -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | PostgreSQL image registry | `docker.io` | -| `image.repository` | PostgreSQL Image name | `stable/postgresql` | -| `image.tag` | PostgreSQL Image tag | `{VERSION}` | -| `image.pullPolicy` | PostgreSQL image pull policy | `Always` | -| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `image.debug` | Specify if debug values should be set | `false` | -| `replication.enabled` | Would you like to enable replication | `false` | -| `replication.user` | Replication user | `repl_user` | -| `replication.password` | Replication user password | `repl_password` | -| `replication.slaveReplicas`| Number of slaves replicas | `1` | -| `postgresqlUsername` | PostgreSQL admin user | `postgres` | -| `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | -| `postgresqlDatabase` | PostgreSQL database | `nil` | -| `service.type` | Kubernetes Service type | `ClusterIP` | -| `service.port` | PostgreSQL port | `5432` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.storageClass` | PVC Storage Class for PostgreSQL volume | `nil` | -| `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | -| `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | -| `persistence.annotations` | Annotations for the PVC | `{}` | -| `nodeSelector` | Node labels for pod assignment | `{}` | -| `tolerations` | Toleration labels for pod assignment | `[]` | -| `terminationGracePeriodSeconds` | Optional duration in seconds the pod needs to terminate gracefully | `nil` | -| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | `livenessProbe.enabled` | would you like a livessProbed to be enabled | `true` | -| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | -| `networkPolicy.allowExternal` | Don't require client label for connections | `true` | -| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | -| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | -| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | -| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | -| `readinessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 5 | -| `readinessProbe.periodSeconds` | How often to perform the probe | 10 | -| `readinessProbe.timeoutSeconds` | When the probe times out | 5 | -| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `metrics.enabled` | Start a prometheus exporter | `false` | -| `metrics.service.type` | Kubernetes Service type | `ClusterIP` | -| `metrics.service.annotatios` | Additional annotations for metrics exporter pod | `{}` | -| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | -| `metrics.image.registry` | PostgreSQL image registry | `docker.io` | -| `metrics.image.repository` | PostgreSQL Image name | `wrouesnel/postgres_exporter` | -| `metrics.image.tag` | PostgreSQL Image tag | `{VERSION}` | -| `metrics.image.pullPolicy` | PostgreSQL image pull policy | `IfNotPresent` | -| `metrics.image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `extraEnv` | Any extra environment variables you would like to pass on to the pod | {} | +| Parameter | Description | Default | +|--------------------------------------|----------------------------------------------------|---------------------------------------------------------- | +| `global.imageRegistry` | Global Docker Image registry | `nil` | +| `image.registry` | PostgreSQL Image registry | `docker.io` | +| `image.repository` | PostgreSQL Image name | `bitnami/postgresql` | +| `image.tag` | PostgreSQL Image tag | `{VERSION}` | +| `image.pullPolicy` | PostgreSQL Image pull policy | `Always` | +| `image.pullSecrets` | Specify Image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `image.debug` | Specify if debug values should be set | `false` | +| `replication.enabled` | Would you like to enable replication | `false` | +| `replication.user` | Replication user | `repl_user` | +| `replication.password` | Replication user password | `repl_password` | +| `replication.slaveReplicas` | Number of slaves replicas | `1` | +| `postgresqlUsername` | PostgreSQL admin user | `postgres` | +| `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | +| `postgresqlDatabase` | PostgreSQL database | `nil` | +| `service.type` | Kubernetes Service type | `ClusterIP` | +| `service.port` | PostgreSQL port | `5432` | +| `service.nodePort` | Kubernetes Service nodePort | `nil` | +| `service.annotations` | Annotations for PostgreSQL service | {} | +| `service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` | `nil` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.storageClass` | PVC Storage Class for PostgreSQL volume | `nil` | +| `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | +| `persistence.annotations` | Annotations for the PVC | `{}` | +| `nodeSelector` | Node labels for pod assignment | `{}` | +| `tolerations` | Toleration labels for pod assignment | `[]` | +| `terminationGracePeriodSeconds` | Seconds the pod needs to terminate gracefully | `nil` | +| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `livenessProbe.enabled` | Would you like a livessProbed to be enabled | `true` | +| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | +| `networkPolicy.allowExternal` | Don't require client label for connections | `true` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | +| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | +| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | +| `readinessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 5 | +| `readinessProbe.periodSeconds` | How often to perform the probe | 10 | +| `readinessProbe.timeoutSeconds` | When the probe times out | 5 | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `metrics.enabled` | Start a prometheus exporter | `false` | +| `metrics.service.type` | Kubernetes Service type | `ClusterIP` | +| `metrics.service.annotatios` | Additional annotations for metrics exporter pod | `{}` | +| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | +| `metrics.image.registry` | PostgreSQL Image registry | `docker.io` | +| `metrics.image.repository` | PostgreSQL Image name | `wrouesnel/postgres_exporter` | +| `metrics.image.tag` | PostgreSQL Image tag | `{VERSION}` | +| `metrics.image.pullPolicy` | PostgreSQL Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify Image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `extraEnv` | Any extra environment variables you would like to pass on to the pod | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/upstreamed/postgresql/templates/svc.yaml b/upstreamed/postgresql/templates/svc.yaml index 702bd57841..6b44457d46 100644 --- a/upstreamed/postgresql/templates/svc.yaml +++ b/upstreamed/postgresql/templates/svc.yaml @@ -7,12 +7,22 @@ metadata: chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} +{{- with .Values.service.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: type: {{ .Values.service.type }} + {{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} + {{- end }} ports: - name: postgresql - port: 5432 + port: {{ .Values.service.port }} targetPort: postgresql + {{- if .Values.service.nodePort }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: app: {{ template "postgresql.name" . }} release: {{ .Release.Name | quote }} diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index 76fd3bc1b6..7310041180 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -57,13 +57,24 @@ postgresqlUsername: postgres ## # postgresqlDatabase: -## Kubernetes configuration -## For minikube, set this to NodePort, elsewhere use LoadBalancer -## +## PostgreSQL service configuration service: + ## PosgresSQL service type type: ClusterIP port: 5432 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + annotations: {} + ## Set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + # loadBalancerIP: + ## PostgreSQL data Persistent Volume Storage Class ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index 79d45cf0e8..6c3af56964 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -62,13 +62,24 @@ postgresqlUsername: postgres ## # terminationGracePeriodSeconds: 30 -## Kubernetes configuration -## For minikube, set this to NodePort, elsewhere use LoadBalancer -## +## PostgreSQL service configuration service: + ## PosgresSQL service type type: ClusterIP port: 5432 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + annotations: {} + ## Set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + # loadBalancerIP: + ## PostgreSQL data Persistent Volume Storage Class ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning diff --git a/upstreamed/redmine/Chart.yaml b/upstreamed/redmine/Chart.yaml index 8324ec861e..3d300c08bd 100644 --- a/upstreamed/redmine/Chart.yaml +++ b/upstreamed/redmine/Chart.yaml @@ -1,5 +1,5 @@ name: redmine -version: 6.0.0 +version: 6.0.1 appVersion: 3.4.6 description: A flexible project management web application. keywords: diff --git a/upstreamed/redmine/templates/deployment.yaml b/upstreamed/redmine/templates/deployment.yaml index f1dd15d9ef..4579fbfb43 100644 --- a/upstreamed/redmine/templates/deployment.yaml +++ b/upstreamed/redmine/templates/deployment.yaml @@ -43,7 +43,7 @@ spec: valueFrom: secretKeyRef: name: {{ template "redmine.postgresql.fullname" . }} - key: postgres-password + key: postgresql-password {{- else }} - name: REDMINE_DB_MYSQL value: {{ template "redmine.mariadb.fullname" . }} From e2e6a0f6ba293ff049c82b21e7f5f328d86aa01d Mon Sep 17 00:00:00 2001 From: tompizmor Date: Thu, 25 Oct 2018 10:13:50 +0200 Subject: [PATCH 055/153] [bitnami/node] Move chart to node 8.x and update dependencies Signed-off-by: tompizmor --- bitnami/node/Chart.yaml | 4 ++-- bitnami/node/requirements.lock | 4 ++-- bitnami/node/values.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index b531de3c02..d4751994af 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,6 +1,6 @@ name: node -version: 6.2.0 -appVersion: 10.7.0 +version: 6.2.1 +appVersion: 8.12.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: - node diff --git a/bitnami/node/requirements.lock b/bitnami/node/requirements.lock index 16a4526a24..c987ee5de7 100644 --- a/bitnami/node/requirements.lock +++ b/bitnami/node/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: mongodb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 4.5.0 + version: 4.6.2 - name: bitnami-common repository: https://charts.bitnami.com/bitnami version: 0.0.3 digest: sha256:e08b8d1bb8197aa8fdc27536aaa1de2e7de210515a451ebe94949a3db55264dd -generated: 2018-10-16T08:36:36.201735+02:00 +generated: 2018-10-25T10:09:00.707768+02:00 diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index 2b155e946c..ae06da03aa 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/node - tag: 10.7.0-prod + tag: 8.12.0-prod ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 1225567123b84a40d991e442d89d80289a539493 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 25 Oct 2018 10:37:14 +0200 Subject: [PATCH 056/153] Replace busybox image by minideb --- bitnami/elasticsearch/Chart.yaml | 2 +- bitnami/elasticsearch/README.md | 2 +- bitnami/elasticsearch/values-production.yaml | 2 +- bitnami/elasticsearch/values.yaml | 2 +- bitnami/nginx-ingress-controller/Chart.yaml | 2 +- bitnami/nginx-ingress-controller/values.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index f54e429773..eafe7de68d 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.1.2 +version: 4.1.3 appVersion: 6.4.2 description: A highly scalable open-source full-text search and analytics engine keywords: diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index 0d1dcc147a..fa2202d6a1 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -148,7 +148,7 @@ The following table lists the configurable parameters of the Elasticsearch chart | `metrics.service.type` | Metrics exporter endpoint service type | `ClusterIP` | | `metrics.resources` | Metrics exporter resource requests/limit | `requests: { cpu: "25m" }` | | `sysctlImage.registry` | Kernel settings modifier image registry | `docker.io` | -| `sysctlImage.repository` | Kernel settings modifier image repository | `busybox` | +| `sysctlImage.repository` | Kernel settings modifier image repository | `bitnami/minideb` | | `sysctlImage.tag` | Kernel settings modifier image tag | `latest` | | `sysctlImage.pullPolicy` | Kernel settings modifier image pull policy | `Always` | diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 3a9568e18e..bc0c11d886 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -66,7 +66,7 @@ master: ## Image that performs the sysctl operation sysctlImage: registry: docker.io - repository: busybox + repository: bitnami/minideb tag: latest ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index 803fd9302b..570c7e5019 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -26,7 +26,7 @@ image: ## Image that performs the sysctl operation sysctlImage: registry: docker.io - repository: busybox + repository: bitnami/minideb tag: latest ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' diff --git a/bitnami/nginx-ingress-controller/Chart.yaml b/bitnami/nginx-ingress-controller/Chart.yaml index 7e3eff6141..fca1152332 100644 --- a/bitnami/nginx-ingress-controller/Chart.yaml +++ b/bitnami/nginx-ingress-controller/Chart.yaml @@ -1,5 +1,5 @@ name: nginx-ingress-controller -version: 2.1.1 +version: 2.1.2 appVersion: 0.20.0 description: Chart for the nginx Ingress controller keywords: diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index 50ae69dbe3..d412f13e2c 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -237,7 +237,7 @@ extraVolumes: [] extraInitContainers: [] ## Containers, which are run before the app containers are started. # - name: init-myservice -# image: busybox +# image: bitnami/minideb # command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;'] stats: From 14825ea0625eb786d28ad042c400a70341ca72f7 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Thu, 25 Oct 2018 08:58:00 +0000 Subject: [PATCH 057/153] Synchronize upstreamed folder to 4d77e7b3 --- upstreamed/phpmyadmin/Chart.yaml | 4 ++-- upstreamed/phpmyadmin/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/upstreamed/phpmyadmin/Chart.yaml b/upstreamed/phpmyadmin/Chart.yaml index 5794045e0f..237a2225c0 100644 --- a/upstreamed/phpmyadmin/Chart.yaml +++ b/upstreamed/phpmyadmin/Chart.yaml @@ -1,6 +1,6 @@ name: phpmyadmin -version: 1.2.1 -appVersion: 4.8.2 +version: 1.2.2 +appVersion: 4.8.3 description: phpMyAdmin is an mysql administration frontend keywords: - mariadb diff --git a/upstreamed/phpmyadmin/values.yaml b/upstreamed/phpmyadmin/values.yaml index d5cf9305a4..9040c6e5c6 100644 --- a/upstreamed/phpmyadmin/values.yaml +++ b/upstreamed/phpmyadmin/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phpmyadmin - tag: 4.8.2 + tag: 4.8.3 ## Specify a imagePullPolicy pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. From d3f375333413bb96bf5d1d35fec14276327a3379 Mon Sep 17 00:00:00 2001 From: tompizmor Date: Thu, 25 Oct 2018 11:07:12 +0200 Subject: [PATCH 058/153] [bitnami/mean] move node version to 8.x and update the dependencies --- bitnami/mean/Chart.yaml | 4 ++-- bitnami/mean/requirements.lock | 4 ++-- bitnami/mean/values.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/mean/Chart.yaml b/bitnami/mean/Chart.yaml index 65ff669772..21d1581b0b 100644 --- a/bitnami/mean/Chart.yaml +++ b/bitnami/mean/Chart.yaml @@ -1,6 +1,6 @@ name: mean -version: 4.2.0 -appVersion: 3.6.4 +version: 4.2.1 +appVersion: 4.6.2 description: MEAN is a free and open-source JavaScript software stack for building dynamic web sites and web applications. The MEAN stack is MongoDB, Express.js, Angular, and Node.js. Because all components of the MEAN stack support programs written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. keywords: - node diff --git a/bitnami/mean/requirements.lock b/bitnami/mean/requirements.lock index d26485d0c6..c6c9ab4689 100644 --- a/bitnami/mean/requirements.lock +++ b/bitnami/mean/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: mongodb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 4.5.0 + version: 4.6.2 - name: bitnami-common repository: https://charts.bitnami.com/bitnami version: 0.0.3 digest: sha256:e08b8d1bb8197aa8fdc27536aaa1de2e7de210515a451ebe94949a3db55264dd -generated: 2018-10-16T08:37:10.583517+02:00 +generated: 2018-10-25T11:06:24.877576+02:00 diff --git a/bitnami/mean/values.yaml b/bitnami/mean/values.yaml index 102e709d22..04e1b109f3 100644 --- a/bitnami/mean/values.yaml +++ b/bitnami/mean/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/node - tag: 9.11.1-prod + tag: 8.12.0-prod ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 99749dbf586263dddfed4f67f97152dd37af26f4 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 25 Oct 2018 09:21:22 +0000 Subject: [PATCH 059/153] Install packages in minideb before execute it --- bitnami/elasticsearch/templates/master-deploy.yaml | 4 ++-- bitnami/nginx-ingress-controller/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitnami/elasticsearch/templates/master-deploy.yaml b/bitnami/elasticsearch/templates/master-deploy.yaml index 7beec84a91..bbb9c92b9c 100644 --- a/bitnami/elasticsearch/templates/master-deploy.yaml +++ b/bitnami/elasticsearch/templates/master-deploy.yaml @@ -13,7 +13,7 @@ spec: matchLabels: app: {{ template "elasticsearch.name" . }} release: "{{ .Release.Name }}" - role: "master" + role: "master" replicas: {{ .Values.master.replicas }} template: metadata: @@ -60,7 +60,7 @@ spec: - name: sysctl image: {{ template "sysctl.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - command: ["sysctl", "-w", "vm.max_map_count=262144"] + command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144'] securityContext: privileged: true containers: diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index d412f13e2c..4ec85013c0 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -238,7 +238,7 @@ extraInitContainers: [] ## Containers, which are run before the app containers are started. # - name: init-myservice # image: bitnami/minideb -# command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;'] +# command: ['sh', '-c', 'install_packages dnsutils && until nslookup myservice; do echo waiting for myservice; sleep 2; done;'] stats: enabled: false From 86e43ae90966a2d95eae0d488a76f020d3dd2c53 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 25 Oct 2018 10:03:25 +0000 Subject: [PATCH 060/153] Remove initContainer to be executed by default --- bitnami/elasticsearch/README.md | 215 ++++++++++-------- .../templates/master-deploy.yaml | 15 +- bitnami/elasticsearch/values-production.yaml | 11 +- bitnami/elasticsearch/values.yaml | 11 +- 4 files changed, 135 insertions(+), 117 deletions(-) diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index fa2202d6a1..4266fc9fe0 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -51,106 +51,106 @@ The following table lists the configurable parameters of the Elasticsearch chart | Parameter | Description | Default | |---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | Elasticsearch image registry | `docker.io` | -| `image.repository` | Elasticsearch image repository | `bitnami/elasticsearch` | -| `image.tag` | Elasticsearch image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `name` | Elasticsearch cluster name | `elastic` | -| `config` | Elasticsearch node custom configuration | `` | -| `master.name` | Master-eligible node pod name | `master` | -| `master.replicas` | Desired number of Elasticsearch master-eligible nodes | `2` | -| `master.heapSize` | Master-eligible node heap size | `128m` | -| `master.antiAffinity` | Master-eligible node pod anti-affinity policy | `soft` | -| `master.resources` | CPU/Memory resource requests/limits for master-eligible nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | -| `master.livenessProbe.enabled` | Enable/disable the liveness probe (master-eligible nodes pod) | `true` | -| `master.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (master-eligible nodes pod) | `90` | -| `master.livenessProbe.periodSeconds` | How often to perform the probe (master-eligible nodes pod) | `10` | -| `master.livenessProbe.timeoutSeconds` | When the probe times out (master-eligible nodes pod) | `5` | -| `master.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod) | `1` | -| `master.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `master.readinessProbe.enabled` | Enable/disable the readiness probe (master-eligible nodes pod) | `true` | -| `master.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (master-eligible nodes pod) | `90` | -| `master.readinessProbe.periodSeconds` | How often to perform the probe (master-eligible nodes pod) | `10` | -| `master.readinessProbe.timeoutSeconds` | When the probe times out (master-eligible nodes pod) | `5` | -| `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod) | `1` | -| `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` -| `discovery.name` | Discover node pod name | `discovery` | -| `coordinating.name` | Coordinating-only node pod name | `coordinating-only` | -| `coordinating.replicas` | Desired number of Elasticsearch coordinating-only nodes | `2` | -| `coordinating.heapSize` | Coordinating-only node heap size | `128m` | -| `coordinating.antiAffinity` | Coordinating-only node pod anti-affinity policy | `soft` | -| `coordinating.service.type` | Coordinating-only node kubernetes service type | `ClusterIP` | -| `coordinating.service.port` | Elasticsearch REST API port | `9200` | -| `coordinating.resources` | CPU/Memory resource requests/limits for coordinating-only nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | -| `coordinating.livenessProbe.enabled` | Enable/disable the liveness probe (coordinating-only nodes pod) | `true` | -| `coordinating.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (coordinating-only nodes pod) | `90` | -| `coordinating.livenessProbe.periodSeconds` | How often to perform the probe (coordinating-only nodes pod) | `10` | -| `coordinating.livenessProbe.timeoutSeconds` | When the probe times out (coordinating-only nodes pod) | `5` | -| `coordinating.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (coordinating-only nodes pod) | `1` | -| `coordinating.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `coordinating.readinessProbe.enabled` | Enable/disable the readiness probe (coordinating-only nodes pod) | `true` | -| `coordinating.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (coordinating-only nodes pod) | `90` | -| `coordinating.readinessProbe.periodSeconds` | How often to perform the probe (coordinating-only nodes pod) | `10` | -| `coordinating.readinessProbe.timeoutSeconds` | When the probe times out (coordinating-only nodes pod) | `5` | -| `coordinating.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (coordinating-only nodes pod) | `1` | -| `coordinating.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `data.name` | Data node pod name | `data` | -| `data.replicas` | Desired number of Elasticsearch data nodes nodes | `3` | -| `data.heapSize` | Data node heap size | `1024m` | -| `data.antiAffinity` | Data pod anti-affinity policy | `soft` | -| `data.resources` | CPU/Memory resource requests/limits for data nodes | `requests: { cpu: "25m", memory: "1152Mi" }` | -| `data.persistence.enabled` | Enable persistence using a `PersistentVolumeClaim` | `true` | -| `data.persistence.annotations` | Persistent Volume Claim annotations | `{}` | -| `data.persistence.storageClass` | Persistent Volume Storage Class | `` | -| `data.persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` | -| `data.persistence.size` | Persistent Volume Size | `8Gi` | -| `data.livenessProbe.enabled` | Enable/disable the liveness probe (data nodes pod) | `true` | -| `data.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (data nodes pod) | `90` | -| `data.livenessProbe.periodSeconds` | How often to perform the probe (data nodes pod) | `10` | -| `data.livenessProbe.timeoutSeconds` | When the probe times out (data nodes pod) | `5` | -| `data.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (data nodes pod) | `1` | -| `data.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `data.readinessProbe.enabled` | Enable/disable the readiness probe (data nodes pod) | `true` | -| `data.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (data nodes pod) | `90` | -| `data.readinessProbe.periodSeconds` | How often to perform the probe (data nodes pod) | `10` | -| `data.readinessProbe.timeoutSeconds` | When the probe times out (data nodes pod) | `5` | -| `data.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (data nodes pod) | `1` | -| `data.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `ingest.enabled` | Enable ingest nodes | `false` | -| `ingest.name` | Ingest node pod name | `ingest` | -| `ingest.replicas` | Desired number of Elasticsearch ingest nodes | `2` | -| `ingest.heapSize` | Ingest node heap size | `128m` | -| `ingest.antiAffinity` | Ingest node pod anti-affinity policy | `soft` | -| `ingest.resources` | CPU/Memory resource requests/limits for ingest nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | -| `ingest.livenessProbe.enabled` | Enable/disable the liveness probe (ingest nodes pod) | `true` | -| `ingest.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (ingest nodes pod) | `90` | -| `ingest.livenessProbe.periodSeconds` | How often to perform the probe (ingest nodes pod) | `10` | -| `ingest.livenessProbe.timeoutSeconds` | When the probe times out (ingest nodes pod) | `5` | -| `ingest.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (ingest nodes pod) | `1` | -| `ingest.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `ingest.readinessProbe.enabled` | Enable/disable the readiness probe (ingest nodes pod) | `true` | -| `ingest.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (ingest nodes pod) | `90` | -| `ingest.readinessProbe.periodSeconds` | How often to perform the probe (ingest nodes pod) | `10` | -| `ingest.readinessProbe.timeoutSeconds` | When the probe times out (ingest nodes pod) | `5` | -| `ingest.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (ingest nodes pod) | `1` | -| `ingest.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | -| `metrics.enabled` | Enable prometheus exporter | `false` | -| `metrics.name` | Metrics pod name | `metrics` | -| `metrics.image.registry` | Metrics exporter image registry | `docker.io` | -| `metrics.image.repository` | Metrics exporter image repository | `bitnami/elasticsearch-exporter` | -| `metrics.image.tag` | Metrics exporter image tag | `latest` | -| `metrics.image.pullPolicy` | Metrics exporter image pull policy | `Always` | -| `metrics.service.type` | Metrics exporter endpoint service type | `ClusterIP` | -| `metrics.resources` | Metrics exporter resource requests/limit | `requests: { cpu: "25m" }` | -| `sysctlImage.registry` | Kernel settings modifier image registry | `docker.io` | -| `sysctlImage.repository` | Kernel settings modifier image repository | `bitnami/minideb` | -| `sysctlImage.tag` | Kernel settings modifier image tag | `latest` | -| `sysctlImage.pullPolicy` | Kernel settings modifier image pull policy | `Always` | +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | Elasticsearch image registry | `docker.io` | +| `image.repository` | Elasticsearch image repository | `bitnami/elasticsearch` | +| `image.tag` | Elasticsearch image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `name` | Elasticsearch cluster name | `elastic` | +| `config` | Elasticsearch node custom configuration | `` | +| `master.name` | Master-eligible node pod name | `master` | +| `master.replicas` | Desired number of Elasticsearch master-eligible nodes | `2` | +| `master.heapSize` | Master-eligible node heap size | `128m` | +| `master.antiAffinity` | Master-eligible node pod anti-affinity policy | `soft` | +| `master.resources` | CPU/Memory resource requests/limits for master-eligible nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | +| `master.livenessProbe.enabled` | Enable/disable the liveness probe (master-eligible nodes pod) | `true` | +| `master.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (master-eligible nodes pod) | `90` | +| `master.livenessProbe.periodSeconds` | How often to perform the probe (master-eligible nodes pod) | `10` | +| `master.livenessProbe.timeoutSeconds` | When the probe times out (master-eligible nodes pod) | `5` | +| `master.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod) | `1` | +| `master.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `master.readinessProbe.enabled` | Enable/disable the readiness probe (master-eligible nodes pod) | `true` | +| `master.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (master-eligible nodes pod) | `90` | +| `master.readinessProbe.periodSeconds` | How often to perform the probe (master-eligible nodes pod) | `10` | +| `master.readinessProbe.timeoutSeconds` | When the probe times out (master-eligible nodes pod) | `5` | +| `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (master-eligible nodes pod) | `1` | +| `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `discovery.name` | Discover node pod name | `discovery` | +| `coordinating.name` | Coordinating-only node pod name | `coordinating-only` | +| `coordinating.replicas` | Desired number of Elasticsearch coordinating-only nodes | `2` | +| `coordinating.heapSize` | Coordinating-only node heap size | `128m` | +| `coordinating.antiAffinity` | Coordinating-only node pod anti-affinity policy | `soft` | +| `coordinating.service.type` | Coordinating-only node kubernetes service type | `ClusterIP` | +| `coordinating.service.port` | Elasticsearch REST API port | `9200` | +| `coordinating.resources` | CPU/Memory resource requests/limits for coordinating-only nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | +| `coordinating.livenessProbe.enabled` | Enable/disable the liveness probe (coordinating-only nodes pod) | `true` | +| `coordinating.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (coordinating-only nodes pod) | `90` | +| `coordinating.livenessProbe.periodSeconds` | How often to perform the probe (coordinating-only nodes pod) | `10` | +| `coordinating.livenessProbe.timeoutSeconds` | When the probe times out (coordinating-only nodes pod) | `5` | +| `coordinating.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (coordinating-only nodes pod) | `1` | +| `coordinating.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `coordinating.readinessProbe.enabled` | Enable/disable the readiness probe (coordinating-only nodes pod) | `true` | +| `coordinating.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (coordinating-only nodes pod) | `90` | +| `coordinating.readinessProbe.periodSeconds` | How often to perform the probe (coordinating-only nodes pod) | `10` | +| `coordinating.readinessProbe.timeoutSeconds` | When the probe times out (coordinating-only nodes pod) | `5` | +| `coordinating.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (coordinating-only nodes pod) | `1` | +| `coordinating.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `data.name` | Data node pod name | `data` | +| `data.replicas` | Desired number of Elasticsearch data nodes nodes | `3` | +| `data.heapSize` | Data node heap size | `1024m` | +| `data.antiAffinity` | Data pod anti-affinity policy | `soft` | +| `data.resources` | CPU/Memory resource requests/limits for data nodes | `requests: { cpu: "25m", memory: "1152Mi" }` | +| `data.persistence.enabled` | Enable persistence using a `PersistentVolumeClaim` | `true` | +| `data.persistence.annotations` | Persistent Volume Claim annotations | `{}` | +| `data.persistence.storageClass` | Persistent Volume Storage Class | `` | +| `data.persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` | +| `data.persistence.size` | Persistent Volume Size | `8Gi` | +| `data.livenessProbe.enabled` | Enable/disable the liveness probe (data nodes pod) | `true` | +| `data.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (data nodes pod) | `90` | +| `data.livenessProbe.periodSeconds` | How often to perform the probe (data nodes pod) | `10` | +| `data.livenessProbe.timeoutSeconds` | When the probe times out (data nodes pod) | `5` | +| `data.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (data nodes pod) | `1` | +| `data.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `data.readinessProbe.enabled` | Enable/disable the readiness probe (data nodes pod) | `true` | +| `data.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (data nodes pod) | `90` | +| `data.readinessProbe.periodSeconds` | How often to perform the probe (data nodes pod) | `10` | +| `data.readinessProbe.timeoutSeconds` | When the probe times out (data nodes pod) | `5` | +| `data.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (data nodes pod) | `1` | +| `data.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `ingest.enabled` | Enable ingest nodes | `false` | +| `ingest.name` | Ingest node pod name | `ingest` | +| `ingest.replicas` | Desired number of Elasticsearch ingest nodes | `2` | +| `ingest.heapSize` | Ingest node heap size | `128m` | +| `ingest.antiAffinity` | Ingest node pod anti-affinity policy | `soft` | +| `ingest.resources` | CPU/Memory resource requests/limits for ingest nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | +| `ingest.livenessProbe.enabled` | Enable/disable the liveness probe (ingest nodes pod) | `true` | +| `ingest.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (ingest nodes pod) | `90` | +| `ingest.livenessProbe.periodSeconds` | How often to perform the probe (ingest nodes pod) | `10` | +| `ingest.livenessProbe.timeoutSeconds` | When the probe times out (ingest nodes pod) | `5` | +| `ingest.livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (ingest nodes pod) | `1` | +| `ingest.livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `ingest.readinessProbe.enabled` | Enable/disable the readiness probe (ingest nodes pod) | `true` | +| `ingest.readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated (ingest nodes pod) | `90` | +| `ingest.readinessProbe.periodSeconds` | How often to perform the probe (ingest nodes pod) | `10` | +| `ingest.readinessProbe.timeoutSeconds` | When the probe times out (ingest nodes pod) | `5` | +| `ingest.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (ingest nodes pod) | `1` | +| `ingest.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded | `5` | +| `metrics.enabled` | Enable prometheus exporter | `false` | +| `metrics.name` | Metrics pod name | `metrics` | +| `metrics.image.registry` | Metrics exporter image registry | `docker.io` | +| `metrics.image.repository` | Metrics exporter image repository | `bitnami/elasticsearch-exporter` | +| `metrics.image.tag` | Metrics exporter image tag | `latest` | +| `metrics.image.pullPolicy` | Metrics exporter image pull policy | `Always` | +| `metrics.service.type` | Metrics exporter endpoint service type | `ClusterIP` | +| `metrics.resources` | Metrics exporter resource requests/limit | `requests: { cpu: "25m" }` | +| `sysctlImage.registry` | Kernel settings modifier image registry | `docker.io` | +| `sysctlImage.repository` | Kernel settings modifier image repository | `bitnami/minideb` | +| `sysctlImage.tag` | Kernel settings modifier image tag | `latest` | +| `sysctlImage.pullPolicy` | Kernel settings modifier image pull policy | `Always` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, @@ -176,6 +176,21 @@ The [Bitnami Elasticsearch](https://github.com/bitnami/bitnami-docker-elasticsea By default, the chart mounts a [Persistent Volume](http://kubernetes.io/docs/user-guide/persistent-volumes/) at this location. The volume is created using dynamic volume provisioning. See the [Configuration](#configuration) section to configure the PVC. +## Troubleshooting + +Currently, Elasticsearch 5 requires some changes in the kernel of the host machine to work as expected. If those values are not set in the underlying operating system, the ES containers fail to boot with ERROR messages. + +You can use the initContainer created to set those parameters + +```console +$ helm install --name my-release \ + --set sysctlImage.registry=docker.io \ + --set sysctlImage.repository=bitnami/minideb \ + --set sysctlImage.tag=latest \ + --set sysctlImage.pullPolicy=Always \ + bitnami/elasticsearch +``` + ## Upgrading ### To 3.0.0 diff --git a/bitnami/elasticsearch/templates/master-deploy.yaml b/bitnami/elasticsearch/templates/master-deploy.yaml index bbb9c92b9c..5acd4a43c0 100644 --- a/bitnami/elasticsearch/templates/master-deploy.yaml +++ b/bitnami/elasticsearch/templates/master-deploy.yaml @@ -56,13 +56,14 @@ spec: - name: {{ . }} {{- end}} {{- end }} - initContainers: - - name: sysctl - image: {{ template "sysctl.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144'] - securityContext: - privileged: true + ## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors) + # initContainers: + # - name: sysctl + # image: {{ template "sysctl.image" . }} + # imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + # command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536'] + # securityContext: + # privileged: true containers: - name: {{ template "elasticsearch.master.fullname" . }} image: {{ template "elasticsearch.image" . }} diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index bc0c11d886..7bfc1e315b 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -64,15 +64,16 @@ master: failureThreshold: 5 ## Image that performs the sysctl operation -sysctlImage: - registry: docker.io - repository: bitnami/minideb - tag: latest +## +# sysctlImage: + # registry: docker.io + # repository: bitnami/minideb + # tag: latest ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## - pullPolicy: Always + # pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index 570c7e5019..7bdda14bed 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -24,15 +24,16 @@ image: # - myRegistrKeySecretName ## Image that performs the sysctl operation -sysctlImage: - registry: docker.io - repository: bitnami/minideb - tag: latest +## +# sysctlImage: + # registry: docker.io + # repository: bitnami/minideb + # tag: latest ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## - pullPolicy: Always + # pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ From 90d2d3224368b20213981fdfe69a5ad208c16761 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Thu, 25 Oct 2018 10:37:16 +0000 Subject: [PATCH 061/153] Synchronize upstreamed folder to e46c588a --- upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/README.md | 2 +- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index e6b1a9537b..bcedf01807 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.5.2 +version: 3.5.3 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/README.md b/upstreamed/rabbitmq/README.md index 32044f58a8..5b46366bc9 100644 --- a/upstreamed/rabbitmq/README.md +++ b/upstreamed/rabbitmq/README.md @@ -60,7 +60,7 @@ The following table lists the configurable parameters of the RabbitMQ chart and | `rabbitmq.erlangCookie` | Erlang cookie | _random 32 character long alphanumeric string_ | | `rabbitmq.amqpPort` | Amqp port | `5672` | | `rabbitmq.distPort` | Erlang distribution server port | `25672` | -| `rabbitmq.nodePort` | Node port override, if serviceType NodePort | _random avaliable between 30000-32767_ | +| `rabbitmq.nodePort` | Node port override, if serviceType NodePort | _random available between 30000-32767_ | | `rabbitmq.managerPort` | RabbitMQ Manager port | `15672` | | `rabbitmq.diskFreeLimit` | Disk free limit | `"6GiB"` | | `rabbitmq.plugins` | configuration file for plugins to enable | `[rabbitmq_management,rabbitmq_peer_discovery_k8s].` | diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 11f5e120aa..ef9f20b597 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.3 +version: 4.2.4 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/README.md b/upstreamed/redis/README.md index 6af0d4b846..dbec25ed25 100644 --- a/upstreamed/redis/README.md +++ b/upstreamed/redis/README.md @@ -58,7 +58,7 @@ This version removes the `chart` label from the `spec.selector.matchLabels` which is immutable since `StatefulSet apps/v1beta2`. It has been inadvertently added, causing any subsequent upgrade to fail. See https://github.com/helm/charts/issues/7726. -It also fixes https://github.com/helm/charts/issues/7726 where a deployment `extensions/v1beta1` can not be upgraded if `spec.selector` is not explicitely set. +It also fixes https://github.com/helm/charts/issues/7726 where a deployment `extensions/v1beta1` can not be upgraded if `spec.selector` is not explicitly set. Finally, it fixes https://github.com/helm/charts/issues/7803 by removing mutable labels in `spec.VolumeClaimTemplate.metadata.labels` so that it is upgradable. From 24d6060c2cb16026fc61583561b6576ffac7a831 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Thu, 25 Oct 2018 10:54:58 +0000 Subject: [PATCH 062/153] Add option to enable initContainer --- bitnami/elasticsearch/README.md | 6 ++---- .../templates/coordinating-deploy.yaml | 7 +++++-- .../templates/data-statefulset.yaml | 5 ++++- .../elasticsearch/templates/ingest-deploy.yaml | 7 +++++-- .../elasticsearch/templates/master-deploy.yaml | 16 +++++++++------- bitnami/elasticsearch/values-production.yaml | 11 ++++++----- bitnami/elasticsearch/values.yaml | 11 ++++++----- 7 files changed, 37 insertions(+), 26 deletions(-) diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index 4266fc9fe0..bfa1c6f92e 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -147,6 +147,7 @@ The following table lists the configurable parameters of the Elasticsearch chart | `metrics.image.pullPolicy` | Metrics exporter image pull policy | `Always` | | `metrics.service.type` | Metrics exporter endpoint service type | `ClusterIP` | | `metrics.resources` | Metrics exporter resource requests/limit | `requests: { cpu: "25m" }` | +| `sysctlImage.enabled` | Enable kernel settings modifier image | `false` | | `sysctlImage.registry` | Kernel settings modifier image registry | `docker.io` | | `sysctlImage.repository` | Kernel settings modifier image repository | `bitnami/minideb` | | `sysctlImage.tag` | Kernel settings modifier image tag | `latest` | @@ -184,10 +185,7 @@ You can use the initContainer created to set those parameters ```console $ helm install --name my-release \ - --set sysctlImage.registry=docker.io \ - --set sysctlImage.repository=bitnami/minideb \ - --set sysctlImage.tag=latest \ - --set sysctlImage.pullPolicy=Always \ + --set sysctlImage.enabled=true \ bitnami/elasticsearch ``` diff --git a/bitnami/elasticsearch/templates/coordinating-deploy.yaml b/bitnami/elasticsearch/templates/coordinating-deploy.yaml index 2668d0a9ca..76313b7520 100644 --- a/bitnami/elasticsearch/templates/coordinating-deploy.yaml +++ b/bitnami/elasticsearch/templates/coordinating-deploy.yaml @@ -13,7 +13,7 @@ spec: matchLabels: app: {{ template "elasticsearch.name" . }} release: "{{ .Release.Name }}" - role: "coordinating-only" + role: "coordinating-only" replicas: {{ .Values.coordinating.replicas }} template: metadata: @@ -55,13 +55,16 @@ spec: - name: {{ . }} {{- end}} {{- end }} + {{- if .Values.sysctlImage.enabled }} + ## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors) initContainers: - name: sysctl image: {{ template "sysctl.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - command: ["sysctl", "-w", "vm.max_map_count=262144"] + command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536'] securityContext: privileged: true + {{- end }} containers: - name: {{ template "elasticsearch.coordinating.fullname" . }} {{- if .Values.securityContext.enabled }} diff --git a/bitnami/elasticsearch/templates/data-statefulset.yaml b/bitnami/elasticsearch/templates/data-statefulset.yaml index d0ecac3987..3dd84acfa3 100644 --- a/bitnami/elasticsearch/templates/data-statefulset.yaml +++ b/bitnami/elasticsearch/templates/data-statefulset.yaml @@ -51,13 +51,16 @@ spec: release: {{ .Release.Name | quote }} role: "data" {{- end }} + {{- if .Values.sysctlImage.enabled }} + ## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors) initContainers: - name: sysctl image: {{ template "sysctl.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - command: ["sysctl", "-w", "vm.max_map_count=262144"] + command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536'] securityContext: privileged: true + {{- end }} containers: - name: {{ template "elasticsearch.data.fullname" . }} image: {{ template "elasticsearch.image" . }} diff --git a/bitnami/elasticsearch/templates/ingest-deploy.yaml b/bitnami/elasticsearch/templates/ingest-deploy.yaml index 97bafd9a5c..fb9ddd644f 100644 --- a/bitnami/elasticsearch/templates/ingest-deploy.yaml +++ b/bitnami/elasticsearch/templates/ingest-deploy.yaml @@ -14,7 +14,7 @@ spec: matchLabels: app: {{ template "elasticsearch.name" . }} release: "{{ .Release.Name }}" - role: "ingest" + role: "ingest" replicas: {{ .Values.ingest.replicas }} template: metadata: @@ -56,13 +56,16 @@ spec: - name: {{ . }} {{- end}} {{- end }} + {{- if .Values.sysctlImage.enabled }} + ## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors) initContainers: - name: sysctl image: {{ template "sysctl.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - command: ["sysctl", "-w", "vm.max_map_count=262144"] + command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536'] securityContext: privileged: true + {{- end }} containers: - name: {{ template "elasticsearch.ingest.fullname" . }} image: {{ template "elasticsearch.image" . }} diff --git a/bitnami/elasticsearch/templates/master-deploy.yaml b/bitnami/elasticsearch/templates/master-deploy.yaml index 5acd4a43c0..c0f96c6b1a 100644 --- a/bitnami/elasticsearch/templates/master-deploy.yaml +++ b/bitnami/elasticsearch/templates/master-deploy.yaml @@ -56,14 +56,16 @@ spec: - name: {{ . }} {{- end}} {{- end }} + {{- if .Values.sysctlImage.enabled }} ## Image that performs the sysctl operation to modify Kernel settings (needed sometimes to avoid boot errors) - # initContainers: - # - name: sysctl - # image: {{ template "sysctl.image" . }} - # imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - # command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536'] - # securityContext: - # privileged: true + initContainers: + - name: sysctl + image: {{ template "sysctl.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144 && sysctl -w fs.file-max=65536'] + securityContext: + privileged: true + {{- end }} containers: - name: {{ template "elasticsearch.master.fullname" . }} image: {{ template "elasticsearch.image" . }} diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 7bfc1e315b..d0fa6e3475 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -65,15 +65,16 @@ master: ## Image that performs the sysctl operation ## -# sysctlImage: - # registry: docker.io - # repository: bitnami/minideb - # tag: latest +sysctlImage: + enabled: false + registry: docker.io + repository: bitnami/minideb + tag: latest ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## - # pullPolicy: Always + pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index 7bdda14bed..ea6f50aed6 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -25,15 +25,16 @@ image: ## Image that performs the sysctl operation ## -# sysctlImage: - # registry: docker.io - # repository: bitnami/minideb - # tag: latest +sysctlImage: + enabled: false + registry: docker.io + repository: bitnami/minideb + tag: latest ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## - # pullPolicy: Always + pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ From f634dc4d7ae238d281d171148b7ff9a192295669 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Fri, 26 Oct 2018 10:37:16 +0000 Subject: [PATCH 063/153] Synchronize upstreamed folder to dec56b77 --- upstreamed/odoo/Chart.yaml | 2 +- upstreamed/odoo/values.yaml | 2 +- upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/templates/statefulset.yaml | 6 +++--- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/README.md | 4 ++-- upstreamed/redis/values-production.yaml | 3 +-- upstreamed/redis/values.yaml | 3 +-- 8 files changed, 11 insertions(+), 13 deletions(-) diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index a86ffea2e1..313df0cd25 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 4.0.0 +version: 4.0.1 appVersion: 11.0.20181015 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index 4d287c4d44..c97ae935ed 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -56,7 +56,7 @@ postgresql: ## PostgreSQL password ## ref: https://hub.docker.com/_/postgres/ ## - # postgresPassword: + # postgresqlPassword: ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index bcedf01807..9a36897b75 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.5.3 +version: 3.5.5 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/templates/statefulset.yaml b/upstreamed/rabbitmq/templates/statefulset.yaml index d04f1528ec..a8a65704f9 100644 --- a/upstreamed/rabbitmq/templates/statefulset.yaml +++ b/upstreamed/rabbitmq/templates/statefulset.yaml @@ -93,7 +93,7 @@ spec: {{- if .Values.livenessProbe.enabled }} livenessProbe: exec: - command: ["sh", "-c", "test \"$(curl -f --user {{ .Values.rabbitmq.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.rabbitmq.managerPort }}/api/healthchecks/node)\" = '{\"status\":\"ok\"}'"] + command: ["sh", "-c", "test \"$(curl -sS -f --user {{ .Values.rabbitmq.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.rabbitmq.managerPort }}/api/healthchecks/node)\" = '{\"status\":\"ok\"}'"] initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} @@ -103,7 +103,7 @@ spec: {{- if .Values.readinessProbe.enabled }} readinessProbe: exec: - command: ["sh", "-c", "test \"$(curl -f --user {{ .Values.rabbitmq.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.rabbitmq.managerPort }}/api/healthchecks/node)\" = '{\"status\":\"ok\"}'"] + command: ["sh", "-c", "test \"$(curl -sS -f --user {{ .Values.rabbitmq.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.rabbitmq.managerPort }}/api/healthchecks/node)\" = '{\"status\":\"ok\"}'"] initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} @@ -184,7 +184,7 @@ spec: path: /metrics port: metrics initialDelaySeconds: 5 - timeoutSeconds: 1 + timeoutSeconds: 5 resources: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }} diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index ef9f20b597..2ec0a75d0a 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.4 +version: 4.2.5 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/README.md b/upstreamed/redis/README.md index dbec25ed25..fa6fd4cd86 100644 --- a/upstreamed/redis/README.md +++ b/upstreamed/redis/README.md @@ -150,8 +150,8 @@ The following table lists the configurable parameters of the Redis chart and the | `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (redis master pod) | `1` | | `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `5` | | `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` | -| `volumePermissions.image.repository` | Init container volume-permissions image name | `alpine` | -| `volumePermissions.image.tag` | Init container volume-permissions image tag | `3.8` | +| `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/minideb` | +| `volumePermissions.image.tag` | Init container volume-permissions image tag | `latest` | | `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `IfNotPresent` | | `slave.serviceType` | Kubernetes Service type (redis slave) | `LoadBalancer` | | `slave.service.nodePort` | Kubernetes Service nodePort (redis slave) | `nil` | diff --git a/upstreamed/redis/values-production.yaml b/upstreamed/redis/values-production.yaml index 6345f3eedf..2e3cc55657 100644 --- a/upstreamed/redis/values-production.yaml +++ b/upstreamed/redis/values-production.yaml @@ -327,11 +327,10 @@ metrics: ## Init containers parameters: ## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup ## - volumePermissions: image: registry: docker.io - repository: busybox + repository: bitnami/minideb tag: latest pullPolicy: IfNotPresent diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index 2b092e5f94..54a23a3b1a 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -342,11 +342,10 @@ metrics: ## Init containers parameters: ## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup ## - volumePermissions: image: registry: docker.io - repository: busybox + repository: bitnami/minideb tag: latest pullPolicy: IfNotPresent From 21dd1e7f2989c3acd62570c9a9fd95fa5c3841cc Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Fri, 26 Oct 2018 11:38:02 +0000 Subject: [PATCH 064/153] Use nginx as default backend --- bitnami/nginx-ingress-controller/Chart.yaml | 2 +- bitnami/nginx-ingress-controller/values.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitnami/nginx-ingress-controller/Chart.yaml b/bitnami/nginx-ingress-controller/Chart.yaml index fca1152332..b9247a931f 100644 --- a/bitnami/nginx-ingress-controller/Chart.yaml +++ b/bitnami/nginx-ingress-controller/Chart.yaml @@ -1,5 +1,5 @@ name: nginx-ingress-controller -version: 2.1.2 +version: 2.1.3 appVersion: 0.20.0 description: Chart for the nginx Ingress controller keywords: diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index 4ec85013c0..d07773d785 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -297,9 +297,9 @@ defaultBackend: name: default-backend image: - repository: k8s.gcr.io/defaultbackend - tag: "1.4" - pullPolicy: IfNotPresent + repository: bitnami/nginx + tag: latest + pullPolicy: Always extraArgs: {} From 40a2e2a444a616a6cab96702a3896566547d0978 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Mon, 29 Oct 2018 10:37:22 +0000 Subject: [PATCH 065/153] Synchronize upstreamed folder to 25aa880f --- upstreamed/magento/Chart.yaml | 2 +- upstreamed/magento/README.md | 86 +++++++++++--------- upstreamed/magento/templates/deployment.yaml | 20 +++-- upstreamed/magento/values.yaml | 18 ++++ 4 files changed, 82 insertions(+), 44 deletions(-) diff --git a/upstreamed/magento/Chart.yaml b/upstreamed/magento/Chart.yaml index c304525537..914cdb6a8c 100644 --- a/upstreamed/magento/Chart.yaml +++ b/upstreamed/magento/Chart.yaml @@ -1,5 +1,5 @@ name: magento -version: 3.1.1 +version: 3.2.0 appVersion: 2.2.6 description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more. keywords: diff --git a/upstreamed/magento/README.md b/upstreamed/magento/README.md index 943ecd46f3..a31ae35a6e 100644 --- a/upstreamed/magento/README.md +++ b/upstreamed/magento/README.md @@ -47,43 +47,55 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the Magento chart and their default values. -| Parameter | Description | Default | -|------------------------------------|------------------------------------------|----------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | Magento image registry | `docker.io` | -| `image.repository` | Magento Image name | `bitnami/magento` | -| `image.tag` | Magento Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `magentoHost` | Magento host to create application URLs | `nil` | -| `magentoLoadBalancerIP` | `loadBalancerIP` for the magento Service | `nil` | -| `magentoUsername` | User of the application | `user` | -| `magentoPassword` | Application password | _random 10 character long alphanumeric string_ | -| `magentoEmail` | Admin email | `user@example.com` | -| `magentoFirstName` | Magento Admin First Name | `FirstName` | -| `magentoLastName` | Magento Admin Last Name | `LastName` | -| `magentoMode` | Magento mode | `developer` | -| `magentoAdminUri` | Magento prefix to access Magento Admin | `admin` | -| `allowEmptyPassword` | Allow DB blank passwords | `yes` | -| `externalDatabase.host` | Host of the external database | `nil` | -| `externalDatabase.port` | Port of the external database | `3306` | -| `externalDatabase.user` | Existing username in the external db | `bn_magento` | -| `externalDatabase.password` | Password for the above username | `nil` | -| `externalDatabase.database` | Name of the existing database | `bitnami_magento` | -| `mariadb.enabled` | Whether to use the MariaDB chart | `true` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `mariadb.db.name` | Database name to create | `bitnami_magento` | -| `mariadb.db.user` | Database user to create | `bn_magento` | -| `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage annotation) | -| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | -| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | -| `persistence.magento.storageClass` | PVC Storage Class for Magento volume | `nil` (uses alpha storage annotation) | -| `persistence.magento.accessMode` | PVC Access Mode for Magento volume | `ReadWriteOnce` | -| `persistence.magento.size` | PVC Storage Request for Magento volume | `8Gi` | -| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| Parameter | Description | Default | +|--------------------------------------|--------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | Magento image registry | `docker.io` | +| `image.repository` | Magento Image name | `bitnami/magento` | +| `image.tag` | Magento Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `magentoHost` | Magento host to create application URLs | `nil` | +| `magentoLoadBalancerIP` | `loadBalancerIP` for the magento Service | `nil` | +| `magentoUsername` | User of the application | `user` | +| `magentoPassword` | Application password | _random 10 character long alphanumeric string_ | +| `magentoEmail` | Admin email | `user@example.com` | +| `magentoFirstName` | Magento Admin First Name | `FirstName` | +| `magentoLastName` | Magento Admin Last Name | `LastName` | +| `magentoMode` | Magento mode | `developer` | +| `magentoAdminUri` | Magento prefix to access Magento Admin | `admin` | +| `allowEmptyPassword` | Allow DB blank passwords | `yes` | +| `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.port` | Port of the external database | `3306` | +| `externalDatabase.user` | Existing username in the external db | `bn_magento` | +| `externalDatabase.password` | Password for the above username | `nil` | +| `externalDatabase.database` | Name of the existing database | `bitnami_magento` | +| `mariadb.enabled` | Whether to use the MariaDB chart | `true` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `mariadb.db.name` | Database name to create | `bitnami_magento` | +| `mariadb.db.user` | Database user to create | `bn_magento` | +| `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | +| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `livenessProbe.enabled` | Turn on and off liveness probe | `true` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `1000` | +| `livenessProbe.periodSeconds` | How often to perform the probe | `10` | +| `livenessProbe.timeoutSeconds` | When the probe times out | `5` | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe| `1` | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe | `6` | +| `readinessProbe.enabled` | Turn on and off readiness probe | `true` | +| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | `30` | +| `readinessProbe.periodSeconds` | How often to perform the probe | `5` | +| `readinessProbe.timeoutSeconds` | When the probe times out | `3` | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe| `1` | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe | `3` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage annotation) | +| `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | +| `persistence.apache.size` | PVC Storage Request for Apache volume | `1Gi` | +| `persistence.magento.storageClass` | PVC Storage Class for Magento volume | `nil` (uses alpha storage annotation) | +| `persistence.magento.accessMode` | PVC Access Mode for Magento volume | `ReadWriteOnce` | +| `persistence.magento.size` | PVC Storage Request for Magento volume | `8Gi` | +| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | The above parameters map to the env variables defined in [bitnami/magento](http://github.com/bitnami/bitnami-docker-magento). For more information please refer to the [bitnami/magento](http://github.com/bitnami/bitnami-docker-magento) image documentation. diff --git a/upstreamed/magento/templates/deployment.yaml b/upstreamed/magento/templates/deployment.yaml index c8a80d62e1..0a2813a975 100644 --- a/upstreamed/magento/templates/deployment.yaml +++ b/upstreamed/magento/templates/deployment.yaml @@ -89,6 +89,7 @@ spec: containerPort: 80 - name: https containerPort: 443 + {{- if .Values.livenessProbe.enabled }} livenessProbe: httpGet: path: /index.php @@ -96,9 +97,13 @@ spec: httpHeaders: - name: Host value: {{ include "magento.host" . | quote }} - initialDelaySeconds: 1000 - timeoutSeconds: 5 - failureThreshold: 6 + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + {{- end }} + {{- if .Values.readinessProbe.enabled }} readinessProbe: httpGet: path: /index.php @@ -106,9 +111,12 @@ spec: httpHeaders: - name: Host value: {{ include "magento.host" . | quote }} - initialDelaySeconds: 30 - timeoutSeconds: 3 - periodSeconds: 5 + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + {{- end }} resources: {{ toYaml .Values.resources | indent 10 }} volumeMounts: diff --git a/upstreamed/magento/values.yaml b/upstreamed/magento/values.yaml index 10b23438c3..0450d5391f 100644 --- a/upstreamed/magento/values.yaml +++ b/upstreamed/magento/values.yaml @@ -142,6 +142,24 @@ mariadb: ## serviceType: LoadBalancer +## Configure liveness and readiness probes +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) +## +livenessProbe: + enabled: true + initialDelaySeconds: 1000 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 6 +readinessProbe: + enabled: true + initialDelaySeconds: 30 + periodSeconds: 5 + timeoutSeconds: 3 + successThreshold: 1 + failureThreshold: 3 + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## From 6dfe09ea956c8db4ab88587bf31909f8cb6817c7 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 30 Oct 2018 04:44:08 +0000 Subject: [PATCH 066/153] tensorflow-inception: update to `1.11.1` Signed-off-by: Bitnami Containers --- bitnami/tensorflow-inception/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index e739f02c3e..bda2832427 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -13,7 +13,7 @@ server: image: registry: docker.io repository: bitnami/tensorflow-serving - tag: 1.10.1 + tag: 1.11.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -34,7 +34,7 @@ client: image: registry: docker.io repository: bitnami/tensorflow-inception - tag: 1.10.1 + tag: 1.11.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 2091362f7604408a14052b6f96178353743670a9 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 30 Oct 2018 04:44:08 +0000 Subject: [PATCH 067/153] tensorflow-inception: bump chart appVersion to `1.11.1` Signed-off-by: Bitnami Containers --- bitnami/tensorflow-inception/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index 193253288d..509ca94b96 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,6 +1,6 @@ name: tensorflow-inception version: 3.0.0 -appVersion: 1.10.1 +appVersion: 1.11.1 description: Open-source software library for serving machine learning models keywords: - tensorflow From 48b49de25e0f1b3107ed0190cc956dda6c176ccb Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 30 Oct 2018 04:44:08 +0000 Subject: [PATCH 068/153] tensorflow-inception: bump chart version to `3.0.1` Signed-off-by: Bitnami Containers --- bitnami/tensorflow-inception/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index 509ca94b96..e24a0fb066 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,5 +1,5 @@ name: tensorflow-inception -version: 3.0.0 +version: 3.0.1 appVersion: 1.11.1 description: Open-source software library for serving machine learning models keywords: From af17c8e0f9e31ad4bd56bd769d67a17cc790e87a Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Tue, 30 Oct 2018 10:37:19 +0000 Subject: [PATCH 069/153] Synchronize upstreamed folder to b36ffef2 --- upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/README.md | 119 +++++++++--------- .../templates/deployment-standalone.yaml | 3 + .../templates/statefulset-arbiter-rs.yaml | 3 + .../templates/statefulset-primary-rs.yaml | 3 + .../templates/statefulset-secondary-rs.yaml | 3 + upstreamed/mongodb/values-production.yaml | 3 + upstreamed/mongodb/values.yaml | 3 + upstreamed/parse/Chart.yaml | 4 +- upstreamed/parse/values.yaml | 2 +- upstreamed/phabricator/Chart.yaml | 4 +- upstreamed/phabricator/requirements.lock | 4 +- upstreamed/phabricator/values.yaml | 2 +- upstreamed/postgresql/.helmignore | 2 +- upstreamed/postgresql/Chart.yaml | 6 +- upstreamed/postgresql/OWNERS | 4 +- upstreamed/postgresql/templates/NOTES.txt | 2 +- upstreamed/postgresql/values-production.yaml | 2 +- upstreamed/postgresql/values.yaml | 2 +- upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/README.md | 117 ++++++++--------- .../rabbitmq/templates/statefulset.yaml | 3 + upstreamed/rabbitmq/values-production.yaml | 3 + upstreamed/rabbitmq/values.yaml | 3 + upstreamed/suitecrm/Chart.yaml | 4 +- upstreamed/suitecrm/requirements.lock | 4 +- upstreamed/suitecrm/values.yaml | 2 +- upstreamed/testlink/Chart.yaml | 4 +- upstreamed/testlink/requirements.lock | 4 +- upstreamed/testlink/values.yaml | 2 +- 30 files changed, 179 insertions(+), 142 deletions(-) diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 4362747e0f..173e125eb3 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.6.2 +version: 4.7.0 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/README.md b/upstreamed/mongodb/README.md index eedbb64797..32ea5b7196 100644 --- a/upstreamed/mongodb/README.md +++ b/upstreamed/mongodb/README.md @@ -45,61 +45,62 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the MongoDB chart and their default values. -| Parameter | Description | Default | -|-----------------------------------------|----------------------------------------------------------------------------------------------|----------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | MongoDB image registry | `docker.io` | -| `image.repository` | MongoDB Image name | `bitnami/mongodb` | -| `image.tag` | MongoDB Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `usePassword` | Enable password authentication | `true` | -| `existingSecret` | Existing secret with MongoDB credentials | `nil` | -| `mongodbRootPassword` | MongoDB admin password | `random alhpanumeric string (10)` | -| `mongodbUsername` | MongoDB custom user | `nil` | -| `mongodbPassword` | MongoDB custom user password | `random alhpanumeric string (10)` | -| `mongodbDatabase` | Database to create | `nil` | -| `mongodbEnableIPv6` | Switch to enable/disable IPv6 on MongoDB | `true` | -| `mongodbExtraFlags` | MongoDB additional command line flags | [] | -| `service.annotations` | Kubernetes service annotations | `{}` | -| `service.type` | Kubernetes Service type | `ClusterIP` | -| `service.clusterIP` | Static clusterIP or None for headless services | `nil` | -| `service.nodePort` | Port to bind to for NodePort service type | `nil` | -| `port` | MongoDB service port | `27017` | -| `replicaSet.enabled` | Switch to enable/disable replica set configuration | `false` | -| `replicaSet.name` | Name of the replica set | `rs0` | -| `replicaSet.useHostnames` | Enable DNS hostnames in the replica set config | `true` | -| `replicaSet.key` | Key used for authentication in the replica set | `nil` | -| `replicaSet.replicas.secondary` | Number of secondary nodes in the replica set | `1` | -| `replicaSet.replicas.arbiter` | Number of arbiter nodes in the replica set | `1` | -| `replicaSet.pdb.minAvailable.primary` | PDB for the MongoDB Primary nodes | `1` | -| `replicaSet.pdb.minAvailable.secondary` | PDB for the MongoDB Secondary nodes | `1` | -| `replicaSet.pdb.minAvailable.arbiter` | PDB for the MongoDB Arbiter nodes | `1` | -| `podAnnotations` | Annotations to be added to pods | {} | -| `resources` | Pod resources | {} | -| `nodeSelector` | Node labels for pod assignment | {} | -| `affinity` | Affinity for pod assignment | {} | -| `tolerations` | Toleration labels for pod assignment | {} | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | -| `persistence.enabled` | Use a PVC to persist data | `true` | -| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | -| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | -| `persistence.size` | Size of data volume | `8Gi` | -| `persistence.annotations` | Persistent Volume annotations | `{}` | -| `persistence.existingClaim` | Name of an existing PVC to use (avoids creating one if this is given) | `nil` | -| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | -| `livenessProbe.periodSeconds` | How often to perform the probe | `10` | -| `livenessProbe.timeoutSeconds` | When the probe times out | `5` | -| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | -| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | -| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | `5` | -| `readinessProbe.periodSeconds` | How often to perform the probe | `10` | -| `readinessProbe.timeoutSeconds` | When the probe times out | `5` | -| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | -| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | -| `configmap` | MongoDB configuration file to be used | `nil` | +| Parameter | Description | Default | +| --------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | MongoDB image registry | `docker.io` | +| `image.repository` | MongoDB Image name | `bitnami/mongodb` | +| `image.tag` | MongoDB Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `usePassword` | Enable password authentication | `true` | +| `existingSecret` | Existing secret with MongoDB credentials | `nil` | +| `mongodbRootPassword` | MongoDB admin password | `random alhpanumeric string (10)` | +| `mongodbUsername` | MongoDB custom user | `nil` | +| `mongodbPassword` | MongoDB custom user password | `random alhpanumeric string (10)` | +| `mongodbDatabase` | Database to create | `nil` | +| `mongodbEnableIPv6` | Switch to enable/disable IPv6 on MongoDB | `true` | +| `mongodbExtraFlags` | MongoDB additional command line flags | [] | +| `service.annotations` | Kubernetes service annotations | `{}` | +| `service.type` | Kubernetes Service type | `ClusterIP` | +| `service.clusterIP` | Static clusterIP or None for headless services | `nil` | +| `service.nodePort` | Port to bind to for NodePort service type | `nil` | +| `port` | MongoDB service port | `27017` | +| `replicaSet.enabled` | Switch to enable/disable replica set configuration | `false` | +| `replicaSet.name` | Name of the replica set | `rs0` | +| `replicaSet.useHostnames` | Enable DNS hostnames in the replica set config | `true` | +| `replicaSet.key` | Key used for authentication in the replica set | `nil` | +| `replicaSet.replicas.secondary` | Number of secondary nodes in the replica set | `1` | +| `replicaSet.replicas.arbiter` | Number of arbiter nodes in the replica set | `1` | +| `replicaSet.pdb.minAvailable.primary` | PDB for the MongoDB Primary nodes | `1` | +| `replicaSet.pdb.minAvailable.secondary` | PDB for the MongoDB Secondary nodes | `1` | +| `replicaSet.pdb.minAvailable.arbiter` | PDB for the MongoDB Arbiter nodes | `1` | +| `podAnnotations` | Annotations to be added to pods | {} | +| `podLabels` | Additional labels for the pod(s). | {} | +| `resources` | Pod resources | {} | +| `nodeSelector` | Node labels for pod assignment | {} | +| `affinity` | Affinity for pod assignment | {} | +| `tolerations` | Toleration labels for pod assignment | {} | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `persistence.enabled` | Use a PVC to persist data | `true` | +| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | +| `persistence.size` | Size of data volume | `8Gi` | +| `persistence.annotations` | Persistent Volume annotations | `{}` | +| `persistence.existingClaim` | Name of an existing PVC to use (avoids creating one if this is given) | `nil` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | +| `livenessProbe.periodSeconds` | How often to perform the probe | `10` | +| `livenessProbe.timeoutSeconds` | When the probe times out | `5` | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | +| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | `5` | +| `readinessProbe.periodSeconds` | How often to perform the probe | `10` | +| `readinessProbe.timeoutSeconds` | When the probe times out | `5` | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | +| `configmap` | MongoDB configuration file to be used | `nil` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, @@ -116,6 +117,7 @@ Alternatively, a YAML file that specifies the values for the parameters can be p ```bash $ helm install --name my-release -f values.yaml stable/mongodb ``` + > **Tip**: You can use the default [values.yaml](values.yaml) ## Replication @@ -125,6 +127,7 @@ You can start the MongoDB chart in replica set mode with the following command: ```bash $ helm install --name my-release stable/mongodb --set replication.enabled=true ``` + ## Production settings and horizontal scaling The [values-production.yaml](values-production.yaml) file consists a configuration to deploy a scalable and high-available MongoDB deployment for production environments. We recommend that you base your production configuration on this template and adjust the parameters appropriately. @@ -142,9 +145,9 @@ $ kubectl scale statefulset my-release-mongodb-secondary --replicas=3 Some characteristics of this chart are: -* Each of the participants in the replication has a fixed stateful set so you always know where to find the primary, secondary or arbiter nodes. -* The number of secondary and arbiter nodes can be scaled out independently. -* Easy to move an application from using a standalone MongoDB server to use a replica set. +- Each of the participants in the replication has a fixed stateful set so you always know where to find the primary, secondary or arbiter nodes. +- The number of secondary and arbiter nodes can be scaled out independently. +- Easy to move an application from using a standalone MongoDB server to use a replica set. ## Initialize a fresh instance diff --git a/upstreamed/mongodb/templates/deployment-standalone.yaml b/upstreamed/mongodb/templates/deployment-standalone.yaml index 6311ddd33a..a4be1421df 100644 --- a/upstreamed/mongodb/templates/deployment-standalone.yaml +++ b/upstreamed/mongodb/templates/deployment-standalone.yaml @@ -19,6 +19,9 @@ spec: app: {{ template "mongodb.name" . }} release: "{{ .Release.Name }}" chart: {{ template "mongodb.chart" . }} + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} {{- if .Values.podAnnotations }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} diff --git a/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml b/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml index aa75e4e5ab..b795e66986 100644 --- a/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-arbiter-rs.yaml @@ -24,6 +24,9 @@ spec: chart: {{ template "mongodb.chart" . }} release: {{ .Release.Name }} component: arbiter + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} {{- if .Values.podAnnotations }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} diff --git a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml index 1ac926e859..71ea2ee46f 100644 --- a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml @@ -24,6 +24,9 @@ spec: chart: {{ template "mongodb.chart" . }} release: {{ .Release.Name }} component: primary + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} {{- if .Values.podAnnotations }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} diff --git a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml index e31d356daa..bd2c636ca8 100644 --- a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml @@ -25,6 +25,9 @@ spec: chart: {{ template "mongodb.chart" . }} release: {{ .Release.Name }} component: secondary + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} {{- if .Values.podAnnotations }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} diff --git a/upstreamed/mongodb/values-production.yaml b/upstreamed/mongodb/values-production.yaml index 9437401ec9..73776e92f4 100644 --- a/upstreamed/mongodb/values-production.yaml +++ b/upstreamed/mongodb/values-production.yaml @@ -114,6 +114,9 @@ replicaSet: # Annotations to be added to MongoDB pods podAnnotations: {} +# Additional pod labels to apply +podLabels: {} + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## diff --git a/upstreamed/mongodb/values.yaml b/upstreamed/mongodb/values.yaml index b602fc13dc..b33b1bd8cf 100644 --- a/upstreamed/mongodb/values.yaml +++ b/upstreamed/mongodb/values.yaml @@ -114,6 +114,9 @@ replicaSet: # Annotations to be added to MongoDB pods podAnnotations: {} +# Additional pod labels to apply +podLabels: {} + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## diff --git a/upstreamed/parse/Chart.yaml b/upstreamed/parse/Chart.yaml index 33bf46084d..57d0536a22 100644 --- a/upstreamed/parse/Chart.yaml +++ b/upstreamed/parse/Chart.yaml @@ -1,6 +1,6 @@ name: parse -version: 3.1.2 -appVersion: 3.1.0 +version: 3.1.3 +appVersion: 3.1.1 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: - parse diff --git a/upstreamed/parse/values.yaml b/upstreamed/parse/values.yaml index dcbffc36ce..92fcdd3347 100644 --- a/upstreamed/parse/values.yaml +++ b/upstreamed/parse/values.yaml @@ -21,7 +21,7 @@ server: image: registry: docker.io repository: bitnami/parse - tag: 3.1.0 + tag: 3.1.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 04ae68a0e3..2b6d545511 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,6 +1,6 @@ name: phabricator -version: 3.2.3 -appVersion: 2018.42.0 +version: 3.2.4 +appVersion: 2018.43.0 description: Collection of open source web applications that help software companies build better software. keywords: - phabricator diff --git a/upstreamed/phabricator/requirements.lock b/upstreamed/phabricator/requirements.lock index 800d63bc59..d95e34f0a1 100644 --- a/upstreamed/phabricator/requirements.lock +++ b/upstreamed/phabricator/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.1 + version: 5.2.2 digest: sha256:e09c8ca7126923a30e39f442c3863b44684d4eb3f7b6dc869f0206da4463f416 -generated: 2018-10-23T11:10:43.067362461Z +generated: 2018-10-30T04:34:55.655958788Z diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 7bfec33967..dcfefca5b0 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phabricator - tag: 2018.42.0 + tag: 2018.43.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/.helmignore b/upstreamed/postgresql/.helmignore index acbcabf42a..a1c17ae450 100644 --- a/upstreamed/postgresql/.helmignore +++ b/upstreamed/postgresql/.helmignore @@ -1,2 +1,2 @@ .git -OWNERS +OWNERS \ No newline at end of file diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index d39f919c9d..e3bc0564b9 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,6 +1,6 @@ name: postgresql -version: 2.2.0 -appVersion: 10.5.0 +version: 2.2.3 +appVersion: 11.0.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: - postgresql @@ -16,4 +16,6 @@ sources: maintainers: - name: Bitnami email: containers@bitnami.com +- name: desaintmartin + email: cedric@desaintmartin.fr engine: gotpl diff --git a/upstreamed/postgresql/OWNERS b/upstreamed/postgresql/OWNERS index e74df3ff33..9f1a364b58 100644 --- a/upstreamed/postgresql/OWNERS +++ b/upstreamed/postgresql/OWNERS @@ -4,9 +4,11 @@ approvers: - sameersbn - carrodher - juan131 +- desaintmartin reviewers: - prydonius - tompizmor - sameersbn - carrodher -- juan131 \ No newline at end of file +- juan131 +- desaintmartin \ No newline at end of file diff --git a/upstreamed/postgresql/templates/NOTES.txt b/upstreamed/postgresql/templates/NOTES.txt index 3b157d27b7..8b30cfbecc 100644 --- a/upstreamed/postgresql/templates/NOTES.txt +++ b/upstreamed/postgresql/templates/NOTES.txt @@ -47,7 +47,7 @@ To connect to your database from outside the cluster execute the following comma NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "postgresql.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "postgresql.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") {{ if .Values.postgresqlPassword }}PGPASSWORD={{ .Values.postgresqlPassword}} "{{- end }}psql --host $SERVICE_IP --port {{ .Values.service.port }} -U {{ .Values.postgresqlUsername }} {{- else if contains "ClusterIP" .Values.service.type }} diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index 7310041180..294163f183 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 10.5.0 + tag: 11.0.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index 6c3af56964..b7ff79d1ff 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 10.5.0 + tag: 11.0.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index 9a36897b75..38985a6f35 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.5.5 +version: 3.6.0 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/README.md b/upstreamed/rabbitmq/README.md index 5b46366bc9..6320892716 100644 --- a/upstreamed/rabbitmq/README.md +++ b/upstreamed/rabbitmq/README.md @@ -45,63 +45,64 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the RabbitMQ chart and their default values. -| Parameter | Description | Default | -|-----------------------------|---------------------------------------------------------|----------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | Rabbitmq Image registry | `docker.io` | -| `image.repository` | Rabbitmq Image name | `bitnami/rabbitmq` | -| `image.tag` | Rabbitmq Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | -| `image.debug` | Specify if debug values should be set | `false` | -| `rbacEnabled` | Specify if rbac is enabled in your cluster | `true` | -| `rabbitmq.username` | RabbitMQ application username | `user` | -| `rabbitmq.password` | RabbitMQ application password | _random 10 character long alphanumeric string_ | -| `rabbitmq.erlangCookie` | Erlang cookie | _random 32 character long alphanumeric string_ | -| `rabbitmq.amqpPort` | Amqp port | `5672` | -| `rabbitmq.distPort` | Erlang distribution server port | `25672` | -| `rabbitmq.nodePort` | Node port override, if serviceType NodePort | _random available between 30000-32767_ | -| `rabbitmq.managerPort` | RabbitMQ Manager port | `15672` | -| `rabbitmq.diskFreeLimit` | Disk free limit | `"6GiB"` | -| `rabbitmq.plugins` | configuration file for plugins to enable | `[rabbitmq_management,rabbitmq_peer_discovery_k8s].` | -| `rabbitmq.clustering.address_type` | Switch clustering mode | `ip` or `hostname` -| `rabbitmq.clustering.k8s_domain` | Customize internal k8s cluster domain | `cluster.local` -| `rabbitmq.ulimitNofiles` | Max File Descriptor limit | `65536` | -| `rabbitmq.configuration` | rabbitmq.conf content | see values.yaml | -| `serviceType` | Kubernetes Service type | `ClusterIP` | -| `persistence.enabled` | Use a PVC to persist data | `false` | -| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | -| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | -| `persistence.size` | Size of data volume | `8Gi` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | -| `resources` | resource needs and limits to apply to the pod | {} | -| `nodeSelector` | Node labels for pod assignment | {} | -| `affinity` | Affinity settings for pod assignment | {} | -| `tolerations` | Toleration labels for pod assignment | [] | -| `ingress.enabled` | enable ingress for management console | `false` | -| `ingress.tls` | enable ingress with tls | `false` | -| `ingress.tlsSecret` | tls type secret to be used | `myTlsSecret` | -| `ingress.annotations` | ingress annotations as an array | [] | -| `livenessProbe.enabled` | would you like a livenessProbed to be enabled | `true` | -| `livenessProbe.initialDelaySeconds` | number of seconds | 120 | -| `livenessProbe.timeoutSeconds` | number of seconds | 5 | -| `livenessProbe.periodSeconds` | number of seconds | 5 | -| `livenessProbe.failureThreshold` | number of failures | 6 | -| `livenessProbe.successThreshold` | number of successes | 1 | -| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | -| `readinessProbe.initialDelaySeconds` | number of seconds | 10 | -| `readinessProbe.timeoutSeconds` | number of seconds | 3 | -| `readinessProbe.periodSeconds ` | number of seconds | 5 | -| `readinessProbe.failureThreshold` | number of failures | 3 | -| `readinessProbe.successThreshold` | number of successes | 1 | -| `metrics.enabled` | Start a side-car prometheus exporter | `false` | -| `metrics.image.registry` | Exporter image registry | `docker.io` | -| `metrics.image.repository` | Exporter image name | `kbudde/rabbitmq-exporter` | -| `metrics.image.tag` | Exporter image tag | `v0.29.0` | -| `metrics.image.pullPolicy` | Exporter image pull policy | `IfNotPresent` | -| `metrics.resources` | Exporter resource requests/limit | `nil` | +| Parameter | Description | Default | +| ------------------------------------ | ------------------------------------------------ | ------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | Rabbitmq Image registry | `docker.io` | +| `image.repository` | Rabbitmq Image name | `bitnami/rabbitmq` | +| `image.tag` | Rabbitmq Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `image.debug` | Specify if debug values should be set | `false` | +| `rbacEnabled` | Specify if rbac is enabled in your cluster | `true` | +| `rabbitmq.username` | RabbitMQ application username | `user` | +| `rabbitmq.password` | RabbitMQ application password | _random 10 character long alphanumeric string_ | +| `rabbitmq.erlangCookie` | Erlang cookie | _random 32 character long alphanumeric string_ | +| `rabbitmq.amqpPort` | Amqp port | `5672` | +| `rabbitmq.distPort` | Erlang distribution server port | `25672` | +| `rabbitmq.nodePort` | Node port override, if serviceType NodePort | _random avaliable between 30000-32767_ | +| `rabbitmq.managerPort` | RabbitMQ Manager port | `15672` | +| `rabbitmq.diskFreeLimit` | Disk free limit | `"6GiB"` | +| `rabbitmq.plugins` | configuration file for plugins to enable | `[rabbitmq_management,rabbitmq_peer_discovery_k8s].` | +| `rabbitmq.clustering.address_type` | Switch clustering mode | `ip` or `hostname` | +| `rabbitmq.clustering.k8s_domain` | Customize internal k8s cluster domain | `cluster.local` | +| `rabbitmq.ulimitNofiles` | Max File Descriptor limit | `65536` | +| `rabbitmq.configuration` | rabbitmq.conf content | see values.yaml | +| `serviceType` | Kubernetes Service type | `ClusterIP` | +| `persistence.enabled` | Use a PVC to persist data | `false` | +| `persistence.storageClass` | Storage class of backing PVC | `nil` (uses alpha storage class annotation) | +| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` | +| `persistence.size` | Size of data volume | `8Gi` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `resources` | resource needs and limits to apply to the pod | {} | +| `nodeSelector` | Node labels for pod assignment | {} | +| `affinity` | Affinity settings for pod assignment | {} | +| `tolerations` | Toleration labels for pod assignment | [] | +| `ingress.enabled` | enable ingress for management console | `false` | +| `ingress.tls` | enable ingress with tls | `false` | +| `ingress.tlsSecret` | tls type secret to be used | `myTlsSecret` | +| `ingress.annotations` | ingress annotations as an array | [] | +| `livenessProbe.enabled` | would you like a livenessProbed to be enabled | `true` | +| `livenessProbe.initialDelaySeconds` | number of seconds | 120 | +| `livenessProbe.timeoutSeconds` | number of seconds | 5 | +| `livenessProbe.periodSeconds` | number of seconds | 5 | +| `livenessProbe.failureThreshold` | number of failures | 6 | +| `livenessProbe.successThreshold` | number of successes | 1 | +| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | +| `readinessProbe.initialDelaySeconds` | number of seconds | 10 | +| `readinessProbe.timeoutSeconds` | number of seconds | 3 | +| `readinessProbe.periodSeconds` | number of seconds | 5 | +| `readinessProbe.failureThreshold` | number of failures | 3 | +| `readinessProbe.successThreshold` | number of successes | 1 | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Exporter image registry | `docker.io` | +| `metrics.image.repository` | Exporter image name | `kbudde/rabbitmq-exporter` | +| `metrics.image.tag` | Exporter image tag | `v0.29.0` | +| `metrics.image.pullPolicy` | Exporter image pull policy | `IfNotPresent` | +| `metrics.resources` | Exporter resource requests/limit | `nil` | +| `podLabels` | Additional labels for the statefulset pod(s). | {} | The above parameters map to the env variables defined in [bitnami/rabbitmq](http://github.com/bitnami/bitnami-docker-rabbitmq). For more information please refer to the [bitnami/rabbitmq](http://github.com/bitnami/bitnami-docker-rabbitmq) image documentation. @@ -124,7 +125,9 @@ $ helm install --name my-release -f values.yaml stable/rabbitmq > **Tip**: You can use the default [values.yaml](values.yaml) ## Production configuration + A standard configuration is provided by default that will run on most development environments. To operate this chart in a production environment, we recommend you use the alternative file values-production.yaml provided in this repository. + ```bash $ helm install --name my-release -f values-production.yaml stable/rabbitmq ``` diff --git a/upstreamed/rabbitmq/templates/statefulset.yaml b/upstreamed/rabbitmq/templates/statefulset.yaml index a8a65704f9..f7ec51c3b3 100644 --- a/upstreamed/rabbitmq/templates/statefulset.yaml +++ b/upstreamed/rabbitmq/templates/statefulset.yaml @@ -20,6 +20,9 @@ spec: app: {{ template "rabbitmq.name" . }} release: "{{ .Release.Name }}" chart: {{ template "rabbitmq.chart" . }} + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} {{- if .Values.podAnnotations }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} diff --git a/upstreamed/rabbitmq/values-production.yaml b/upstreamed/rabbitmq/values-production.yaml index 95dfbd1caa..173ffbe428 100644 --- a/upstreamed/rabbitmq/values-production.yaml +++ b/upstreamed/rabbitmq/values-production.yaml @@ -102,6 +102,9 @@ rabbitmq: ## Kubernetes service type serviceType: ClusterIP +# Additional pod labels to apply +podLabels: {} + ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## diff --git a/upstreamed/rabbitmq/values.yaml b/upstreamed/rabbitmq/values.yaml index 36b6868033..3f60ec6d76 100644 --- a/upstreamed/rabbitmq/values.yaml +++ b/upstreamed/rabbitmq/values.yaml @@ -111,6 +111,9 @@ rabbitmq: ## Kubernetes service type serviceType: ClusterIP +# Additional pod labels to apply +podLabels: {} + ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## diff --git a/upstreamed/suitecrm/Chart.yaml b/upstreamed/suitecrm/Chart.yaml index f2ca7985ad..b40de557cc 100644 --- a/upstreamed/suitecrm/Chart.yaml +++ b/upstreamed/suitecrm/Chart.yaml @@ -1,6 +1,6 @@ name: suitecrm -version: 4.0.1 -appVersion: 7.10.9 +version: 4.0.2 +appVersion: 7.10.10 description: SuiteCRM is a completely open source enterprise-grade Customer Relationship Management (CRM) application. SuiteCRM is a software fork of the popular customer relationship management (CRM) system SugarCRM. keywords: - suitecrm diff --git a/upstreamed/suitecrm/requirements.lock b/upstreamed/suitecrm/requirements.lock index 678aaca2b8..27720bedcb 100644 --- a/upstreamed/suitecrm/requirements.lock +++ b/upstreamed/suitecrm/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.2 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:50:49.43739+02:00 +generated: 2018-10-30T04:38:18.642026163Z diff --git a/upstreamed/suitecrm/values.yaml b/upstreamed/suitecrm/values.yaml index 86abe1b2a9..ca20d6ee18 100644 --- a/upstreamed/suitecrm/values.yaml +++ b/upstreamed/suitecrm/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/suitecrm - tag: 7.10.9 + tag: 7.10.10 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/testlink/Chart.yaml b/upstreamed/testlink/Chart.yaml index bcdcda6a18..4b96ecf064 100644 --- a/upstreamed/testlink/Chart.yaml +++ b/upstreamed/testlink/Chart.yaml @@ -1,6 +1,6 @@ name: testlink -version: 3.1.1 -appVersion: 1.9.17 +version: 3.1.2 +appVersion: 1.9.18 description: Web-based test management system that facilitates software quality assurance. icon: https://bitnami.com/assets/stacks/testlink/img/testlink-stack-220x234.png keywords: diff --git a/upstreamed/testlink/requirements.lock b/upstreamed/testlink/requirements.lock index 3c1cfb14ff..372f51d02e 100644 --- a/upstreamed/testlink/requirements.lock +++ b/upstreamed/testlink/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.2 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:50:59.206637+02:00 +generated: 2018-10-29T13:32:38.278217012Z diff --git a/upstreamed/testlink/values.yaml b/upstreamed/testlink/values.yaml index 139c5b668f..67bcd4dfbb 100644 --- a/upstreamed/testlink/values.yaml +++ b/upstreamed/testlink/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/testlink - tag: 1.9.17 + tag: 1.9.18 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 5882a2dcdf524bc3d90c5a86e40092608e6d3324 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Tue, 30 Oct 2018 14:46:29 +0000 Subject: [PATCH 070/153] Synchronize upstreamed folder to 9562b540 --- upstreamed/postgresql/Chart.yaml | 4 ++-- upstreamed/postgresql/values-production.yaml | 2 +- upstreamed/postgresql/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index e3bc0564b9..9e3f45cbc2 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,6 +1,6 @@ name: postgresql -version: 2.2.3 -appVersion: 11.0.0 +version: 2.2.4 +appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: - postgresql diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index 294163f183..7310041180 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 11.0.0 + tag: 10.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index b7ff79d1ff..6c3af56964 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 11.0.0 + tag: 10.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 556478b819e48e95dc8e3cee4a400aff0741a0c6 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 31 Oct 2018 10:38:48 +0000 Subject: [PATCH 071/153] Synchronize upstreamed folder to 15b8c24a --- upstreamed/ghost/Chart.yaml | 4 +- upstreamed/ghost/requirements.lock | 4 +- upstreamed/ghost/values.yaml | 2 +- upstreamed/joomla/Chart.yaml | 4 +- upstreamed/joomla/README.md | 9 +++++ upstreamed/joomla/requirements.lock | 4 +- upstreamed/joomla/templates/_helpers.tpl | 10 +++++ upstreamed/joomla/templates/deployment.yaml | 38 ++++++++++++++++++- upstreamed/joomla/values.yaml | 32 +++++++++++++++- upstreamed/magento/Chart.yaml | 2 +- upstreamed/magento/README.md | 9 +++++ upstreamed/magento/templates/_helpers.tpl | 10 +++++ upstreamed/magento/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/magento/values.yaml | 29 ++++++++++++++ upstreamed/mediawiki/Chart.yaml | 2 +- upstreamed/mediawiki/README.md | 9 +++++ upstreamed/mediawiki/templates/_helpers.tpl | 10 +++++ .../mediawiki/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/mediawiki/values.yaml | 28 ++++++++++++++ upstreamed/orangehrm/Chart.yaml | 2 +- upstreamed/orangehrm/README.md | 9 +++++ upstreamed/orangehrm/templates/_helpers.tpl | 10 +++++ .../orangehrm/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/orangehrm/values.yaml | 29 ++++++++++++++ upstreamed/phabricator/Chart.yaml | 2 +- upstreamed/phabricator/README.md | 9 +++++ upstreamed/phabricator/templates/_helpers.tpl | 10 +++++ .../phabricator/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/phabricator/values.yaml | 28 ++++++++++++++ upstreamed/phpmyadmin/Chart.yaml | 2 +- upstreamed/phpmyadmin/README.md | 9 +++++ upstreamed/phpmyadmin/templates/_helpers.tpl | 10 +++++ .../phpmyadmin/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/phpmyadmin/values.yaml | 27 +++++++++++++ upstreamed/prestashop/Chart.yaml | 2 +- upstreamed/prestashop/README.md | 9 +++++ upstreamed/prestashop/templates/_helpers.tpl | 10 +++++ .../prestashop/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/prestashop/values.yaml | 29 ++++++++++++++ upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/README.md | 2 +- upstreamed/rabbitmq/templates/NOTES.txt | 6 +-- .../rabbitmq/templates/svc-headless.yaml | 3 -- upstreamed/wordpress/Chart.yaml | 2 +- upstreamed/wordpress/README.md | 9 +++++ upstreamed/wordpress/templates/_helpers.tpl | 10 +++++ .../wordpress/templates/deployment.yaml | 38 ++++++++++++++++++- upstreamed/wordpress/values-production.yaml | 24 ++++++++++++ upstreamed/wordpress/values.yaml | 28 ++++++++++++++ 49 files changed, 716 insertions(+), 27 deletions(-) diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 10fff962f5..c2931705d9 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.3.5 -appVersion: 2.3.0 +version: 5.3.6 +appVersion: 2.4.0 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/requirements.lock b/upstreamed/ghost/requirements.lock index d802baa56b..0892a9bf63 100644 --- a/upstreamed/ghost/requirements.lock +++ b/upstreamed/ghost/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.1 + version: 5.2.2 digest: sha256:b3053e73f5c114f55a794eccea2606cc9fe8a669eaab1716246994bbdd37a473 -generated: 2018-10-18T15:44:54.770529237Z +generated: 2018-10-30T18:15:54.953650061Z diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 2cf1f7f377..2ccb7f6136 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.3.0 + tag: 2.4.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/joomla/Chart.yaml b/upstreamed/joomla/Chart.yaml index 01c4f8b4ef..e374dc63d3 100644 --- a/upstreamed/joomla/Chart.yaml +++ b/upstreamed/joomla/Chart.yaml @@ -1,6 +1,6 @@ name: joomla -version: 3.3.1 -appVersion: 3.8.13 +version: 3.4.0 +appVersion: 3.9.0 description: PHP content management system (CMS) for publishing web content keywords: - joomla diff --git a/upstreamed/joomla/README.md b/upstreamed/joomla/README.md index 2347c0a274..bfaf3a8c0d 100644 --- a/upstreamed/joomla/README.md +++ b/upstreamed/joomla/README.md @@ -114,6 +114,15 @@ The following table lists the configurable parameters of the Joomla! chart and t | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | List of node taints to tolerate | `[]` | | `affinity` | Map of node/pod affinities | `{}` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/joomla](http://github.com/bitnami/bitnami-docker-joomla). For more information please refer to the [bitnami/joomla](http://github.com/bitnami/bitnami-docker-joomla) image documentation. diff --git a/upstreamed/joomla/requirements.lock b/upstreamed/joomla/requirements.lock index aafbc8eef4..ae55aa5164 100644 --- a/upstreamed/joomla/requirements.lock +++ b/upstreamed/joomla/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.2 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:48:17.456241+02:00 +generated: 2018-10-30T16:57:15.548981979Z diff --git a/upstreamed/joomla/templates/_helpers.tpl b/upstreamed/joomla/templates/_helpers.tpl index 1a7e5a7372..90fb598eb4 100644 --- a/upstreamed/joomla/templates/_helpers.tpl +++ b/upstreamed/joomla/templates/_helpers.tpl @@ -52,3 +52,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "joomla.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/joomla/templates/deployment.yaml b/upstreamed/joomla/templates/deployment.yaml index 1032233c8e..78b7ad1de5 100644 --- a/upstreamed/joomla/templates/deployment.yaml +++ b/upstreamed/joomla/templates/deployment.yaml @@ -20,6 +20,15 @@ spec: app: {{ template "joomla.fullname" . }} chart: {{ template "joomla.chart" . }} release: {{ .Release.Name | quote }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -27,8 +36,12 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - - name: {{ template "joomla.fullname" . }} + - name: joomla image: {{ template "joomla.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: @@ -129,6 +142,29 @@ spec: mountPath: /bitnami/joomla - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: joomla-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/joomla/values.yaml b/upstreamed/joomla/values.yaml index 1882c9435b..e7300be7ef 100644 --- a/upstreamed/joomla/values.yaml +++ b/upstreamed/joomla/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/joomla - tag: 3.8.13 + tag: 3.9.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -254,3 +254,33 @@ tolerations: [] ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## affinity: {} + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/magento/Chart.yaml b/upstreamed/magento/Chart.yaml index 914cdb6a8c..e8ce70881e 100644 --- a/upstreamed/magento/Chart.yaml +++ b/upstreamed/magento/Chart.yaml @@ -1,5 +1,5 @@ name: magento -version: 3.2.0 +version: 3.3.0 appVersion: 2.2.6 description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more. keywords: diff --git a/upstreamed/magento/README.md b/upstreamed/magento/README.md index a31ae35a6e..e1bbc4def9 100644 --- a/upstreamed/magento/README.md +++ b/upstreamed/magento/README.md @@ -96,6 +96,15 @@ The following table lists the configurable parameters of the Magento chart and t | `persistence.magento.accessMode` | PVC Access Mode for Magento volume | `ReadWriteOnce` | | `persistence.magento.size` | PVC Storage Request for Magento volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/magento](http://github.com/bitnami/bitnami-docker-magento). For more information please refer to the [bitnami/magento](http://github.com/bitnami/bitnami-docker-magento) image documentation. diff --git a/upstreamed/magento/templates/_helpers.tpl b/upstreamed/magento/templates/_helpers.tpl index 28c5d51c82..7fdce86d89 100644 --- a/upstreamed/magento/templates/_helpers.tpl +++ b/upstreamed/magento/templates/_helpers.tpl @@ -82,3 +82,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/magento/templates/deployment.yaml b/upstreamed/magento/templates/deployment.yaml index 0a2813a975..fa104f8d39 100644 --- a/upstreamed/magento/templates/deployment.yaml +++ b/upstreamed/magento/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "magento.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "magento.fullname" . }} image: {{ template "magento.image" . }} @@ -124,6 +137,29 @@ spec: mountPath: /bitnami/magento - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: magento-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/magento/values.yaml b/upstreamed/magento/values.yaml index 0450d5391f..11c4f4aa05 100644 --- a/upstreamed/magento/values.yaml +++ b/upstreamed/magento/values.yaml @@ -195,3 +195,32 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/mediawiki/Chart.yaml b/upstreamed/mediawiki/Chart.yaml index 4d77d5e08c..0944a534af 100644 --- a/upstreamed/mediawiki/Chart.yaml +++ b/upstreamed/mediawiki/Chart.yaml @@ -1,5 +1,5 @@ name: mediawiki -version: 5.0.1 +version: 5.1.0 appVersion: 1.31.1 description: Extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database. diff --git a/upstreamed/mediawiki/README.md b/upstreamed/mediawiki/README.md index 967f6735ce..3c4d9723c1 100644 --- a/upstreamed/mediawiki/README.md +++ b/upstreamed/mediawiki/README.md @@ -107,6 +107,15 @@ The following table lists the configurable parameters of the MediaWiki chart and | `readinessProbe.timeoutSeconds` | When the probe times out (ingest nodes pod) | 5 | | `readinessProbe.failureThreshold` | Minimum consecutive failures to be considered failed | 6 | | `readinessProbe.successThreshold` | Minimum consecutive successes to be considered successful | 1 | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/mediawiki](http://github.com/bitnami/bitnami-docker-mediawiki). For more information please refer to the [bitnami/mediawiki](http://github.com/bitnami/bitnami-docker-mediawiki) image documentation. diff --git a/upstreamed/mediawiki/templates/_helpers.tpl b/upstreamed/mediawiki/templates/_helpers.tpl index a22b440d20..ddeeb9dea0 100644 --- a/upstreamed/mediawiki/templates/_helpers.tpl +++ b/upstreamed/mediawiki/templates/_helpers.tpl @@ -52,3 +52,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- define "mediawiki.mariadb.fullname" -}} {{- printf "%s-%s" .Release.Name "mariadb" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/mediawiki/templates/deployment.yaml b/upstreamed/mediawiki/templates/deployment.yaml index 6b0dc7798d..851041e031 100644 --- a/upstreamed/mediawiki/templates/deployment.yaml +++ b/upstreamed/mediawiki/templates/deployment.yaml @@ -20,6 +20,15 @@ spec: app: {{ template "mediawiki.name" . }} chart: {{ template "mediawiki.chart" . }} release: {{ .Release.Name | quote }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -27,6 +36,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "mediawiki.fullname" . }} image: {{ template "mediawiki.image" . }} @@ -138,6 +151,29 @@ spec: - mountPath: /bitnami/mediawiki name: mediawiki-data subPath: mediawiki +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: mediawiki-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/mediawiki/values.yaml b/upstreamed/mediawiki/values.yaml index ca3e494deb..dfbb1ad763 100644 --- a/upstreamed/mediawiki/values.yaml +++ b/upstreamed/mediawiki/values.yaml @@ -241,3 +241,31 @@ readinessProbe: timeoutSeconds: 5 failureThreshold: 6 successThreshold: 1 +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/orangehrm/Chart.yaml b/upstreamed/orangehrm/Chart.yaml index d81704b376..8e92d0db2f 100644 --- a/upstreamed/orangehrm/Chart.yaml +++ b/upstreamed/orangehrm/Chart.yaml @@ -1,5 +1,5 @@ name: orangehrm -version: 3.1.2 +version: 3.2.0 appVersion: 4.1.2-1 description: OrangeHRM is a free HR management system that offers a wealth of modules to suit the needs of your business. diff --git a/upstreamed/orangehrm/README.md b/upstreamed/orangehrm/README.md index b3807115c9..625389d707 100644 --- a/upstreamed/orangehrm/README.md +++ b/upstreamed/orangehrm/README.md @@ -86,6 +86,15 @@ The following table lists the configurable parameters of the OrangeHRM chart and | `mariadb.persistence.storageClass` | PVC Storage Class for MariaDB volume | `nil` (uses alpha storage class annotation) | | `mariadb.persistence.accessMode` | PVC Access Mode for MariaDB volume | `ReadWriteOnce` | | `mariadb.persistence.size` | PVC Storage Request for MariaDB volume | `8Gi` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/orangehrm](http://github.com/bitnami/bitnami-docker-orangehrm). For more information please refer to the [bitnami/orangehrm](http://github.com/bitnami/bitnami-docker-orangehrm) image documentation. diff --git a/upstreamed/orangehrm/templates/_helpers.tpl b/upstreamed/orangehrm/templates/_helpers.tpl index c1f57c5232..c9266a39db 100644 --- a/upstreamed/orangehrm/templates/_helpers.tpl +++ b/upstreamed/orangehrm/templates/_helpers.tpl @@ -45,3 +45,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/orangehrm/templates/deployment.yaml b/upstreamed/orangehrm/templates/deployment.yaml index cf4c8bded7..cb873eb84e 100644 --- a/upstreamed/orangehrm/templates/deployment.yaml +++ b/upstreamed/orangehrm/templates/deployment.yaml @@ -18,6 +18,15 @@ spec: app: {{ template "orangehrm.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -25,6 +34,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "orangehrm.fullname" . }} image: {{ template "orangehrm.image" . }} @@ -103,6 +116,29 @@ spec: mountPath: /bitnami/orangehrm - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: orangehrm-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/orangehrm/values.yaml b/upstreamed/orangehrm/values.yaml index e969301f18..8f548b2261 100644 --- a/upstreamed/orangehrm/values.yaml +++ b/upstreamed/orangehrm/values.yaml @@ -151,3 +151,32 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 2b6d545511..6a004d823b 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,5 +1,5 @@ name: phabricator -version: 3.2.4 +version: 3.3.0 appVersion: 2018.43.0 description: Collection of open source web applications that help software companies build better software. keywords: diff --git a/upstreamed/phabricator/README.md b/upstreamed/phabricator/README.md index 5e294b0d17..76656413d0 100644 --- a/upstreamed/phabricator/README.md +++ b/upstreamed/phabricator/README.md @@ -88,6 +88,15 @@ The following table lists the configurable parameters of the Phabricator chart a | `ingress.secrets[0].name` | TLS Secret Name | `nil` | | `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | | `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/phabricator](http://github.com/bitnami/bitnami-docker-phabricator). For more information please refer to the [bitnami/phabricator](http://github.com/bitnami/bitnami-docker-phabricator) image documentation. diff --git a/upstreamed/phabricator/templates/_helpers.tpl b/upstreamed/phabricator/templates/_helpers.tpl index 6e404fafe0..0d5b7de994 100644 --- a/upstreamed/phabricator/templates/_helpers.tpl +++ b/upstreamed/phabricator/templates/_helpers.tpl @@ -66,3 +66,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/phabricator/templates/deployment.yaml b/upstreamed/phabricator/templates/deployment.yaml index 6e224e2a08..a64a1bd713 100644 --- a/upstreamed/phabricator/templates/deployment.yaml +++ b/upstreamed/phabricator/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "phabricator.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "phabricator.fullname" . }} image: {{ template "phabricator.image" . }} @@ -120,6 +133,29 @@ spec: mountPath: /bitnami/phabricator - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: phabricator-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index dcfefca5b0..ba999c720c 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -194,3 +194,31 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/phpmyadmin/Chart.yaml b/upstreamed/phpmyadmin/Chart.yaml index 237a2225c0..b8d5c4cd00 100644 --- a/upstreamed/phpmyadmin/Chart.yaml +++ b/upstreamed/phpmyadmin/Chart.yaml @@ -1,5 +1,5 @@ name: phpmyadmin -version: 1.2.2 +version: 1.3.0 appVersion: 4.8.3 description: phpMyAdmin is an mysql administration frontend keywords: diff --git a/upstreamed/phpmyadmin/README.md b/upstreamed/phpmyadmin/README.md index 59f3ae4678..9ad79f093c 100644 --- a/upstreamed/phpmyadmin/README.md +++ b/upstreamed/phpmyadmin/README.md @@ -66,6 +66,15 @@ The following table lists the configurable parameters of the phpMyAdmin chart an | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | List of node taints to tolerate | `[]` | | `affinity` | Map of node/pod affinities | `{}` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | For more information please refer to the [bitnami/phpmyadmin](http://github.com/bitnami/bitnami-docker-Phpmyadmin) image documentation. diff --git a/upstreamed/phpmyadmin/templates/_helpers.tpl b/upstreamed/phpmyadmin/templates/_helpers.tpl index da8c8d1654..514e5b15e2 100644 --- a/upstreamed/phpmyadmin/templates/_helpers.tpl +++ b/upstreamed/phpmyadmin/templates/_helpers.tpl @@ -61,3 +61,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/phpmyadmin/templates/deployment.yaml b/upstreamed/phpmyadmin/templates/deployment.yaml index cfc25e5d2f..dd79273f9f 100644 --- a/upstreamed/phpmyadmin/templates/deployment.yaml +++ b/upstreamed/phpmyadmin/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "phpmyadmin.name" . }} chart: {{ template "phpmyadmin.chart" . }} release: {{ .Release.Name }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ .Chart.Name }} image: {{ template "phpmyadmin.image" . }} @@ -68,6 +81,29 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: +{{ toYaml .Values.metrics.resources | indent 12 }} +{{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/upstreamed/phpmyadmin/values.yaml b/upstreamed/phpmyadmin/values.yaml index 9040c6e5c6..dfe6faf5ae 100644 --- a/upstreamed/phpmyadmin/values.yaml +++ b/upstreamed/phpmyadmin/values.yaml @@ -81,3 +81,30 @@ tolerations: [] ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## affinity: {} + +## Pod annotations +podAnnotations: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/prestashop/Chart.yaml b/upstreamed/prestashop/Chart.yaml index 00c08cde5b..60b9cc5427 100644 --- a/upstreamed/prestashop/Chart.yaml +++ b/upstreamed/prestashop/Chart.yaml @@ -1,5 +1,5 @@ name: prestashop -version: 4.0.1 +version: 4.1.0 appVersion: 1.7.4-3 description: A popular open source ecommerce solution. Professional tools are easily accessible to increase online sales including instant guest checkout, abandoned diff --git a/upstreamed/prestashop/README.md b/upstreamed/prestashop/README.md index 0730846bb7..fcb748120a 100644 --- a/upstreamed/prestashop/README.md +++ b/upstreamed/prestashop/README.md @@ -98,6 +98,15 @@ The following table lists the configurable parameters of the PrestaShop chart an | `readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/prestashop](http://github.com/bitnami/bitnami-docker-prestashop). For more information please refer to the [bitnami/prestashop](http://github.com/bitnami/bitnami-docker-prestashop) image documentation. diff --git a/upstreamed/prestashop/templates/_helpers.tpl b/upstreamed/prestashop/templates/_helpers.tpl index bad019eb2c..681bf841fa 100644 --- a/upstreamed/prestashop/templates/_helpers.tpl +++ b/upstreamed/prestashop/templates/_helpers.tpl @@ -66,3 +66,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/prestashop/templates/deployment.yaml b/upstreamed/prestashop/templates/deployment.yaml index bc002c41a6..260057ead5 100644 --- a/upstreamed/prestashop/templates/deployment.yaml +++ b/upstreamed/prestashop/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "prestashop.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "prestashop.fullname" . }} image: {{ template "prestashop.image" . }} @@ -134,6 +147,29 @@ spec: - mountPath: /bitnami/prestashop name: prestashop-data subPath: prestashop +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: +{{ toYaml .Values.metrics.resources | indent 12 }} +{{- end }} volumes: - name: prestashop-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/prestashop/values.yaml b/upstreamed/prestashop/values.yaml index 59a929b72f..1571bfcc24 100644 --- a/upstreamed/prestashop/values.yaml +++ b/upstreamed/prestashop/values.yaml @@ -200,3 +200,32 @@ readinessProbe: timeoutSeconds: 3 failureThreshold: 6 successThreshold: 1 + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index 38985a6f35..31d2b7e3bf 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.6.0 +version: 3.6.2 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/README.md b/upstreamed/rabbitmq/README.md index 6320892716..e957170640 100644 --- a/upstreamed/rabbitmq/README.md +++ b/upstreamed/rabbitmq/README.md @@ -60,7 +60,7 @@ The following table lists the configurable parameters of the RabbitMQ chart and | `rabbitmq.erlangCookie` | Erlang cookie | _random 32 character long alphanumeric string_ | | `rabbitmq.amqpPort` | Amqp port | `5672` | | `rabbitmq.distPort` | Erlang distribution server port | `25672` | -| `rabbitmq.nodePort` | Node port override, if serviceType NodePort | _random avaliable between 30000-32767_ | +| `rabbitmq.nodePort` | Node port override, if serviceType NodePort | _random available between 30000-32767_ | | `rabbitmq.managerPort` | RabbitMQ Manager port | `15672` | | `rabbitmq.diskFreeLimit` | Disk free limit | `"6GiB"` | | `rabbitmq.plugins` | configuration file for plugins to enable | `[rabbitmq_management,rabbitmq_peer_discovery_k8s].` | diff --git a/upstreamed/rabbitmq/templates/NOTES.txt b/upstreamed/rabbitmq/templates/NOTES.txt index f7794c7521..43e752b6aa 100644 --- a/upstreamed/rabbitmq/templates/NOTES.txt +++ b/upstreamed/rabbitmq/templates/NOTES.txt @@ -38,7 +38,7 @@ NOTE: It may take a few minutes for the LoadBalancer IP to be available. To Access the RabbitMQ AMQP port: - echo "URL : amqp://$SERVICE_IP:{{ .Values.rabbitmq.nodePort }}/" + echo "URL : amqp://$SERVICE_IP:{{ .Values.rabbitmq.amqpPort }}/" To Access the RabbitMQ Management interface: @@ -48,8 +48,8 @@ To Access the RabbitMQ Management interface: To Access the RabbitMQ AMQP port: - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "rabbitmq.fullname" . }} {{ .Values.rabbitmq.nodePort }}:{{ .Values.rabbitmq.nodePort }} - echo "URL : amqp://127.0.0.1:{{ .Values.rabbitmq.nodePort }}/" + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "rabbitmq.fullname" . }} {{ .Values.rabbitmq.amqpPort }}:{{ .Values.rabbitmq.amqpPort }} + echo "URL : amqp://127.0.0.1:{{ .Values.rabbitmq.amqpPort }}/" To Access the RabbitMQ Management interface: diff --git a/upstreamed/rabbitmq/templates/svc-headless.yaml b/upstreamed/rabbitmq/templates/svc-headless.yaml index 888bd25834..c66f3d978d 100644 --- a/upstreamed/rabbitmq/templates/svc-headless.yaml +++ b/upstreamed/rabbitmq/templates/svc-headless.yaml @@ -16,9 +16,6 @@ spec: - name: amqp port: {{ .Values.rabbitmq.amqpPort }} targetPort: amqp - {{- if (and (eq .Values.serviceType "NodePort") (not (empty .Values.rabbitmq.nodePort))) }} - nodePort: {{ .Values.rabbitmq.nodePort }} - {{- end }} - name: dist port: {{ .Values.rabbitmq.distPort }} targetPort: dist diff --git a/upstreamed/wordpress/Chart.yaml b/upstreamed/wordpress/Chart.yaml index 3bdccff56c..a5a010cc7c 100644 --- a/upstreamed/wordpress/Chart.yaml +++ b/upstreamed/wordpress/Chart.yaml @@ -1,5 +1,5 @@ name: wordpress -version: 3.2.1 +version: 3.3.0 appVersion: 4.9.8 description: Web publishing platform for building blogs and websites. icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png diff --git a/upstreamed/wordpress/README.md b/upstreamed/wordpress/README.md index d1cadda8dc..d9d05c3f81 100644 --- a/upstreamed/wordpress/README.md +++ b/upstreamed/wordpress/README.md @@ -103,6 +103,15 @@ The following table lists the configurable parameters of the WordPress chart and | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | List of node taints to tolerate | `[]` | | `affinity` | Map of node/pod affinities | `{}` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/wordpress](http://github.com/bitnami/bitnami-docker-wordpress). For more information please refer to the [bitnami/wordpress](http://github.com/bitnami/bitnami-docker-wordpress) image documentation. diff --git a/upstreamed/wordpress/templates/_helpers.tpl b/upstreamed/wordpress/templates/_helpers.tpl index c7b068fbdd..82efe816c5 100644 --- a/upstreamed/wordpress/templates/_helpers.tpl +++ b/upstreamed/wordpress/templates/_helpers.tpl @@ -45,3 +45,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/wordpress/templates/deployment.yaml b/upstreamed/wordpress/templates/deployment.yaml index 1dbfaf3192..f545250f90 100644 --- a/upstreamed/wordpress/templates/deployment.yaml +++ b/upstreamed/wordpress/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,8 +35,12 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - - name: {{ template "fullname" . }} + - name: wordpress image: {{ template "wordpress.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: @@ -140,6 +153,29 @@ spec: subPath: php resources: {{ toYaml .Values.resources | indent 10 }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: wordpress-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/wordpress/values-production.yaml b/upstreamed/wordpress/values-production.yaml index 352c587e1f..c53442aade 100644 --- a/upstreamed/wordpress/values-production.yaml +++ b/upstreamed/wordpress/values-production.yaml @@ -262,3 +262,27 @@ tolerations: [] ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## affinity: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: true + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/wordpress/values.yaml b/upstreamed/wordpress/values.yaml index 0cd93d1abf..fdd9070cb2 100644 --- a/upstreamed/wordpress/values.yaml +++ b/upstreamed/wordpress/values.yaml @@ -260,3 +260,31 @@ tolerations: [] ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## affinity: {} + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} From 217620009ab4074ffbfcbf5622ced7092d7f9136 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Wed, 31 Oct 2018 11:45:58 +0100 Subject: [PATCH 072/153] Update MEAN with OSBA Mongodb instructions --- bitnami/mean/Chart.yaml | 2 +- bitnami/mean/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/mean/Chart.yaml b/bitnami/mean/Chart.yaml index 3f0a4b4206..7a99298086 100644 --- a/bitnami/mean/Chart.yaml +++ b/bitnami/mean/Chart.yaml @@ -1,5 +1,5 @@ name: mean -version: 4.2.2 +version: 4.2.3 appVersion: 4.6.2 description: MEAN is a free and open-source JavaScript software stack for building dynamic web sites and web applications. The MEAN stack is MongoDB, Express.js, Angular, and Node.js. Because all components of the MEAN stack support programs written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. keywords: diff --git a/bitnami/mean/README.md b/bitnami/mean/README.md index b46ed2852e..1783ab2f8c 100644 --- a/bitnami/mean/README.md +++ b/bitnami/mean/README.md @@ -218,7 +218,7 @@ ingress: 4. Deploy the helm chart: ``` - $ helm install --name node-app --set mongodb.install=false,externaldb.broker.serviceInstanceName=azure-mongodb-instance bitnami/mean + $ helm install --name node-app --set mongodb.install=false,externaldb.broker.serviceInstanceName=azure-mongodb-instance,externaldb.ssl=true bitnami/mean ``` Once the instance has been provisioned in Azure, a new secret should have been automatically created with the connection parameters for your application. From 4cee1b5cedea02e8a4affa934557d6f5a0e7035f Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Wed, 31 Oct 2018 11:46:44 +0100 Subject: [PATCH 073/153] Update Node with OSBA Mongodb instructions --- bitnami/node/Chart.yaml | 2 +- bitnami/node/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index aec310c93a..38a83068a9 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,5 +1,5 @@ name: node -version: 6.2.2 +version: 6.2.3 appVersion: 8.12.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: diff --git a/bitnami/node/README.md b/bitnami/node/README.md index e243eb871a..cca472bae6 100644 --- a/bitnami/node/README.md +++ b/bitnami/node/README.md @@ -211,7 +211,7 @@ ingress: 4. Deploy the helm chart: ``` - $ helm install --name node-app --set mongodb.install=false,externaldb.broker.serviceInstanceName=azure-mongodb-instance bitnami/node + $ helm install --name node-app --set mongodb.install=false,externaldb.broker.serviceInstanceName=azure-mongodb-instance,externaldb.ssl=true bitnami/node ``` Once the instance has been provisioned in Azure, a new secret should have been automatically created with the connection parameters for your application. From ec4d9a2de8a24e4601e40caec0c59ed134832bfa Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Wed, 31 Oct 2018 13:17:20 +0100 Subject: [PATCH 074/153] [bitnami/tensorflow-inception] Add prometheus exporter --- bitnami/tensorflow-inception/Chart.yaml | 2 +- bitnami/tensorflow-inception/README.md | 9 +++++ .../templates/_helpers.tpl | 10 ++++++ .../templates/deployment.yaml | 34 ++++++++++++++++++- bitnami/tensorflow-inception/values.yaml | 29 ++++++++++++++++ 5 files changed, 82 insertions(+), 2 deletions(-) diff --git a/bitnami/tensorflow-inception/Chart.yaml b/bitnami/tensorflow-inception/Chart.yaml index e24a0fb066..171d5e0b4a 100755 --- a/bitnami/tensorflow-inception/Chart.yaml +++ b/bitnami/tensorflow-inception/Chart.yaml @@ -1,5 +1,5 @@ name: tensorflow-inception -version: 3.0.1 +version: 3.1.0 appVersion: 1.11.1 description: Open-source software library for serving machine learning models keywords: diff --git a/bitnami/tensorflow-inception/README.md b/bitnami/tensorflow-inception/README.md index 3c539a6563..09e1946062 100755 --- a/bitnami/tensorflow-inception/README.md +++ b/bitnami/tensorflow-inception/README.md @@ -76,6 +76,15 @@ The following tables lists the configurable parameters of the TensorFlow Incepti | `client.image.pullPolicy` | TensorFlow Inception image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | | `client.image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | | `imagePullPolicy` | Image pull policy | `Always` if `image` tag is `latest`, else `IfNotPresent` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car Tensorflow prometheus exporter | `false` | +| `metrics.image.registry` | Tensorflow exporter image registry | `docker.io` | +| `metrics.image.repository` | Tensorflow exporter image name | `ynqa/tensorflow-serving-exporter` | +| `metrics.image.tag` | Tensorflow exporter image tag | `latest` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9118"}` | +| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/bitnami/tensorflow-inception/templates/_helpers.tpl b/bitnami/tensorflow-inception/templates/_helpers.tpl index 7985f440ca..eea84fd0bb 100644 --- a/bitnami/tensorflow-inception/templates/_helpers.tpl +++ b/bitnami/tensorflow-inception/templates/_helpers.tpl @@ -60,3 +60,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/tensorflow-inception/templates/deployment.yaml b/bitnami/tensorflow-inception/templates/deployment.yaml index 289d133d6c..5c827c9fd8 100644 --- a/bitnami/tensorflow-inception/templates/deployment.yaml +++ b/bitnami/tensorflow-inception/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.server.image.pullSecrets }} imagePullSecrets: @@ -48,7 +57,7 @@ spec: - name: seed mountPath: /seed containers: - - name: {{ template "fullname" . }} + - name: serving image: "{{ template "tensorflow-inception.server.image" . }}" imagePullPolicy: {{ .Values.server.image.pullPolicy | quote }} readinessProbe: @@ -64,6 +73,29 @@ spec: volumeMounts: - name: seed mountPath: "/bitnami/model-data" +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: ['python', 'tf_serving_exporter.py', '--tf_port', '{{ .Values.server.port }}', '--port', '9118', '--model_name', 'inception-v3'] + ports: + - name: metrics + containerPort: 9118 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: seed emptyDir: {} diff --git a/bitnami/tensorflow-inception/values.yaml b/bitnami/tensorflow-inception/values.yaml index bda2832427..ae374eb930 100755 --- a/bitnami/tensorflow-inception/values.yaml +++ b/bitnami/tensorflow-inception/values.yaml @@ -57,3 +57,32 @@ imagePullPolicy: IfNotPresent ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## serviceType: LoadBalancer + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: ynqa/tensorflow-serving-exporter + tag: latest + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9118" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} From 38bf559a193f8c4b144bf3a859137ebf329bdc5d Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Wed, 31 Oct 2018 21:13:58 +0000 Subject: [PATCH 075/153] kubeapps: bump chart version to 0.9.3 --- bitnami/kubeapps/Chart.yaml | 2 +- bitnami/kubeapps/README.md | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index d2f6622713..bbf6606044 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.2 +version: 0.9.3 appVersion: v1.0.0-beta.3 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/README.md b/bitnami/kubeapps/README.md index 2656378e98..9bcd1283a5 100644 --- a/bitnami/kubeapps/README.md +++ b/bitnami/kubeapps/README.md @@ -202,7 +202,15 @@ If during installation you run into an error similar to: Error: release kubeapps failed: clusterroles.rbac.authorization.k8s.io "kubeapps-apprepository-controller" is forbidden: attempt to grant extra privileges: [{[get] [batch] [cronjobs] [] []... ``` -It is possible that your cluster does not have Role Based Access Control (RBAC) fully configured. In which case you should perform the chart installation by setting `rbac.create=false`: +This usually is an indication that Tiller was not installed with enough permissions to create the resources by Kubeapps. In order to install Kubeapps, you will need to install Tiller with elevated permissions (e.g. as a cluster-admin). For example: + +``` +kubectl -n kube-system create sa tiller +kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller +helm init --service-account tiller +``` + +It is also possible, though less common, that your cluster does not have Role Based Access Control (RBAC) enabled. If this is the case you should perform the chart installation by setting `rbac.create=false`: ```console $ helm install --name kubeapps --namespace kubeapps bitnami/kubeapps --set rbac.create=false From c564081dd9c41346fafec2e198515b0d767bf8f3 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Thu, 1 Nov 2018 10:37:17 +0000 Subject: [PATCH 076/153] Synchronize upstreamed folder to d73ba50f --- upstreamed/dokuwiki/Chart.yaml | 2 +- upstreamed/dokuwiki/README.md | 10 +++++ upstreamed/dokuwiki/templates/_helpers.tpl | 10 +++++ upstreamed/dokuwiki/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/dokuwiki/values.yaml | 28 ++++++++++++++ upstreamed/drupal/Chart.yaml | 2 +- upstreamed/drupal/README.md | 9 +++++ upstreamed/drupal/templates/_helpers.tpl | 10 +++++ upstreamed/drupal/templates/deployment.yaml | 38 ++++++++++++++++++- upstreamed/drupal/values.yaml | 28 ++++++++++++++ upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/README.md | 8 ++++ upstreamed/mongodb/templates/_helpers.tpl | 11 ++++++ .../templates/deployment-standalone.yaml | 36 +++++++++++++++++- .../templates/statefulset-primary-rs.yaml | 36 +++++++++++++++++- .../templates/statefulset-secondary-rs.yaml | 36 +++++++++++++++++- upstreamed/mongodb/values-production.yaml | 28 ++++++++++++++ upstreamed/mongodb/values.yaml | 27 +++++++++++++ upstreamed/moodle/Chart.yaml | 2 +- upstreamed/moodle/README.md | 9 +++++ upstreamed/moodle/templates/_helpers.tpl | 10 +++++ upstreamed/moodle/templates/deployment.yaml | 38 ++++++++++++++++++- upstreamed/moodle/values.yaml | 28 ++++++++++++++ upstreamed/opencart/Chart.yaml | 2 +- upstreamed/opencart/README.md | 9 +++++ upstreamed/opencart/templates/_helpers.tpl | 10 +++++ upstreamed/opencart/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/opencart/values.yaml | 28 ++++++++++++++ upstreamed/osclass/Chart.yaml | 2 +- upstreamed/osclass/README.md | 9 +++++ upstreamed/osclass/templates/_helpers.tpl | 10 +++++ upstreamed/osclass/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/osclass/values.yaml | 28 ++++++++++++++ upstreamed/owncloud/Chart.yaml | 2 +- upstreamed/owncloud/README.md | 9 +++++ upstreamed/owncloud/templates/_helpers.tpl | 10 +++++ upstreamed/owncloud/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/owncloud/values.yaml | 28 ++++++++++++++ upstreamed/phpbb/Chart.yaml | 2 +- upstreamed/phpbb/README.md | 9 +++++ upstreamed/phpbb/templates/_helpers.tpl | 10 +++++ upstreamed/phpbb/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/phpbb/values.yaml | 28 ++++++++++++++ upstreamed/suitecrm/Chart.yaml | 2 +- upstreamed/suitecrm/README.md | 9 +++++ upstreamed/suitecrm/templates/_helpers.tpl | 10 +++++ upstreamed/suitecrm/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/suitecrm/values.yaml | 28 ++++++++++++++ upstreamed/testlink/Chart.yaml | 2 +- upstreamed/testlink/README.md | 9 +++++ upstreamed/testlink/templates/_helpers.tpl | 10 +++++ upstreamed/testlink/templates/deployment.yaml | 36 ++++++++++++++++++ upstreamed/testlink/values.yaml | 28 ++++++++++++++ 53 files changed, 939 insertions(+), 15 deletions(-) diff --git a/upstreamed/dokuwiki/Chart.yaml b/upstreamed/dokuwiki/Chart.yaml index df5e46787f..93ba4b189e 100644 --- a/upstreamed/dokuwiki/Chart.yaml +++ b/upstreamed/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.2.1 +version: 3.3.0 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/upstreamed/dokuwiki/README.md b/upstreamed/dokuwiki/README.md index a1a37d3847..82895da766 100644 --- a/upstreamed/dokuwiki/README.md +++ b/upstreamed/dokuwiki/README.md @@ -95,6 +95,16 @@ The following table lists the configurable parameters of the DokuWiki chart and | `nodeSelector` | Node labels for pod assignment | `{}` | | `affinity` | Affinity settings for pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `[]` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | + The above parameters map to the env variables defined in [bitnami/dokuwiki](http://github.com/bitnami/bitnami-docker-dokuwiki). For more information please refer to the [bitnami/dokuwiki](http://github.com/bitnami/bitnami-docker-dokuwiki) image documentation. diff --git a/upstreamed/dokuwiki/templates/_helpers.tpl b/upstreamed/dokuwiki/templates/_helpers.tpl index 2d30062216..1ad62fbe8a 100644 --- a/upstreamed/dokuwiki/templates/_helpers.tpl +++ b/upstreamed/dokuwiki/templates/_helpers.tpl @@ -44,3 +44,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/dokuwiki/templates/deployment.yaml b/upstreamed/dokuwiki/templates/deployment.yaml index 08e8f3d66b..20fbe7f340 100644 --- a/upstreamed/dokuwiki/templates/deployment.yaml +++ b/upstreamed/dokuwiki/templates/deployment.yaml @@ -18,6 +18,15 @@ spec: app: {{ template "dokuwiki.name" . }} chart: {{ template "dokuwiki.chart" . }} release: {{ .Release.Name | quote }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.affinity }} affinity: @@ -37,6 +46,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "dokuwiki.fullname" . }} image: {{ template "dokuwiki.image" . }} @@ -89,6 +102,29 @@ spec: mountPath: /bitnami/dokuwiki - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: dokuwiki-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/dokuwiki/values.yaml b/upstreamed/dokuwiki/values.yaml index 6e4bea7151..6bca1e2169 100644 --- a/upstreamed/dokuwiki/values.yaml +++ b/upstreamed/dokuwiki/values.yaml @@ -176,3 +176,31 @@ readinessProbe: nodeSelector: {} tolerations: [] affinity: {} + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index 4d653fc003..5e1ac3cb83 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,5 +1,5 @@ name: drupal -version: 2.2.2 +version: 2.3.0 appVersion: 8.6.2 description: One of the most versatile open source content management systems. keywords: diff --git a/upstreamed/drupal/README.md b/upstreamed/drupal/README.md index 55fd81c2be..4dddc091ed 100644 --- a/upstreamed/drupal/README.md +++ b/upstreamed/drupal/README.md @@ -93,6 +93,15 @@ The following table lists the configurable parameters of the Drupal chart and th | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | | `volumeMounts.drupal.mountPath` | Drupal data volume mount path | `/bitnami/drupal` | | `volumeMounts.apache.mountPath` | Apache data volume mount path | `/bitnami/apache` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/drupal](http://github.com/bitnami/bitnami-docker-drupal). For more information please refer to the [bitnami/drupal](http://github.com/bitnami/bitnami-docker-drupal) image documentation. diff --git a/upstreamed/drupal/templates/_helpers.tpl b/upstreamed/drupal/templates/_helpers.tpl index 85702b6056..52d4f95770 100644 --- a/upstreamed/drupal/templates/_helpers.tpl +++ b/upstreamed/drupal/templates/_helpers.tpl @@ -52,3 +52,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/drupal/templates/deployment.yaml b/upstreamed/drupal/templates/deployment.yaml index 14dae01204..05121a4698 100644 --- a/upstreamed/drupal/templates/deployment.yaml +++ b/upstreamed/drupal/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "drupal.fullname" . }} chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,8 +35,12 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - - name: {{ template "drupal.fullname" . }} + - name: drupal image: {{ template "drupal.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: @@ -104,6 +117,29 @@ spec: - name: apache-data mountPath: {{ .Values.volumeMounts.apache.mountPath }} {{- end }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: drupal-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index 54d2900610..62600a94f6 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -230,3 +230,31 @@ readinessProbe: path: /user/login port: http initialDelaySeconds: 30 + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 173e125eb3..36fdeaa6bd 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.7.0 +version: 4.8.0 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/README.md b/upstreamed/mongodb/README.md index 32ea5b7196..bb965b28aa 100644 --- a/upstreamed/mongodb/README.md +++ b/upstreamed/mongodb/README.md @@ -101,6 +101,14 @@ The following table lists the configurable parameters of the MongoDB chart and t | `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | | `configmap` | MongoDB configuration file to be used | `nil` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | MongoDB exporter image registry | `docker.io` | +| `metrics.image.repository` | MongoDB exporter image name | `forekshub/percona-mongodb-exporter` | +| `metrics.image.tag` | MongoDB exporter image tag | `latest` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | {} | +| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/upstreamed/mongodb/templates/_helpers.tpl b/upstreamed/mongodb/templates/_helpers.tpl index 855dc29825..00057a1cc7 100644 --- a/upstreamed/mongodb/templates/_helpers.tpl +++ b/upstreamed/mongodb/templates/_helpers.tpl @@ -75,3 +75,14 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} + diff --git a/upstreamed/mongodb/templates/deployment-standalone.yaml b/upstreamed/mongodb/templates/deployment-standalone.yaml index a4be1421df..1af1a863e7 100644 --- a/upstreamed/mongodb/templates/deployment-standalone.yaml +++ b/upstreamed/mongodb/templates/deployment-standalone.yaml @@ -22,9 +22,14 @@ spec: {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} - {{- if .Values.podAnnotations }} + {{- if or .Values.podAnnotations .Values.metrics.enabled }} annotations: +{{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} +{{- end }} +{{- if .Values.metrics.enabled }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} +{{- end }} {{- end }} spec: {{- if .Values.securityContext.enabled }} @@ -130,6 +135,35 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 10 }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + env: + - name: MONGODB_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} + key: mongodb-root-password + command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] + ports: + - name: metrics + containerPort: 9216 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: {{- if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js]") }} - name: custom-init-scripts diff --git a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml index 71ea2ee46f..9eb948e907 100644 --- a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml @@ -27,9 +27,14 @@ spec: {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} - {{- if .Values.podAnnotations }} + {{- if or .Values.podAnnotations .Values.metrics.enabled }} annotations: +{{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} +{{- end }} +{{- if .Values.metrics.enabled }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} +{{- end }} {{- end }} spec: {{- if .Values.securityContext.enabled }} @@ -138,6 +143,35 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + env: + - name: MONGODB_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} + key: mongodb-root-password + command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] + ports: + - name: metrics + containerPort: 9216 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: {{- if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|js]") }} - name: custom-init-scripts diff --git a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml index bd2c636ca8..60df963050 100644 --- a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml @@ -28,9 +28,14 @@ spec: {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} - {{- if .Values.podAnnotations }} + {{- if or .Values.podAnnotations .Values.metrics.enabled }} annotations: +{{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} +{{- end }} +{{- if .Values.metrics.enabled }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} +{{- end }} {{- end }} spec: {{- if .Values.securityContext.enabled }} @@ -126,6 +131,35 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + env: + - name: MONGODB_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} + key: mongodb-root-password + command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] + ports: + - name: metrics + containerPort: 9216 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: {{- if .Values.configmap }} - name: config diff --git a/upstreamed/mongodb/values-production.yaml b/upstreamed/mongodb/values-production.yaml index 73776e92f4..57c64cd93c 100644 --- a/upstreamed/mongodb/values-production.yaml +++ b/upstreamed/mongodb/values-production.yaml @@ -215,3 +215,31 @@ configmap: # security: # authorization: enabled # keyFile: /opt/bitnami/mongodb/conf/keyfile + +## Prometheus Exporter / Metrics +## +metrics: + enabled: true + + image: + registry: docker.io + repository: forekshub/percona-mongodb-exporter + tag: latest + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} + + ## Metrics exporter pod Annotation + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9216" + diff --git a/upstreamed/mongodb/values.yaml b/upstreamed/mongodb/values.yaml index b33b1bd8cf..37fc2d583b 100644 --- a/upstreamed/mongodb/values.yaml +++ b/upstreamed/mongodb/values.yaml @@ -215,3 +215,30 @@ configmap: # security: # authorization: enabled # #keyFile: /opt/bitnami/mongodb/conf/keyfile + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + + image: + registry: docker.io + repository: forekshub/percona-mongodb-exporter + tag: latest + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} + + ## Metrics exporter pod Annotation + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9216" diff --git a/upstreamed/moodle/Chart.yaml b/upstreamed/moodle/Chart.yaml index 45704a5d92..b8b6c842c5 100644 --- a/upstreamed/moodle/Chart.yaml +++ b/upstreamed/moodle/Chart.yaml @@ -1,5 +1,5 @@ name: moodle -version: 3.2.1 +version: 3.3.0 appVersion: 3.5.2 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised diff --git a/upstreamed/moodle/README.md b/upstreamed/moodle/README.md index aa3908f565..7b765c3856 100644 --- a/upstreamed/moodle/README.md +++ b/upstreamed/moodle/README.md @@ -109,6 +109,15 @@ The following table lists the configurable parameters of the Moodle chart and th | `readinessProbe.timeoutSeconds` | When the probe times out | 5 | | `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | 1 | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/moodle](http://github.com/bitnami/bitnami-docker-moodle). For more information please refer to the [bitnami/moodle](http://github.com/bitnami/bitnami-docker-moodle) image documentation. diff --git a/upstreamed/moodle/templates/_helpers.tpl b/upstreamed/moodle/templates/_helpers.tpl index 787d96c175..79d9811d97 100644 --- a/upstreamed/moodle/templates/_helpers.tpl +++ b/upstreamed/moodle/templates/_helpers.tpl @@ -60,3 +60,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/moodle/templates/deployment.yaml b/upstreamed/moodle/templates/deployment.yaml index 0da16a1bab..110607803e 100644 --- a/upstreamed/moodle/templates/deployment.yaml +++ b/upstreamed/moodle/templates/deployment.yaml @@ -18,6 +18,15 @@ spec: app: {{ template "moodle.fullname" . }} chart: {{ template "moodle.chart" . }} release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.affinity }} affinity: @@ -29,8 +38,12 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - - name: {{ template "moodle.fullname" . }} + - name: moodle image: {{ template "moodle.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: @@ -119,6 +132,29 @@ spec: volumeMounts: - name: moodle-data mountPath: /bitnami +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: moodle-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/moodle/values.yaml b/upstreamed/moodle/values.yaml index 5897e3bc95..c2f358194e 100644 --- a/upstreamed/moodle/values.yaml +++ b/upstreamed/moodle/values.yaml @@ -252,3 +252,31 @@ readinessProbe: timeoutSeconds: 3 failureThreshold: 6 successThreshold: 1 + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/opencart/Chart.yaml b/upstreamed/opencart/Chart.yaml index ec1d5dc402..9cfde4545d 100644 --- a/upstreamed/opencart/Chart.yaml +++ b/upstreamed/opencart/Chart.yaml @@ -1,5 +1,5 @@ name: opencart -version: 3.1.1 +version: 3.2.0 appVersion: 3.0.2-0 description: A free and open source e-commerce platform for online merchants. It provides a professional and reliable foundation for a successful online store. diff --git a/upstreamed/opencart/README.md b/upstreamed/opencart/README.md index 95eb290c54..d867bc2bdc 100644 --- a/upstreamed/opencart/README.md +++ b/upstreamed/opencart/README.md @@ -85,6 +85,15 @@ The following table lists the configurable parameters of the OpenCart chart and | `persistence.opencart.accessMode` | PVC Access Mode for OpenCart volume | `ReadWriteOnce` | | `persistence.opencart.size` | PVC Storage Request for OpenCart volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/opencart](http://github.com/bitnami/bitnami-docker-opencart). For more information please refer to the [bitnami/opencart](http://github.com/bitnami/bitnami-docker-opencart) image documentation. diff --git a/upstreamed/opencart/templates/_helpers.tpl b/upstreamed/opencart/templates/_helpers.tpl index 9f08a8a6c4..e1df59dd98 100644 --- a/upstreamed/opencart/templates/_helpers.tpl +++ b/upstreamed/opencart/templates/_helpers.tpl @@ -66,3 +66,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/opencart/templates/deployment.yaml b/upstreamed/opencart/templates/deployment.yaml index 9fcccc3485..53349f362d 100644 --- a/upstreamed/opencart/templates/deployment.yaml +++ b/upstreamed/opencart/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "opencart.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "opencart.fullname" . }} image: {{ template "opencart.image" . }} @@ -118,6 +131,29 @@ spec: mountPath: /bitnami/opencart - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: opencart-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/opencart/values.yaml b/upstreamed/opencart/values.yaml index 062c45bfa4..12a00ef77e 100644 --- a/upstreamed/opencart/values.yaml +++ b/upstreamed/opencart/values.yaml @@ -166,3 +166,31 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/osclass/Chart.yaml b/upstreamed/osclass/Chart.yaml index d9927ee186..421de543c1 100644 --- a/upstreamed/osclass/Chart.yaml +++ b/upstreamed/osclass/Chart.yaml @@ -1,5 +1,5 @@ name: osclass -version: 3.1.1 +version: 3.2.0 appVersion: 3.7.4 description: Osclass is a php script that allows you to quickly create and manage your own free classifieds site. diff --git a/upstreamed/osclass/README.md b/upstreamed/osclass/README.md index 77dc8d4c43..541e4707bb 100644 --- a/upstreamed/osclass/README.md +++ b/upstreamed/osclass/README.md @@ -92,6 +92,15 @@ The following table lists the configurable parameters of the Osclass chart and t | `mariadb.persistence.storageClass` | PVC Storage Class for MariaDB volume | `generic` | | `mariadb.persistence.accessMode` | PVC Access Mode for MariaDB volume | `ReadWriteOnce` | | `mariadb.persistence.size` | PVC Storage Request for MariaDB volume | `8Gi` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/osclass](http://github.com/bitnami/bitnami-docker-osclass). For more information please refer to the [bitnami/osclass](http://github.com/bitnami/bitnami-docker-osclass) image documentation. diff --git a/upstreamed/osclass/templates/_helpers.tpl b/upstreamed/osclass/templates/_helpers.tpl index 8311e8ffb0..989d7b5f7a 100644 --- a/upstreamed/osclass/templates/_helpers.tpl +++ b/upstreamed/osclass/templates/_helpers.tpl @@ -66,3 +66,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/osclass/templates/deployment.yaml b/upstreamed/osclass/templates/deployment.yaml index e1755e3051..39fae10123 100644 --- a/upstreamed/osclass/templates/deployment.yaml +++ b/upstreamed/osclass/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "osclass.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "osclass.fullname" . }} image: {{ template "osclass.image" . }} @@ -124,6 +137,29 @@ spec: mountPath: /bitnami/osclass - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: osclass-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/osclass/values.yaml b/upstreamed/osclass/values.yaml index a9250fa5cf..b79fcd9089 100644 --- a/upstreamed/osclass/values.yaml +++ b/upstreamed/osclass/values.yaml @@ -180,3 +180,31 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/owncloud/Chart.yaml b/upstreamed/owncloud/Chart.yaml index 78e3fa26c7..2bf8539221 100644 --- a/upstreamed/owncloud/Chart.yaml +++ b/upstreamed/owncloud/Chart.yaml @@ -1,5 +1,5 @@ name: owncloud -version: 3.2.2 +version: 3.3.0 appVersion: 10.0.10 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/upstreamed/owncloud/README.md b/upstreamed/owncloud/README.md index 27a45fc47e..3e4ad34ed8 100644 --- a/upstreamed/owncloud/README.md +++ b/upstreamed/owncloud/README.md @@ -94,6 +94,15 @@ The following table lists the configurable parameters of the ownCloud chart and | `persistence.owncloud.accessMode` | PVC Access Mode for ownCloud volume | `ReadWriteOnce` | | `persistence.owncloud.size` | PVC Storage Request for ownCloud volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/owncloud](http://github.com/bitnami/bitnami-docker-owncloud). For more information please refer to the [bitnami/owncloud](http://github.com/bitnami/bitnami-docker-owncloud) image documentation. diff --git a/upstreamed/owncloud/templates/_helpers.tpl b/upstreamed/owncloud/templates/_helpers.tpl index 5284115deb..7a4b7bbb20 100644 --- a/upstreamed/owncloud/templates/_helpers.tpl +++ b/upstreamed/owncloud/templates/_helpers.tpl @@ -73,3 +73,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/owncloud/templates/deployment.yaml b/upstreamed/owncloud/templates/deployment.yaml index 807ac730cc..467912bbbf 100644 --- a/upstreamed/owncloud/templates/deployment.yaml +++ b/upstreamed/owncloud/templates/deployment.yaml @@ -20,6 +20,15 @@ spec: app: {{ template "owncloud.fullname" . }} chart: {{ template "owncloud.chart" . }} release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -27,6 +36,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "owncloud.fullname" . }} image: {{ template "owncloud.image" . }} @@ -104,6 +117,29 @@ spec: mountPath: /bitnami/owncloud - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: owncloud-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/owncloud/values.yaml b/upstreamed/owncloud/values.yaml index cce2d9c4e3..4099a30e46 100644 --- a/upstreamed/owncloud/values.yaml +++ b/upstreamed/owncloud/values.yaml @@ -219,3 +219,31 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/phpbb/Chart.yaml b/upstreamed/phpbb/Chart.yaml index fd3f0b799d..d680b9b65f 100644 --- a/upstreamed/phpbb/Chart.yaml +++ b/upstreamed/phpbb/Chart.yaml @@ -1,5 +1,5 @@ name: phpbb -version: 3.1.1 +version: 3.2.0 appVersion: 3.2.3 description: Community forum that supports the notion of users and groups, file attachments, full-text search, notifications and more. diff --git a/upstreamed/phpbb/README.md b/upstreamed/phpbb/README.md index a8e22f46d7..b1d83a4a1b 100644 --- a/upstreamed/phpbb/README.md +++ b/upstreamed/phpbb/README.md @@ -81,6 +81,15 @@ The following table lists the configurable parameters of the phpBB chart and the | `persistence.phpbb.accessMode` | PVC Access Mode for phpBB volume | `ReadWriteOnce` | | `persistence.phpbb.size` | PVC Storage Request for phpBB volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/phpbb](http://github.com/bitnami/bitnami-docker-phpbb). For more information please refer to the [bitnami/phpbb](http://github.com/bitnami/bitnami-docker-phpbb) image documentation. diff --git a/upstreamed/phpbb/templates/_helpers.tpl b/upstreamed/phpbb/templates/_helpers.tpl index aa192d1a09..0cd37d5d45 100644 --- a/upstreamed/phpbb/templates/_helpers.tpl +++ b/upstreamed/phpbb/templates/_helpers.tpl @@ -45,3 +45,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/phpbb/templates/deployment.yaml b/upstreamed/phpbb/templates/deployment.yaml index 8bf347b049..a1540c01b2 100644 --- a/upstreamed/phpbb/templates/deployment.yaml +++ b/upstreamed/phpbb/templates/deployment.yaml @@ -20,6 +20,15 @@ spec: app: {{ template "phpbb.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -27,6 +36,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "phpbb.fullname" . }} image: {{ template "phpbb.image" . }} @@ -112,6 +125,29 @@ spec: mountPath: /bitnami/phpbb - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: phpbb-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/phpbb/values.yaml b/upstreamed/phpbb/values.yaml index 6c5a65f8a9..e1c2b75dae 100644 --- a/upstreamed/phpbb/values.yaml +++ b/upstreamed/phpbb/values.yaml @@ -155,3 +155,31 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/suitecrm/Chart.yaml b/upstreamed/suitecrm/Chart.yaml index b40de557cc..955e6c3fcd 100644 --- a/upstreamed/suitecrm/Chart.yaml +++ b/upstreamed/suitecrm/Chart.yaml @@ -1,5 +1,5 @@ name: suitecrm -version: 4.0.2 +version: 4.1.0 appVersion: 7.10.10 description: SuiteCRM is a completely open source enterprise-grade Customer Relationship Management (CRM) application. SuiteCRM is a software fork of the popular customer relationship management (CRM) system SugarCRM. keywords: diff --git a/upstreamed/suitecrm/README.md b/upstreamed/suitecrm/README.md index cf587c311a..b32bd5ddf8 100644 --- a/upstreamed/suitecrm/README.md +++ b/upstreamed/suitecrm/README.md @@ -86,6 +86,15 @@ The following table lists the configurable parameters of the SuiteCRM chart and | `persistence.accessMode` | PVC Access Mode for SuiteCRM volume | `ReadWriteOnce` | | `persistence.size` | PVC Storage Request for SuiteCRM volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/suitecrm](http://github.com/bitnami/bitnami-docker-suitecrm). For more information please refer to the [bitnami/suitecrm](http://github.com/bitnami/bitnami-docker-suitecrm) image documentation. diff --git a/upstreamed/suitecrm/templates/_helpers.tpl b/upstreamed/suitecrm/templates/_helpers.tpl index 7bf975a9de..b3b4e56c4f 100644 --- a/upstreamed/suitecrm/templates/_helpers.tpl +++ b/upstreamed/suitecrm/templates/_helpers.tpl @@ -66,3 +66,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/suitecrm/templates/deployment.yaml b/upstreamed/suitecrm/templates/deployment.yaml index 05717254f2..0dd991547e 100644 --- a/upstreamed/suitecrm/templates/deployment.yaml +++ b/upstreamed/suitecrm/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "suitecrm.name" . }} release: "{{ .Release.Name }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -26,6 +35,10 @@ spec: - name: {{ . }} {{- end}} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "suitecrm.fullname" . }} image: {{ template "suitecrm.image" . }} @@ -120,6 +133,29 @@ spec: - name: suitecrm-data mountPath: /bitnami/apache subPath: apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: +{{ toYaml .Values.metrics.resources | indent 12 }} +{{- end }} volumes: - name: suitecrm-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/suitecrm/values.yaml b/upstreamed/suitecrm/values.yaml index ca20d6ee18..f21a2b8ca1 100644 --- a/upstreamed/suitecrm/values.yaml +++ b/upstreamed/suitecrm/values.yaml @@ -175,3 +175,31 @@ resources: {} # requests: # memory: 512Mi # cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} diff --git a/upstreamed/testlink/Chart.yaml b/upstreamed/testlink/Chart.yaml index 4b96ecf064..f5d553450d 100644 --- a/upstreamed/testlink/Chart.yaml +++ b/upstreamed/testlink/Chart.yaml @@ -1,5 +1,5 @@ name: testlink -version: 3.1.2 +version: 3.2.0 appVersion: 1.9.18 description: Web-based test management system that facilitates software quality assurance. icon: https://bitnami.com/assets/stacks/testlink/img/testlink-stack-220x234.png diff --git a/upstreamed/testlink/README.md b/upstreamed/testlink/README.md index 0c0491fd8f..96a1533371 100644 --- a/upstreamed/testlink/README.md +++ b/upstreamed/testlink/README.md @@ -84,6 +84,15 @@ The following table lists the configurable parameters of the TestLink chart and | `persistence.testlink.accessMode` | PVC Access Mode for TestLink volume | `ReadWriteOnce` | | `persistence.testlink.size` | PVC Storage Request for TestLink volume | `8Gi` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `podAnnotations` | Pod annotations | `{}` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Apache exporter image registry | `docker.io` | +| `metrics.image.repository` | Apache exporter image name | `lusotycoon/apache-exporter` | +| `metrics.image.tag` | Apache exporter image tag | `v0.5.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | `{prometheus.io/scrape: "true", prometheus.io/port: "9117"}` | +| `metrics.resources` | Exporter resource requests/limit | {} | The above parameters map to the env variables defined in [bitnami/testlink](http://github.com/bitnami/bitnami-docker-testlink). For more information please refer to the [bitnami/testlink](http://github.com/bitnami/bitnami-docker-testlink) image documentation. diff --git a/upstreamed/testlink/templates/_helpers.tpl b/upstreamed/testlink/templates/_helpers.tpl index a452535927..66ae49b004 100644 --- a/upstreamed/testlink/templates/_helpers.tpl +++ b/upstreamed/testlink/templates/_helpers.tpl @@ -45,3 +45,13 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/testlink/templates/deployment.yaml b/upstreamed/testlink/templates/deployment.yaml index f99c04406f..234cb3dccd 100644 --- a/upstreamed/testlink/templates/deployment.yaml +++ b/upstreamed/testlink/templates/deployment.yaml @@ -19,6 +19,15 @@ spec: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -30,6 +39,10 @@ spec: nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "status.localhost" containers: - name: {{ template "fullname" . }} image: {{ template "testlink.image" . }} @@ -114,6 +127,29 @@ spec: mountPath: /bitnami/testlink - name: apache-data mountPath: /bitnami/apache +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/bin/apache_exporter', '-scrape_uri', 'http://status.localhost:80/server-status/?auto'] + ports: + - name: metrics + containerPort: 9117 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: testlink-data {{- if .Values.persistence.enabled }} diff --git a/upstreamed/testlink/values.yaml b/upstreamed/testlink/values.yaml index 67bcd4dfbb..3782df9ab6 100644 --- a/upstreamed/testlink/values.yaml +++ b/upstreamed/testlink/values.yaml @@ -170,3 +170,31 @@ resources: requests: memory: 512Mi cpu: 300m + +## Pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: lusotycoon/apache-exporter + tag: v0.5.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter pod Annotation and Labels + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9117" + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} From 1962db72289350a02c1feb1906450c96bf0e2f83 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Fri, 2 Nov 2018 10:37:17 +0000 Subject: [PATCH 077/153] Synchronize upstreamed folder to 53ee86cc --- upstreamed/rabbitmq/Chart.yaml | 2 +- upstreamed/rabbitmq/values-production.yaml | 31 +++++++++++++++------- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/values-production.yaml | 26 +++++++++++++----- upstreamed/redis/values.yaml | 7 +++-- 5 files changed, 47 insertions(+), 21 deletions(-) diff --git a/upstreamed/rabbitmq/Chart.yaml b/upstreamed/rabbitmq/Chart.yaml index 31d2b7e3bf..e885b07de5 100644 --- a/upstreamed/rabbitmq/Chart.yaml +++ b/upstreamed/rabbitmq/Chart.yaml @@ -1,5 +1,5 @@ name: rabbitmq -version: 3.6.2 +version: 3.6.3 appVersion: 3.7.8 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/upstreamed/rabbitmq/values-production.yaml b/upstreamed/rabbitmq/values-production.yaml index 173ffbe428..cbe5c0dd19 100644 --- a/upstreamed/rabbitmq/values-production.yaml +++ b/upstreamed/rabbitmq/values-production.yaml @@ -11,17 +11,17 @@ image: registry: docker.io repository: bitnami/rabbitmq tag: 3.7.8 - ## Specify a imagePullPolicy - ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' - ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images - ## - pullPolicy: IfNotPresent ## set to true if you would like to see extra information on logs ## it turns BASH and NAMI debugging in minideb ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging debug: false + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images + ## + pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ @@ -29,8 +29,7 @@ image: # pullSecrets: # - myRegistrKeySecretName - -## does your cluster have rbac enabled? +## does your cluster have rbac enabled? assume yes by default rbacEnabled: true ## section of specific values for rabbitmq @@ -55,6 +54,16 @@ rabbitmq: ## nodePort: 5672 + ## Amqp port + ## ref: https://github.com/bitnami/bitnami-docker-rabbitmq#environment-variables + ## + amqpPort: 5672 + + ## Dist port + ## ref: https://github.com/bitnami/bitnami-docker-rabbitmq#environment-variables + ## + distPort: 25672 + ## Node name to cluster with. e.g.: `clusternode@hostname` ## ref: https://github.com/bitnami/bitnami-docker-rabbitmq#environment-variables ## @@ -79,7 +88,7 @@ rabbitmq: ## Plugins to enable plugins: |- - [rabbitmq_management,rabbitmq_peer_discovery_k8s]. + [rabbitmq_management, rabbitmq_peer_discovery_k8s]. ## Clustering settings clustering: @@ -114,6 +123,7 @@ securityContext: runAsUser: 1001 persistence: + ## this enables PVC templates that will create one per pod enabled: true ## rabbitmq data Persistent Volume Storage Class @@ -148,6 +158,9 @@ nodeSelector: tolerations: [] affinity: {} +## annotations for rabbitmq pods +podAnnotations: {} + ## Configure the ingress resource that allows you to access the ## Wordpress installation. Set up the URL ## ref: http://kubernetes.io/docs/user-guide/ingress/ @@ -179,7 +192,7 @@ ingress: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: true - #The following settings are to configure the frequency of the lifeness and readiness probes +## The following settings are to configure the frequency of the lifeness and readiness probes livenessProbe: enabled: true initialDelaySeconds: 120 diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 2ec0a75d0a..2454763c95 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.5 +version: 4.2.6 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/values-production.yaml b/upstreamed/redis/values-production.yaml index 2e3cc55657..1677185b52 100644 --- a/upstreamed/redis/values-production.yaml +++ b/upstreamed/redis/values-production.yaml @@ -79,6 +79,13 @@ password: ## Use existing secret (ignores previous password) # existingSecret: +## Persist data to a persistent volume +persistence: {} + ## A manually managed Persistent Volume and Claim + ## Requires persistence.enabled: true + ## If defined, PVC must be created manually before volume will be bound + # existingClaim: + ## ## Redis Master parameters ## @@ -119,6 +126,10 @@ master: # requests: # memory: 256Mi # cpu: 100m + ## Use an alternate scheduler, e.g. "stork". + ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ + ## + # schedulerName: ## Configure extra options for Redis Master liveness and readiness probes ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) @@ -152,6 +163,7 @@ master: service: ## Redis Master Service type type: ClusterIP + port: 6379 ## Specify the nodePort value for the LoadBalancer and NodePort service types. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport @@ -176,14 +188,12 @@ master: ## persistence: enabled: true - ## The path the volume will be mounted at, useful when using different ## Redis images. path: /bitnami/redis/data - - ## The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services. + ## The subdirectory of the volume to mount to, useful in dev environments + ## and one PV for multiple services. subPath: "" - ## redis data Persistent Volume Storage Class ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning @@ -204,6 +214,7 @@ master: ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions # rollingUpdatePartition: + ## ## Redis Slave properties ## Note: serviceType and service are mandatory parameters @@ -226,8 +237,6 @@ slave: annotations: {} loadBalancerIP: - ## Redis slave optional overrides - ## Redis port # port: 6379 ## Redis command arguments @@ -269,6 +278,11 @@ slave: # nodeSelector: {"beta.kubernetes.io/arch": "amd64"} # tolerations: [] + ## Use an alternate scheduler, e.g. "stork". + ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ + ## + # schedulerName: + ## Redis slave pod Annotation and Labels # podLabels: {} # podAnnotations: {} diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index 54a23a3b1a..6ead05540a 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -47,8 +47,8 @@ serviceAccount: ## Specifies whether a ServiceAccount should be created ## create: false - # The name of the ServiceAccount to use. - # If not set and create is true, a name is generated using the fullname template + ## The name of the ServiceAccount to use. + ## If not set and create is true, a name is generated using the fullname template name: rbac: @@ -178,7 +178,6 @@ master: loadBalancerIP: ## Redis Master Pod Security Context - ## securityContext: enabled: true fsGroup: 1001 @@ -224,7 +223,7 @@ master: slave: ## Slave Service properties service: - ## Redis Slave Service type + ## Redis Slave Service type type: ClusterIP ## Specify the nodePort value for the LoadBalancer and NodePort service types. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport From 56e65b370ee9f23efa91ec5371e7e63ed8761fa3 Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Fri, 2 Nov 2018 22:09:33 +0000 Subject: [PATCH 078/153] kubeapps: bump chart version to 0.9.4 --- bitnami/kubeapps/Chart.yaml | 4 ++-- bitnami/kubeapps/values.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index bbf6606044..395bc3966e 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: kubeapps -version: 0.9.3 -appVersion: v1.0.0-beta.3 +version: 0.9.4 +appVersion: v1.0.0-beta.4 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png keywords: diff --git a/bitnami/kubeapps/values.yaml b/bitnami/kubeapps/values.yaml index a1a2b22763..7cba0cde4a 100644 --- a/bitnami/kubeapps/values.yaml +++ b/bitnami/kubeapps/values.yaml @@ -92,12 +92,12 @@ apprepository: image: registry: docker.io repository: kubeapps/apprepository-controller - tag: v1.0.0-beta.3 + tag: v1.0.0-beta.4 # Image used to perform chart repository syncs syncImage: registry: quay.io repository: helmpack/chart-repo - tag: v1.0.0 + tag: v1.0.1 initialRepos: - name: stable url: https://kubernetes-charts.storage.googleapis.com @@ -138,7 +138,7 @@ tillerProxy: image: registry: docker.io repository: kubeapps/tiller-proxy - tag: v1.0.0-beta.3 + tag: v1.0.0-beta.4 service: port: 8080 host: tiller-deploy.kube-system:44134 @@ -165,7 +165,7 @@ chartsvc: image: registry: quay.io repository: helmpack/chartsvc - tag: v1.0.0 + tag: v1.0.1 service: port: 8080 # https://github.com/kubeapps/kubeapps/issues/478#issuecomment-422979262 @@ -200,7 +200,7 @@ dashboard: image: registry: docker.io repository: kubeapps/dashboard - tag: v1.0.0-beta.3 + tag: v1.0.0-beta.4 service: port: 8080 livenessProbe: From 2d55f1207f5b0dab7d9f0feced87f44a441c4310 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Sat, 3 Nov 2018 10:37:18 +0000 Subject: [PATCH 079/153] Synchronize upstreamed folder to f187e17c --- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/README.md | 4 ++-- upstreamed/redis/values-production.yaml | 4 ++-- upstreamed/redis/values.yaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 2454763c95..fcde120e85 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.6 +version: 4.2.7 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/README.md b/upstreamed/redis/README.md index fa6fd4cd86..a14da72697 100644 --- a/upstreamed/redis/README.md +++ b/upstreamed/redis/README.md @@ -105,7 +105,7 @@ The following table lists the configurable parameters of the Redis chart and the | `metrics.extraArgs` | Extra arguments for the binary; possible values [here](https://github.com/oliver006/redis_exporter#flags) | {} | | `metrics.podLabels` | Additional labels for Metrics exporter pod | {} | | `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | {} | -| `metrics.service.type` | Kubernetes Service type (redis metrics) | `LoadBalancer` | +| `metrics.service.type` | Kubernetes Service type (redis metrics) | `ClusterIP` | | `metrics.service.annotations` | Annotations for the services to monitor (redis master and redis slave service) | {} | | `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | | `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | @@ -153,7 +153,7 @@ The following table lists the configurable parameters of the Redis chart and the | `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/minideb` | | `volumePermissions.image.tag` | Init container volume-permissions image tag | `latest` | | `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `IfNotPresent` | -| `slave.serviceType` | Kubernetes Service type (redis slave) | `LoadBalancer` | +| `slave.service.type` | Kubernetes Service type (redis slave) | `ClusterIP` | | `slave.service.nodePort` | Kubernetes Service nodePort (redis slave) | `nil` | | `slave.service.annotations` | annotations for redis slave service | {} | | `slave.service.loadBalancerIP` | LoadBalancerIP if Redis slave service type is `LoadBalancer` | `nil` | diff --git a/upstreamed/redis/values-production.yaml b/upstreamed/redis/values-production.yaml index 1677185b52..d067e4f25d 100644 --- a/upstreamed/redis/values-production.yaml +++ b/upstreamed/redis/values-production.yaml @@ -217,8 +217,8 @@ master: ## ## Redis Slave properties -## Note: serviceType and service are mandatory parameters -## The rest of the parameters, if undefined, will inherit those declared in Redis Master +## Note: service.type is a mandatory parameter +## The rest of the parameters are either optional or, if undefined, will inherit those declared in Redis Master ## slave: ## Slave Service properties diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index 6ead05540a..e0b81c5d27 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -217,8 +217,8 @@ master: ## ## Redis Slave properties -## Note: serviceType and service are mandatory parameters -## The rest of the parameters, if undefined, will inherit those declared in Redis Master +## Note: service.type is a mandatory parameter +## The rest of the parameters are either optional or, if undefined, will inherit those declared in Redis Master ## slave: ## Slave Service properties From 69ea7572cbe6bcbdf8437982faaf5cddeac93bf1 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Sun, 4 Nov 2018 01:42:50 +0000 Subject: [PATCH 080/153] memcached: update to `1.5.12` Signed-off-by: Bitnami Containers --- bitnami/memcached/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/memcached/values.yaml b/bitnami/memcached/values.yaml index 197ad3469b..c6672582c0 100644 --- a/bitnami/memcached/values.yaml +++ b/bitnami/memcached/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/memcached - tag: 1.5.11 + tag: 1.5.12 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 4da97fd1a5e5b114377d9b0ad196f42527f1bf90 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Sun, 4 Nov 2018 01:42:50 +0000 Subject: [PATCH 081/153] memcached: bump chart appVersion to `1.5.12` Signed-off-by: Bitnami Containers --- bitnami/memcached/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/memcached/Chart.yaml b/bitnami/memcached/Chart.yaml index 4f1580f52d..0df14bec53 100644 --- a/bitnami/memcached/Chart.yaml +++ b/bitnami/memcached/Chart.yaml @@ -1,6 +1,6 @@ name: memcached version: 1.2.1 -appVersion: 1.5.11 +appVersion: 1.5.12 description: Chart for Memcached keywords: - memcached From 71e49377f7040adae46ddc4b3742e846987e06d9 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Sun, 4 Nov 2018 01:42:50 +0000 Subject: [PATCH 082/153] memcached: bump chart version to `1.2.2` Signed-off-by: Bitnami Containers --- bitnami/memcached/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/memcached/Chart.yaml b/bitnami/memcached/Chart.yaml index 0df14bec53..a44719854f 100644 --- a/bitnami/memcached/Chart.yaml +++ b/bitnami/memcached/Chart.yaml @@ -1,5 +1,5 @@ name: memcached -version: 1.2.1 +version: 1.2.2 appVersion: 1.5.12 description: Chart for Memcached keywords: From e69a69f03a761cc22fc53e6025fddad16dc798d6 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Mon, 5 Nov 2018 10:37:17 +0000 Subject: [PATCH 083/153] Synchronize upstreamed folder to 77851ef3 --- upstreamed/mariadb/Chart.yaml | 4 ++-- upstreamed/mariadb/values-production.yaml | 2 +- upstreamed/mariadb/values.yaml | 2 +- upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/templates/NOTES.txt | 8 ++++---- upstreamed/phabricator/Chart.yaml | 4 ++-- upstreamed/phabricator/values.yaml | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/upstreamed/mariadb/Chart.yaml b/upstreamed/mariadb/Chart.yaml index 51744a2dd8..c8acad2cd7 100644 --- a/upstreamed/mariadb/Chart.yaml +++ b/upstreamed/mariadb/Chart.yaml @@ -1,6 +1,6 @@ name: mariadb -version: 5.2.2 -appVersion: 10.1.36 +version: 5.2.3 +appVersion: 10.1.37 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: - mariadb diff --git a/upstreamed/mariadb/values-production.yaml b/upstreamed/mariadb/values-production.yaml index 0e564532f0..05901dea20 100644 --- a/upstreamed/mariadb/values-production.yaml +++ b/upstreamed/mariadb/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mariadb - tag: 10.1.36 + tag: 10.1.37 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mariadb/values.yaml b/upstreamed/mariadb/values.yaml index 9469da65e7..85dbde720d 100644 --- a/upstreamed/mariadb/values.yaml +++ b/upstreamed/mariadb/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/mariadb - tag: 10.1.36 + tag: 10.1.37 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 36fdeaa6bd..5b7c872992 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.8.0 +version: 4.8.1 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/templates/NOTES.txt b/upstreamed/mongodb/templates/NOTES.txt index af810019b7..c619a5733f 100644 --- a/upstreamed/mongodb/templates/NOTES.txt +++ b/upstreamed/mongodb/templates/NOTES.txt @@ -40,7 +40,7 @@ To get the password for "{{ .Values.mongodbUsername }}" run: To connect to your database run the following command: - kubectl run --namespace {{ .Release.Namespace }} {{ template "mongodb.fullname" . }}-client --rm --tty -i --image bitnami/mongodb --command -- mongo admin --host {{ template "mongodb.fullname" . }} {{- if .Values.usePassword }} -u root -p $MONGODB_ROOT_PASSWORD{{- end }} + kubectl run --namespace {{ .Release.Namespace }} {{ template "mongodb.fullname" . }}-client --rm --tty -i --image bitnami/mongodb --command -- mongo admin --host {{ template "mongodb.fullname" . }} {{- if .Values.usePassword }} --authenticationDatabase admin -u root -p $MONGODB_ROOT_PASSWORD{{- end }} To connect to your database from outside the cluster execute the following commands: @@ -48,7 +48,7 @@ To connect to your database from outside the cluster execute the following comma export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "mongodb.fullname" . }}) - mongo --host $NODE_IP --port $NODE_PORT {{- if .Values.usePassword }} -p $MONGODB_ROOT_PASSWORD{{- end }} + mongo --host $NODE_IP --port $NODE_PORT {{- if .Values.usePassword }} --authenticationDatabase admin -p $MONGODB_ROOT_PASSWORD{{- end }} {{- else if contains "LoadBalancer" .Values.service.type }} @@ -56,11 +56,11 @@ To connect to your database from outside the cluster execute the following comma Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "mongodb.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "mongodb.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - mongo --host $SERVICE_IP --port {{ .Values.service.nodePort }} {{- if .Values.usePassword }} -p $MONGODB_ROOT_PASSWORD{{- end }} + mongo --host $SERVICE_IP --port {{ .Values.service.nodePort }} {{- if .Values.usePassword }} --authenticationDatabase admin -p $MONGODB_ROOT_PASSWORD{{- end }} {{- else if contains "ClusterIP" .Values.service.type }} kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mongodb.fullname" . }} 27017:27017 & - mongo --host 127.0.0.1 {{- if .Values.usePassword }} -p $MONGODB_ROOT_PASSWORD{{- end }} + mongo --host 127.0.0.1 {{- if .Values.usePassword }} --authenticationDatabase admin -p $MONGODB_ROOT_PASSWORD{{- end }} {{- end }} diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 6a004d823b..8fc48fab11 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,6 +1,6 @@ name: phabricator -version: 3.3.0 -appVersion: 2018.43.0 +version: 3.3.1 +appVersion: 2018.44.0 description: Collection of open source web applications that help software companies build better software. keywords: - phabricator diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index ba999c720c..76540a8a69 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phabricator - tag: 2018.43.0 + tag: 2018.44.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 95353079d43b40876c1cbb4b977d77e83628f7e3 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Hernandez Date: Tue, 6 Nov 2018 10:36:17 +0000 Subject: [PATCH 084/153] [nginx-ingress-controller] Fix registry issue in default backend --- bitnami/nginx-ingress-controller/Chart.yaml | 2 +- bitnami/nginx-ingress-controller/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bitnami/nginx-ingress-controller/Chart.yaml b/bitnami/nginx-ingress-controller/Chart.yaml index b9247a931f..1575cd0c71 100644 --- a/bitnami/nginx-ingress-controller/Chart.yaml +++ b/bitnami/nginx-ingress-controller/Chart.yaml @@ -1,5 +1,5 @@ name: nginx-ingress-controller -version: 2.1.3 +version: 2.1.4 appVersion: 0.20.0 description: Chart for the nginx Ingress controller keywords: diff --git a/bitnami/nginx-ingress-controller/values.yaml b/bitnami/nginx-ingress-controller/values.yaml index d07773d785..b0e7a0305e 100644 --- a/bitnami/nginx-ingress-controller/values.yaml +++ b/bitnami/nginx-ingress-controller/values.yaml @@ -297,6 +297,7 @@ defaultBackend: name: default-backend image: + registry: docker.io repository: bitnami/nginx tag: latest pullPolicy: Always From 581338f08f528f1d63697c173a38c48716933eb8 Mon Sep 17 00:00:00 2001 From: juan131 Date: Tue, 6 Nov 2018 12:56:58 +0100 Subject: [PATCH 085/153] [bitnami/elasticsearch] Warn users when 'sysctlImage.enabled' is set to false --- bitnami/elasticsearch/Chart.yaml | 2 +- bitnami/elasticsearch/README.md | 7 ++++-- bitnami/elasticsearch/templates/NOTES.txt | 23 +++++++++++++++++++ .../templates/coordinating-deploy.yaml | 2 +- .../templates/data-statefulset.yaml | 2 +- .../templates/ingest-deploy.yaml | 2 +- .../templates/master-deploy.yaml | 2 +- 7 files changed, 33 insertions(+), 7 deletions(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index eafe7de68d..f54e429773 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.1.3 +version: 4.1.2 appVersion: 6.4.2 description: A highly scalable open-source full-text search and analytics engine keywords: diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index bfa1c6f92e..b05f078626 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -179,9 +179,12 @@ By default, the chart mounts a [Persistent Volume](http://kubernetes.io/docs/use ## Troubleshooting -Currently, Elasticsearch 5 requires some changes in the kernel of the host machine to work as expected. If those values are not set in the underlying operating system, the ES containers fail to boot with ERROR messages. +Currently, Elasticsearch requires some changes in the kernel of the host machine to work as expected. If those values are not set in the underlying operating system, the ES containers fail to boot with ERROR messages. More information about these requirements can be found in the links below: -You can use the initContainer created to set those parameters +- [File Descriptor requirements](https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html) +- [Virtual memory requirements](https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html) + +You can use a **privileged** initContainer to changes those settings in the Kernel by enabling the `sysctlImage.enabled`: ```console $ helm install --name my-release \ diff --git a/bitnami/elasticsearch/templates/NOTES.txt b/bitnami/elasticsearch/templates/NOTES.txt index b55f5601eb..6514df1120 100644 --- a/bitnami/elasticsearch/templates/NOTES.txt +++ b/bitnami/elasticsearch/templates/NOTES.txt @@ -11,6 +11,29 @@ suggest that you switch to "ClusterIP" or "NodePort". ------------------------------------------------------------------------------- {{- end }} +{{- if not .Values.sysctlImage.enabled }} + +------------------------------------------------------------------------------- + WARNING + + Elasticsearch requires some changes in the kernel of the host machine to + work as expected. If those values are not set in the underlying operating + system, the ES containers fail to boot with ERROR messages. + + To check whether the host machine meets the requirements, run the command + below: + + kubectl logs --namespace {{ .Release.Namespace }} $(kubectl get --namespace {{ .Release.Namespace }} \ + pods -l app={{ template "elasticsearch.name" . }},role=master -o jsonpath='{.items[0].metadata.name}') \ + elasticsearch + + By specifying "sysctlImage.enabled=true" you can use a privileged + initContainer to changes those settings in the Kernel: + + helm upgrade {{ .Release.Name }} bitnami/elasticsearch \ + --set sysctlImage.enabled=true + +{{- end }} ** Please be patient while the chart is being deployed ** diff --git a/bitnami/elasticsearch/templates/coordinating-deploy.yaml b/bitnami/elasticsearch/templates/coordinating-deploy.yaml index 76313b7520..62fc927f97 100644 --- a/bitnami/elasticsearch/templates/coordinating-deploy.yaml +++ b/bitnami/elasticsearch/templates/coordinating-deploy.yaml @@ -66,7 +66,7 @@ spec: privileged: true {{- end }} containers: - - name: {{ template "elasticsearch.coordinating.fullname" . }} + - name: "elasticsearch" {{- if .Values.securityContext.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} diff --git a/bitnami/elasticsearch/templates/data-statefulset.yaml b/bitnami/elasticsearch/templates/data-statefulset.yaml index 3dd84acfa3..3490056db3 100644 --- a/bitnami/elasticsearch/templates/data-statefulset.yaml +++ b/bitnami/elasticsearch/templates/data-statefulset.yaml @@ -62,7 +62,7 @@ spec: privileged: true {{- end }} containers: - - name: {{ template "elasticsearch.data.fullname" . }} + - name: "elasticsearch" image: {{ template "elasticsearch.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} {{- if .Values.securityContext.enabled }} diff --git a/bitnami/elasticsearch/templates/ingest-deploy.yaml b/bitnami/elasticsearch/templates/ingest-deploy.yaml index fb9ddd644f..e4506942ef 100644 --- a/bitnami/elasticsearch/templates/ingest-deploy.yaml +++ b/bitnami/elasticsearch/templates/ingest-deploy.yaml @@ -67,7 +67,7 @@ spec: privileged: true {{- end }} containers: - - name: {{ template "elasticsearch.ingest.fullname" . }} + - name: "elasticsearch" image: {{ template "elasticsearch.image" . }} {{- if .Values.securityContext.enabled }} securityContext: diff --git a/bitnami/elasticsearch/templates/master-deploy.yaml b/bitnami/elasticsearch/templates/master-deploy.yaml index c0f96c6b1a..80800b75ca 100644 --- a/bitnami/elasticsearch/templates/master-deploy.yaml +++ b/bitnami/elasticsearch/templates/master-deploy.yaml @@ -67,7 +67,7 @@ spec: privileged: true {{- end }} containers: - - name: {{ template "elasticsearch.master.fullname" . }} + - name: "elasticsearch" image: {{ template "elasticsearch.image" . }} {{- if .Values.securityContext.enabled }} securityContext: From c3e69d9c5e2eaf7df3593b7d289e476468e9e03e Mon Sep 17 00:00:00 2001 From: juan131 Date: Tue, 6 Nov 2018 13:04:11 +0100 Subject: [PATCH 086/153] Add link to official 'sysctl-cluster' docs --- bitnami/elasticsearch/templates/NOTES.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bitnami/elasticsearch/templates/NOTES.txt b/bitnami/elasticsearch/templates/NOTES.txt index 6514df1120..4908cf4d18 100644 --- a/bitnami/elasticsearch/templates/NOTES.txt +++ b/bitnami/elasticsearch/templates/NOTES.txt @@ -27,8 +27,13 @@ pods -l app={{ template "elasticsearch.name" . }},role=master -o jsonpath='{.items[0].metadata.name}') \ elasticsearch - By specifying "sysctlImage.enabled=true" you can use a privileged - initContainer to changes those settings in the Kernel: + You can adapt the Kernel paramters on you cluster as described in the + official documentation: + + https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster + + As an alternative, you can specify "sysctlImage.enabled=true" to use a + privileged initContainer to change those settings in the Kernel: helm upgrade {{ .Release.Name }} bitnami/elasticsearch \ --set sysctlImage.enabled=true From 8efc38999423eb1cdde906e40645959a2765e509 Mon Sep 17 00:00:00 2001 From: juan131 Date: Tue, 6 Nov 2018 14:43:45 +0100 Subject: [PATCH 087/153] Fix typo --- bitnami/elasticsearch/templates/NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/templates/NOTES.txt b/bitnami/elasticsearch/templates/NOTES.txt index 4908cf4d18..00441ae0bf 100644 --- a/bitnami/elasticsearch/templates/NOTES.txt +++ b/bitnami/elasticsearch/templates/NOTES.txt @@ -27,7 +27,7 @@ pods -l app={{ template "elasticsearch.name" . }},role=master -o jsonpath='{.items[0].metadata.name}') \ elasticsearch - You can adapt the Kernel paramters on you cluster as described in the + You can adapt the Kernel parameters on you cluster as described in the official documentation: https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster From a2a05a5c6989957e2400782ebb1c3eee4d2bbc71 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 6 Nov 2018 16:40:13 +0000 Subject: [PATCH 088/153] elasticsearch: update to `6.4.3` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/values-production.yaml | 2 +- bitnami/elasticsearch/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index d0fa6e3475..97f3557c8b 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.4.2 + tag: 6.4.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index ea6f50aed6..b2e03e732c 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.4.2 + tag: 6.4.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From ce9d14ee2466f964aa4e736c654a09060fad8015 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 6 Nov 2018 16:40:13 +0000 Subject: [PATCH 089/153] elasticsearch: bump chart appVersion to `6.4.3` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index f54e429773..4e2e726bfb 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,6 +1,6 @@ name: elasticsearch version: 4.1.2 -appVersion: 6.4.2 +appVersion: 6.4.3 description: A highly scalable open-source full-text search and analytics engine keywords: - elasticsearch From 44a96ffe389a61e00cb363fdb1a9500cc4291158 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 6 Nov 2018 16:40:13 +0000 Subject: [PATCH 090/153] elasticsearch: bump chart version to `4.1.3` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 4e2e726bfb..3d4c6d42c8 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.1.2 +version: 4.1.3 appVersion: 6.4.3 description: A highly scalable open-source full-text search and analytics engine keywords: From 3a96e5051f8386ed9e152ccfdc9e504e74536ab1 Mon Sep 17 00:00:00 2001 From: juan131 Date: Tue, 6 Nov 2018 16:57:00 +0100 Subject: [PATCH 091/153] [bitnami/elasticsearch] Use 'IfNotPresent' pullPolicy on production values --- bitnami/elasticsearch/README.md | 2 +- bitnami/elasticsearch/values-production.yaml | 8 ++++---- bitnami/elasticsearch/values.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index b05f078626..4ea5bb6af5 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -143,7 +143,7 @@ The following table lists the configurable parameters of the Elasticsearch chart | `metrics.name` | Metrics pod name | `metrics` | | `metrics.image.registry` | Metrics exporter image registry | `docker.io` | | `metrics.image.repository` | Metrics exporter image repository | `bitnami/elasticsearch-exporter` | -| `metrics.image.tag` | Metrics exporter image tag | `latest` | +| `metrics.image.tag` | Metrics exporter image tag | `1.0.2` | | `metrics.image.pullPolicy` | Metrics exporter image pull policy | `Always` | | `metrics.service.type` | Metrics exporter endpoint service type | `ClusterIP` | | `metrics.resources` | Metrics exporter resource requests/limit | `requests: { cpu: "25m" }` | diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 97f3557c8b..7871dc61df 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -15,7 +15,7 @@ image: ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## - pullPolicy: Always + pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ @@ -74,7 +74,7 @@ sysctlImage: ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## - pullPolicy: Always + pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ @@ -227,8 +227,8 @@ metrics: image: registry: docker.io repository: bitnami/elasticsearch-exporter - tag: latest - pullPolicy: Always + tag: 1.0.2 + pullPolicy: IfNotPresent annotations: prometheus.io/scrape: "true" prometheus.io/port: "9108" diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index b2e03e732c..05ca9bd460 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -227,7 +227,7 @@ metrics: image: registry: docker.io repository: bitnami/elasticsearch-exporter - tag: latest + tag: 1.0.2 pullPolicy: Always annotations: prometheus.io/scrape: "true" From 09c45beb8003825a135d0c00521f0c278e6befde Mon Sep 17 00:00:00 2001 From: juan131 Date: Tue, 6 Nov 2018 17:46:59 +0100 Subject: [PATCH 092/153] [bitnami/elasticsearch] Improve services customization --- bitnami/elasticsearch/Chart.yaml | 2 +- bitnami/elasticsearch/README.md | 21 ++++++-- .../templates/coordinating-svc.yaml | 10 ++++ .../elasticsearch/templates/ingest-svc.yaml | 13 ++++- .../elasticsearch/templates/master-svc.yaml | 13 ++++- bitnami/elasticsearch/values-production.yaml | 49 ++++++++++++++++- bitnami/elasticsearch/values.yaml | 52 ++++++++++++++++++- 7 files changed, 151 insertions(+), 9 deletions(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 3d4c6d42c8..72174c2bfa 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.1.3 +version: 4.2.0 appVersion: 6.4.3 description: A highly scalable open-source full-text search and analytics engine keywords: diff --git a/bitnami/elasticsearch/README.md b/bitnami/elasticsearch/README.md index 4ea5bb6af5..841b1d46c6 100644 --- a/bitnami/elasticsearch/README.md +++ b/bitnami/elasticsearch/README.md @@ -49,8 +49,8 @@ $ helm delete --purge my-release The following table lists the configurable parameters of the Elasticsearch chart and their default values. -| Parameter | Description | Default | -|---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------| +| Parameter | Description | Default | +|---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------| | `global.imageRegistry` | Global Docker image registry | `nil` | | `image.registry` | Elasticsearch image registry | `docker.io` | | `image.repository` | Elasticsearch image repository | `bitnami/elasticsearch` | @@ -63,6 +63,11 @@ The following table lists the configurable parameters of the Elasticsearch chart | `master.replicas` | Desired number of Elasticsearch master-eligible nodes | `2` | | `master.heapSize` | Master-eligible node heap size | `128m` | | `master.antiAffinity` | Master-eligible node pod anti-affinity policy | `soft` | +| `master.service.type` | Kubernetes Service type (master-eligible nodes) | `ClusterIP` | +| `master.service.port` | Kubernetes Service port for Elasticsearch transport port (master-eligible nodes) | `9300` | +| `master.service.nodePort` | Kubernetes Service nodePort (master-eligible nodes) | `nil` | +| `master.service.annotations` | Annotations for master-eligible nodes service | {} | +| `master.service.loadBalancerIP` | loadBalancerIP if master-eligible nodes service type is `LoadBalancer` | `nil` | | `master.resources` | CPU/Memory resource requests/limits for master-eligible nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | | `master.livenessProbe.enabled` | Enable/disable the liveness probe (master-eligible nodes pod) | `true` | | `master.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (master-eligible nodes pod) | `90` | @@ -84,8 +89,11 @@ The following table lists the configurable parameters of the Elasticsearch chart | `coordinating.replicas` | Desired number of Elasticsearch coordinating-only nodes | `2` | | `coordinating.heapSize` | Coordinating-only node heap size | `128m` | | `coordinating.antiAffinity` | Coordinating-only node pod anti-affinity policy | `soft` | -| `coordinating.service.type` | Coordinating-only node kubernetes service type | `ClusterIP` | -| `coordinating.service.port` | Elasticsearch REST API port | `9200` | +| `coordinating.service.type` | Kubernetes Service type (coordinating-only nodes) | `ClusterIP` | +| `coordinating.service.port` | Kubernetes Service port for REST API (coordinating-only nodes) | `9200` | +| `coordinating.service.nodePort` | Kubernetes Service nodePort (coordinating-only nodes) | `nil` | +| `coordinating.service.annotations` | Annotations for coordinating-only nodes service | {} | +| `coordinating.service.loadBalancerIP` | loadBalancerIP if coordinating-only nodes service type is `LoadBalancer` | `nil` | | `coordinating.resources` | CPU/Memory resource requests/limits for coordinating-only nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | | `coordinating.livenessProbe.enabled` | Enable/disable the liveness probe (coordinating-only nodes pod) | `true` | | `coordinating.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (coordinating-only nodes pod) | `90` | @@ -126,6 +134,11 @@ The following table lists the configurable parameters of the Elasticsearch chart | `ingest.replicas` | Desired number of Elasticsearch ingest nodes | `2` | | `ingest.heapSize` | Ingest node heap size | `128m` | | `ingest.antiAffinity` | Ingest node pod anti-affinity policy | `soft` | +| `ingest.service.type` | Kubernetes Service type (ingest nodes) | `ClusterIP` | +| `ingest.service.port` | Kubernetes Service port Elasticsearch transport port (ingest nodes) | `9300` | +| `ingest.service.nodePort` | Kubernetes Service nodePort (ingest nodes) | `nil` | +| `ingest.service.annotations` | Annotations for ingest nodes service | {} | +| `ingest.service.loadBalancerIP` | loadBalancerIP if ingest nodes service type is `LoadBalancer` | `nil` | | `ingest.resources` | CPU/Memory resource requests/limits for ingest nodes pods | `requests: { cpu: "25m", memory: "256Mi" }` | | `ingest.livenessProbe.enabled` | Enable/disable the liveness probe (ingest nodes pod) | `true` | | `ingest.livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated (ingest nodes pod) | `90` | diff --git a/bitnami/elasticsearch/templates/coordinating-svc.yaml b/bitnami/elasticsearch/templates/coordinating-svc.yaml index bd66610adc..35c64ef1a8 100644 --- a/bitnami/elasticsearch/templates/coordinating-svc.yaml +++ b/bitnami/elasticsearch/templates/coordinating-svc.yaml @@ -8,12 +8,22 @@ metadata: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} role: "coordinating-only" +{{- with .Values.coordinating.service.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: type: {{ .Values.coordinating.service.type | quote }} + {{- if and (eq .Values.coordinating.service.type "LoadBalancer") .Values.coordinating.service.loadBalancerIP }} + loadBalancerIP: {{ .Values.coordinating.service.loadBalancerIP }} + {{- end }} ports: - name: http port: {{ .Values.coordinating.service.port }} targetPort: http + {{- if .Values.coordinating.service.nodePort }} + nodePort: {{ .Values.coordinating.service.nodePort }} + {{- end }} selector: app: {{ template "elasticsearch.name" . }} release: {{ .Release.Name | quote }} diff --git a/bitnami/elasticsearch/templates/ingest-svc.yaml b/bitnami/elasticsearch/templates/ingest-svc.yaml index deb117a5b6..4f62c66ac9 100644 --- a/bitnami/elasticsearch/templates/ingest-svc.yaml +++ b/bitnami/elasticsearch/templates/ingest-svc.yaml @@ -9,11 +9,22 @@ metadata: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} role: "ingest" +{{- with .Values.ingest.service.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: + type: {{ .Values.ingest.service.type | quote }} + {{- if and (eq .Values.ingest.service.type "LoadBalancer") .Values.ingest.service.loadBalancerIP }} + loadBalancerIP: {{ .Values.ingest.service.loadBalancerIP }} + {{- end }} ports: - name: transport - port: 9300 + port: {{ .Values.ingest.service.port }} targetPort: transport + {{- if .Values.ingest.service.nodePort }} + nodePort: {{ .Values.ingest.service.nodePort }} + {{- end }} selector: app: {{ template "elasticsearch.name" . }} release: {{ .Release.Name | quote }} diff --git a/bitnami/elasticsearch/templates/master-svc.yaml b/bitnami/elasticsearch/templates/master-svc.yaml index e63cdab41c..a8ad0123d6 100644 --- a/bitnami/elasticsearch/templates/master-svc.yaml +++ b/bitnami/elasticsearch/templates/master-svc.yaml @@ -8,11 +8,22 @@ metadata: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} role: "master" +{{- with .Values.master.service.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: + type: {{ .Values.master.service.type | quote }} + {{- if and (eq .Values.master.service.type "LoadBalancer") .Values.master.service.loadBalancerIP }} + loadBalancerIP: {{ .Values.master.service.loadBalancerIP }} + {{- end }} ports: - name: transport - port: 9300 + port: {{ .Values.master.service.port }} targetPort: transport + {{- if .Values.master.service.nodePort }} + nodePort: {{ .Values.master.service.nodePort }} + {{- end }} selector: app: {{ template "elasticsearch.name" . }} release: {{ .Release.Name | quote }} diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 7871dc61df..1420d91e82 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -39,6 +39,23 @@ master: replicas: 3 heapSize: 128m antiAffinity: "soft" + service: + ## master-eligible service type + type: ClusterIP + ## Elasticsearch transport port + port: 9300 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + # loadBalancerIP: + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## @@ -103,9 +120,22 @@ coordinating: heapSize: 128m antiAffinity: "soft" service: + ## coordinating-only service type type: ClusterIP - ## Externally accessible elasticsearch REST API port + ## Elasticsearch REST API port port: 9200 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + # loadBalancerIP: + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## @@ -197,6 +227,23 @@ ingest: replicas: 2 heapSize: 128m antiAffinity: "soft" + service: + ## ingest service type + type: ClusterIP + ## Elasticsearch transport port + port: 9300 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + # loadBalancerIP: + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index 05ca9bd460..dd77ed37d3 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -58,6 +58,26 @@ master: replicas: 2 heapSize: 128m antiAffinity: "soft" + service: + ## master-eligible service type + type: ClusterIP + ## Elasticsearch transport port + port: 9300 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + # loadBalancerIP: + + ## Configure resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## @@ -103,9 +123,22 @@ coordinating: heapSize: 128m antiAffinity: "soft" service: + ## coordinating-only service type type: ClusterIP - ## Externally accessible elasticsearch REST API port + ## Elasticsearch REST API port port: 9200 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + # loadBalancerIP: + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## @@ -197,6 +230,23 @@ ingest: replicas: 2 heapSize: 128m antiAffinity: "soft" + service: + ## ingest service type + type: ClusterIP + ## Elasticsearch transport port + port: 9300 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + # loadBalancerIP: + ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## From c375e3690e9513ad10d9103bce221ab49ebb7d1c Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 6 Nov 2018 19:49:12 +0000 Subject: [PATCH 093/153] nginx: update to `1.14.1` Signed-off-by: Bitnami Containers --- bitnami/nginx/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/nginx/values.yaml b/bitnami/nginx/values.yaml index 20b7ea35db..d686a5b727 100644 --- a/bitnami/nginx/values.yaml +++ b/bitnami/nginx/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/nginx - tag: 1.14.0 + tag: 1.14.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From b438b8f51383ff2169280bf7edf889334a5be580 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 6 Nov 2018 19:49:12 +0000 Subject: [PATCH 094/153] nginx: bump chart appVersion to `1.14.1` Signed-off-by: Bitnami Containers --- bitnami/nginx/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/nginx/Chart.yaml b/bitnami/nginx/Chart.yaml index 28646561b0..e18d509032 100644 --- a/bitnami/nginx/Chart.yaml +++ b/bitnami/nginx/Chart.yaml @@ -1,6 +1,6 @@ name: nginx version: 1.1.1 -appVersion: 1.14.0 +appVersion: 1.14.1 description: Chart for the nginx server keywords: - nginx From ee04c9f799e10d555305a59543bc9612bec48a6a Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 6 Nov 2018 19:49:12 +0000 Subject: [PATCH 095/153] nginx: bump chart version to `1.1.2` Signed-off-by: Bitnami Containers --- bitnami/nginx/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/nginx/Chart.yaml b/bitnami/nginx/Chart.yaml index e18d509032..ad3aea2800 100644 --- a/bitnami/nginx/Chart.yaml +++ b/bitnami/nginx/Chart.yaml @@ -1,5 +1,5 @@ name: nginx -version: 1.1.1 +version: 1.1.2 appVersion: 1.14.1 description: Chart for the nginx server keywords: From aad08691d25071bbdcbac6b4fe7930edcbb9c270 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 7 Nov 2018 10:36:31 +0000 Subject: [PATCH 096/153] Synchronize upstreamed folder to 1675127f --- upstreamed/ghost/Chart.yaml | 2 +- upstreamed/ghost/README.md | 98 ++++++++------- upstreamed/ghost/templates/_helpers.tpl | 23 ++++ upstreamed/ghost/templates/deployment.yaml | 4 +- upstreamed/ghost/values.yaml | 11 +- upstreamed/mongodb/Chart.yaml | 2 +- .../templates/deployment-standalone.yaml | 50 ++++---- upstreamed/orangehrm/Chart.yaml | 4 +- upstreamed/orangehrm/requirements.lock | 4 +- upstreamed/orangehrm/values.yaml | 2 +- upstreamed/postgresql/Chart.yaml | 2 +- upstreamed/postgresql/README.md | 119 +++++++++--------- upstreamed/postgresql/templates/_helpers.tpl | 23 ++++ .../templates/statefulset-slaves.yaml | 12 ++ .../postgresql/templates/statefulset.yaml | 12 ++ upstreamed/postgresql/values-production.yaml | 13 ++ upstreamed/postgresql/values.yaml | 13 ++ 17 files changed, 251 insertions(+), 143 deletions(-) diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index c2931705d9..3903bd2ee2 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,5 +1,5 @@ name: ghost -version: 5.3.6 +version: 5.4.0 appVersion: 2.4.0 description: A simple, powerful publishing platform that allows you to share your stories with the world diff --git a/upstreamed/ghost/README.md b/upstreamed/ghost/README.md index 511400796f..372a26e986 100644 --- a/upstreamed/ghost/README.md +++ b/upstreamed/ghost/README.md @@ -47,53 +47,57 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the Ghost chart and their default values. -| Parameter | Description | Default | -|----------------------------------|---------------------------------------------------------------|----------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | Ghost image registry | `docker.io` | -| `image.repository` | Ghost Image name | `bitnami/ghost` | -| `image.tag` | Ghost Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `ghostHost` | Ghost host to create application URLs | `nil` | -| `ghostPath` | Ghost path to create application URLs | `nil` | -| `ghostPort` | Ghost port to create application URLs along with host | `80` | -| `ghostLoadBalancerIP` | `loadBalancerIP` for the Ghost Service | `nil` | -| `ghostUsername` | User of the application | `user@example.com` | -| `ghostPassword` | Application password | Randomly generated | -| `ghostEmail` | Admin email | `user@example.com` | -| `ghostBlogTitle` | Ghost Blog name | `User's Blog` | -| `allowEmptyPassword` | Allow DB blank passwords | `yes` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | -| `ingress.enabled` | Enable ingress controller resource | `false` | -| `ingress.hosts[0].name` | Hostname to your Ghost installation | `ghost.local` | -| `ingress.hosts[0].path` | Path within the url structure | `/` | -| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | -| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | -| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `ghost.local-tls-secret` | -| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | -| `ingress.secrets[0].name` | TLS Secret Name | `nil` | -| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | -| `ingress.secrets[0].key` | TLS Secret Key | `nil` | -| `externalDatabase.host` | Host of the external database | `nil` | -| `externalDatabase.port` | Port of the external database | `nil` | -| `externalDatabase.user` | Existing username in the external db | `bn_ghost` | -| `externalDatabase.password` | Password for the above username | `nil` | -| `externalDatabase.database` | Name of the existing database | `bitnami_ghost` | -| `mariadb.enabled` | Whether or not to install MariaDB (disable if using external) | `true` | -| `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `mariadb.db.name` | MariaDB Database name to create | `bitnami_ghost` | -| `mariadb.db.user` | MariaDB Database user to create | `bn_ghost` | -| `mariadb.db.password` | MariaDB Password for user | _random 10 character long alphanumeric string_ | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.storageClass` | PVC Storage Class for Ghost volume | `nil` (uses alpha storage annotation) | -| `persistence.accessMode` | PVC Access Mode for Ghost volume | `ReadWriteOnce` | -| `persistence.size` | PVC Storage Request for Ghost volume | `8Gi` | -| `persistence.path` | Path to mount the volume at, to use other images | `/bitnami` | -| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| Parameter | Description | Default | +|-------------------------------------|---------------------------------------------------------------|----------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | Ghost image registry | `docker.io` | +| `image.repository` | Ghost Image name | `bitnami/ghost` | +| `image.tag` | Ghost Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` | +| `volumePermissions.image.repository`| Init container volume-permissions image name | `bitnami/minideb` | +| `volumePermissions.image.tag` | Init container volume-permissions image tag | `latest` | +| `volumePermissions.image.pullPolicy`| Init container volume-permissions image pull policy | `Always` | +| `ghostHost` | Ghost host to create application URLs | `nil` | +| `ghostPath` | Ghost path to create application URLs | `nil` | +| `ghostPort` | Ghost port to create application URLs along with host | `80` | +| `ghostLoadBalancerIP` | `loadBalancerIP` for the Ghost Service | `nil` | +| `ghostUsername` | User of the application | `user@example.com` | +| `ghostPassword` | Application password | Randomly generated | +| `ghostEmail` | Admin email | `user@example.com` | +| `ghostBlogTitle` | Ghost Blog name | `User's Blog` | +| `allowEmptyPassword` | Allow DB blank passwords | `yes` | +| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname to your Ghost installation | `ghost.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `ghost.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `externalDatabase.host` | Host of the external database | `nil` | +| `externalDatabase.port` | Port of the external database | `nil` | +| `externalDatabase.user` | Existing username in the external db | `bn_ghost` | +| `externalDatabase.password` | Password for the above username | `nil` | +| `externalDatabase.database` | Name of the existing database | `bitnami_ghost` | +| `mariadb.enabled` | Whether or not to install MariaDB (disable if using external) | `true` | +| `mariadb.rootUser.password` | MariaDB admin password | `nil` | +| `mariadb.db.name` | MariaDB Database name to create | `bitnami_ghost` | +| `mariadb.db.user` | MariaDB Database user to create | `bn_ghost` | +| `mariadb.db.password` | MariaDB Password for user | _random 10 character long alphanumeric string_ | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.storageClass` | PVC Storage Class for Ghost volume | `nil` (uses alpha storage annotation) | +| `persistence.accessMode` | PVC Access Mode for Ghost volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for Ghost volume | `8Gi` | +| `persistence.path` | Path to mount the volume at, to use other images | `/bitnami` | +| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | The above parameters map to the env variables defined in [bitnami/ghost](http://github.com/bitnami/bitnami-docker-ghost). For more information please refer to the [bitnami/ghost](http://github.com/bitnami/bitnami-docker-ghost) image documentation. diff --git a/upstreamed/ghost/templates/_helpers.tpl b/upstreamed/ghost/templates/_helpers.tpl index 219544d96b..ccbf8d184b 100644 --- a/upstreamed/ghost/templates/_helpers.tpl +++ b/upstreamed/ghost/templates/_helpers.tpl @@ -86,3 +86,26 @@ Also, we can't use a single if because lazy evaluation is not an option {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name to change the volume permissions +*/}} +{{- define "ghost.volumePermissions.image" -}} +{{- $registryName := .Values.volumePermissions.image.registry -}} +{{- $repositoryName := .Values.volumePermissions.image.repository -}} +{{- $tag := .Values.volumePermissions.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} \ No newline at end of file diff --git a/upstreamed/ghost/templates/deployment.yaml b/upstreamed/ghost/templates/deployment.yaml index b2101eebac..9d246c0d66 100644 --- a/upstreamed/ghost/templates/deployment.yaml +++ b/upstreamed/ghost/templates/deployment.yaml @@ -28,8 +28,8 @@ spec: {{- else }} initContainers: - name: volume-permissions - image: "{{ .Values.volumePermissions.image.name }}:{{ .Values.volumePermissions.image.tag }}" - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} + image: {{ template "ghost.volumePermissions.image" . }} + imagePullPolicy: "{{ .Values.volumePermissions.image.pullPolicy }}" command: ['sh', '-c', 'chmod -R g+rwX {{ .Values.persistence.path }}'] volumeMounts: - mountPath: {{ .Values.persistence.path }} diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 2ccb7f6136..894762ed40 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -23,13 +23,16 @@ image: # pullSecrets: # - myRegistrKeySecretName -## Busybox image used to configure volume permissions +## +## Init containers parameters: +## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup ## volumePermissions: image: - name: busybox - tag: 1.28.3 -# pullPolicy: + registry: docker.io + repository: bitnami/minideb + tag: latest + pullPolicy: Always ## Ghost host and path to create application URLs ## ref: https://github.com/bitnami/bitnami-docker-ghost#configuration diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 5b7c872992..4035c9fe11 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.8.1 +version: 4.8.2 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/templates/deployment-standalone.yaml b/upstreamed/mongodb/templates/deployment-standalone.yaml index 1af1a863e7..86687ee388 100644 --- a/upstreamed/mongodb/templates/deployment-standalone.yaml +++ b/upstreamed/mongodb/templates/deployment-standalone.yaml @@ -136,32 +136,32 @@ spec: resources: {{ toYaml .Values.resources | indent 10 }} {{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + env: + - name: MONGODB_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} + key: mongodb-root-password + command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] + ports: - name: metrics - image: {{ template "metrics.image" . }} - imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} - env: - - name: MONGODB_ROOT_PASSWORD - valueFrom: - secretKeyRef: - name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} - key: mongodb-root-password - command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] - ports: - - name: metrics - containerPort: 9216 - livenessProbe: - httpGet: - path: /metrics - port: metrics - initialDelaySeconds: 15 - timeoutSeconds: 5 - readinessProbe: - httpGet: - path: /metrics - port: metrics - initialDelaySeconds: 5 - timeoutSeconds: 1 - resources: + containerPort: 9216 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }} volumes: diff --git a/upstreamed/orangehrm/Chart.yaml b/upstreamed/orangehrm/Chart.yaml index 8e92d0db2f..547e64b3c3 100644 --- a/upstreamed/orangehrm/Chart.yaml +++ b/upstreamed/orangehrm/Chart.yaml @@ -1,6 +1,6 @@ name: orangehrm -version: 3.2.0 -appVersion: 4.1.2-1 +version: 3.2.1 +appVersion: 4.2.0-1 description: OrangeHRM is a free HR management system that offers a wealth of modules to suit the needs of your business. keywords: diff --git a/upstreamed/orangehrm/requirements.lock b/upstreamed/orangehrm/requirements.lock index 13de3f1788..8b429e2ba2 100644 --- a/upstreamed/orangehrm/requirements.lock +++ b/upstreamed/orangehrm/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.1 + version: 5.2.3 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-18T04:08:10.550596288Z +generated: 2018-11-05T18:27:21.241194918Z diff --git a/upstreamed/orangehrm/values.yaml b/upstreamed/orangehrm/values.yaml index 8f548b2261..e811c503f3 100644 --- a/upstreamed/orangehrm/values.yaml +++ b/upstreamed/orangehrm/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/orangehrm - tag: 4.1.2-1 + tag: 4.2.0-1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 9e3f45cbc2..055909a6f0 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.2.4 +version: 2.3.1 appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md index 24a553e92a..0d92a04515 100644 --- a/upstreamed/postgresql/README.md +++ b/upstreamed/postgresql/README.md @@ -45,63 +45,68 @@ The command removes all the Kubernetes components associated with the chart and The following tables lists the configurable parameters of the PostgreSQL chart and their default values. -| Parameter | Description | Default | -|--------------------------------------|----------------------------------------------------|---------------------------------------------------------- | -| `global.imageRegistry` | Global Docker Image registry | `nil` | -| `image.registry` | PostgreSQL Image registry | `docker.io` | -| `image.repository` | PostgreSQL Image name | `bitnami/postgresql` | -| `image.tag` | PostgreSQL Image tag | `{VERSION}` | -| `image.pullPolicy` | PostgreSQL Image pull policy | `Always` | -| `image.pullSecrets` | Specify Image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `image.debug` | Specify if debug values should be set | `false` | -| `replication.enabled` | Would you like to enable replication | `false` | -| `replication.user` | Replication user | `repl_user` | -| `replication.password` | Replication user password | `repl_password` | -| `replication.slaveReplicas` | Number of slaves replicas | `1` | -| `postgresqlUsername` | PostgreSQL admin user | `postgres` | -| `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | -| `postgresqlDatabase` | PostgreSQL database | `nil` | -| `service.type` | Kubernetes Service type | `ClusterIP` | -| `service.port` | PostgreSQL port | `5432` | -| `service.nodePort` | Kubernetes Service nodePort | `nil` | -| `service.annotations` | Annotations for PostgreSQL service | {} | -| `service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` | `nil` | -| `persistence.enabled` | Enable persistence using PVC | `true` | -| `persistence.storageClass` | PVC Storage Class for PostgreSQL volume | `nil` | -| `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | -| `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | -| `persistence.annotations` | Annotations for the PVC | `{}` | -| `nodeSelector` | Node labels for pod assignment | `{}` | -| `tolerations` | Toleration labels for pod assignment | `[]` | -| `terminationGracePeriodSeconds` | Seconds the pod needs to terminate gracefully | `nil` | -| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | -| `livenessProbe.enabled` | Would you like a livessProbed to be enabled | `true` | -| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | -| `networkPolicy.allowExternal` | Don't require client label for connections | `true` | -| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | -| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | -| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | -| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | -| `readinessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 5 | -| `readinessProbe.periodSeconds` | How often to perform the probe | 10 | -| `readinessProbe.timeoutSeconds` | When the probe times out | 5 | -| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | -| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | -| `metrics.enabled` | Start a prometheus exporter | `false` | -| `metrics.service.type` | Kubernetes Service type | `ClusterIP` | -| `metrics.service.annotatios` | Additional annotations for metrics exporter pod | `{}` | -| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | -| `metrics.image.registry` | PostgreSQL Image registry | `docker.io` | -| `metrics.image.repository` | PostgreSQL Image name | `wrouesnel/postgres_exporter` | -| `metrics.image.tag` | PostgreSQL Image tag | `{VERSION}` | -| `metrics.image.pullPolicy` | PostgreSQL Image pull policy | `IfNotPresent` | -| `metrics.image.pullSecrets` | Specify Image pull secrets | `nil` (does not add image pull secrets to deployed pods) | -| `extraEnv` | Any extra environment variables you would like to pass on to the pod | `{}` | +| Parameter | Description | Default | +|-----------------------------------------------|----------------------------------------------------|---------------------------------------------------------- | +| `global.imageRegistry` | Global Docker Image registry | `nil` | +| `image.registry` | PostgreSQL Image registry | `docker.io` | +| `image.repository` | PostgreSQL Image name | `bitnami/postgresql` | +| `image.tag` | PostgreSQL Image tag | `{VERSION}` | +| `image.pullPolicy` | PostgreSQL Image pull policy | `Always` | +| `image.pullSecrets` | Specify Image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `image.debug` | Specify if debug values should be set | `false` | +| `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` | +| `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/minideb` | +| `volumePermissions.image.tag` | Init container volume-permissions image tag | `latest` | +| `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy| `Always` | +| `volumePermissions.securityContext.runAsUser` | User ID for the init container | `0` | +| `replication.enabled` | Would you like to enable replication | `false` | +| `replication.user` | Replication user | `repl_user` | +| `replication.password` | Replication user password | `repl_password` | +| `replication.slaveReplicas` | Number of slaves replicas | `1` | +| `postgresqlUsername` | PostgreSQL admin user | `postgres` | +| `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | +| `postgresqlDatabase` | PostgreSQL database | `nil` | +| `service.type` | Kubernetes Service type | `ClusterIP` | +| `service.port` | PostgreSQL port | `5432` | +| `service.nodePort` | Kubernetes Service nodePort | `nil` | +| `service.annotations` | Annotations for PostgreSQL service | {} | +| `service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` | `nil` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.storageClass` | PVC Storage Class for PostgreSQL volume | `nil` | +| `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | +| `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | +| `persistence.annotations` | Annotations for the PVC | `{}` | +| `nodeSelector` | Node labels for pod assignment | `{}` | +| `tolerations` | Toleration labels for pod assignment | `[]` | +| `terminationGracePeriodSeconds` | Seconds the pod needs to terminate gracefully | `nil` | +| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `livenessProbe.enabled` | Would you like a livessProbed to be enabled | `true` | +| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | +| `networkPolicy.allowExternal` | Don't require client label for connections | `true` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 30 | +| `livenessProbe.periodSeconds` | How often to perform the probe | 10 | +| `livenessProbe.timeoutSeconds` | When the probe times out | 5 | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `readinessProbe.enabled` | would you like a readinessProbe to be enabled | `true` | +| `readinessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | 5 | +| `readinessProbe.periodSeconds` | How often to perform the probe | 10 | +| `readinessProbe.timeoutSeconds` | When the probe times out | 5 | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | 6 | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | 1 | +| `metrics.enabled` | Start a prometheus exporter | `false` | +| `metrics.service.type` | Kubernetes Service type | `ClusterIP` | +| `metrics.service.annotatios` | Additional annotations for metrics exporter pod | `{}` | +| `metrics.service.loadBalancerIP` | loadBalancerIP if redis metrics service type is `LoadBalancer` | `nil` | +| `metrics.image.registry` | PostgreSQL Image registry | `docker.io` | +| `metrics.image.repository` | PostgreSQL Image name | `wrouesnel/postgres_exporter` | +| `metrics.image.tag` | PostgreSQL Image tag | `{VERSION}` | +| `metrics.image.pullPolicy` | PostgreSQL Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify Image pull secrets | `nil` (does not add image pull secrets to deployed pods) | +| `extraEnv` | Any extra environment variables you would like to pass on to the pod | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/upstreamed/postgresql/templates/_helpers.tpl b/upstreamed/postgresql/templates/_helpers.tpl index 90627d6094..8d95764621 100644 --- a/upstreamed/postgresql/templates/_helpers.tpl +++ b/upstreamed/postgresql/templates/_helpers.tpl @@ -69,6 +69,29 @@ Also, we can't use a single if because lazy evaluation is not an option {{- end -}} {{- end -}} +{{/* +Return the proper image name to change the volume permissions +*/}} +{{- define "postgresql.volumePermissions.image" -}} +{{- $registryName := .Values.volumePermissions.image.registry -}} +{{- $repositoryName := .Values.volumePermissions.image.repository -}} +{{- $tag := .Values.volumePermissions.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} + {{/* Return the proper PostgreSQL metrics image name diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml index a8da82f7e4..37d527a3f6 100644 --- a/upstreamed/postgresql/templates/statefulset-slaves.yaml +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -47,6 +47,18 @@ spec: tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} + {{- if and .Values.persistence.enabled .Values.securityContext.enabled}} + initContainers: + - name: init-chmod-data + image: {{ template "postgresql.volumePermissions.image" . }} + imagePullPolicy: "{{ .Values.volumePermissions.image.pullPolicy }}" + command: ['sh' , '-c' , 'if [ -d /bitnami/postgresql/data ]; then chmod 0700 /bitnami/postgresql/data; fi'] + securityContext: + runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }} + volumeMounts: + - name: data + mountPath: /bitnami/postgresql + {{ end }} containers: - name: {{ template "postgresql.fullname" . }} image: {{ template "postgresql.image" . }} diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml index edb4e73096..d2845652d9 100644 --- a/upstreamed/postgresql/templates/statefulset.yaml +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -49,6 +49,18 @@ spec: {{- if .Values.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- end }} + {{- if and .Values.persistence.enabled .Values.securityContext.enabled}} + initContainers: + - name: init-chmod-data + image: {{ template "postgresql.volumePermissions.image" . }} + imagePullPolicy: "{{ .Values.volumePermissions.image.pullPolicy }}" + command: ['sh' , '-c' , 'if [ -d /bitnami/postgresql/data ]; then chmod 0700 /bitnami/postgresql/data; fi'] + securityContext: + runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }} + volumeMounts: + - name: data + mountPath: /bitnami/postgresql + {{ end }} containers: - name: {{ template "postgresql.fullname" . }} image: {{ template "postgresql.image" . }} diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index 7310041180..891ffcc7d7 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -29,6 +29,19 @@ image: ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging debug: false +## +## Init containers parameters: +## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup +## +volumePermissions: + image: + registry: docker.io + repository: bitnami/minideb + tag: latest + pullPolicy: Always + securityContext: + runAsUser: 0 + ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index 6c3af56964..b74191ab7d 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -29,6 +29,19 @@ image: ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging debug: false +## +## Init containers parameters: +## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup +## +volumePermissions: + image: + registry: docker.io + repository: bitnami/minideb + tag: latest + pullPolicy: Always + securityContext: + runAsUser: 0 + ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## From 6b1f3097f235e6e38941780d2f5fbd8c7cabc3e0 Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Wed, 7 Nov 2018 18:03:52 +0000 Subject: [PATCH 097/153] kubeapps: bump chart version to 0.9.5 --- bitnami/kubeapps/Chart.yaml | 2 +- .../templates/apprepository-rbac.yaml | 40 ------------------- .../templates/kubeapps-frontend-config.yaml | 6 +++ 3 files changed, 7 insertions(+), 41 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 395bc3966e..dbb3b11627 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.4 +version: 0.9.5 appVersion: v1.0.0-beta.4 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/templates/apprepository-rbac.yaml b/bitnami/kubeapps/templates/apprepository-rbac.yaml index 3646b2c242..8e65e8bf9b 100644 --- a/bitnami/kubeapps/templates/apprepository-rbac.yaml +++ b/bitnami/kubeapps/templates/apprepository-rbac.yaml @@ -1,44 +1,4 @@ {{- if .Values.rbac.create -}} -# Need a cluster role because client-go v5.0.1 does not support namespaced -# informers -# TODO: remove when we update to client-go v6.0.0 -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: {{ template "kubeapps.apprepository.fullname" . }} - labels: - app: {{ template "kubeapps.apprepository.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -rules: -- apiGroups: - - batch - resources: - - cronjobs - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: {{ template "kubeapps.apprepository.fullname" . }} - labels: - app: {{ template "kubeapps.apprepository.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ template "kubeapps.apprepository.fullname" . }} -subjects: -- kind: ServiceAccount - name: {{ template "kubeapps.apprepository.fullname" . }} - namespace: {{ .Release.Namespace }} ---- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: diff --git a/bitnami/kubeapps/templates/kubeapps-frontend-config.yaml b/bitnami/kubeapps/templates/kubeapps-frontend-config.yaml index 1ddbadfd91..c40747ab28 100644 --- a/bitnami/kubeapps/templates/kubeapps-frontend-config.yaml +++ b/bitnami/kubeapps/templates/kubeapps-frontend-config.yaml @@ -38,6 +38,12 @@ data: # Hide Www-Authenticate to prevent it triggering a basic auth prompt in # the browser with some clusters proxy_hide_header Www-Authenticate; + + # Keep the connection open with the API server even if idle (the default is 60 seconds) + # Setting it to 1 hour which should be enough for our current use case of deploying/upgrading apps + # If we enable other use-cases in the future we might need to bump this value + # More info here https://github.com/kubeapps/kubeapps/issues/766 + proxy_read_timeout 1h; } location /api/chartsvc { From 7caa3834ff1f0aa0bbbe2da44d41aeed50001baa Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Thu, 8 Nov 2018 10:36:35 +0000 Subject: [PATCH 098/153] Synchronize upstreamed folder to c8d196dd --- upstreamed/drupal/Chart.yaml | 4 ++-- upstreamed/drupal/requirements.lock | 4 ++-- upstreamed/drupal/values.yaml | 2 +- upstreamed/ghost/Chart.yaml | 4 ++-- upstreamed/ghost/requirements.lock | 4 ++-- upstreamed/ghost/values.yaml | 2 +- upstreamed/prestashop/Chart.yaml | 4 ++-- upstreamed/prestashop/requirements.lock | 4 ++-- upstreamed/prestashop/values.yaml | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index 5e1ac3cb83..b1a4ab59bb 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,6 +1,6 @@ name: drupal -version: 2.3.0 -appVersion: 8.6.2 +version: 2.3.1 +appVersion: 8.6.3 description: One of the most versatile open source content management systems. keywords: - drupal diff --git a/upstreamed/drupal/requirements.lock b/upstreamed/drupal/requirements.lock index 662b6d330c..5f7b389b72 100644 --- a/upstreamed/drupal/requirements.lock +++ b/upstreamed/drupal/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.1 + version: 5.2.3 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-18T13:44:56.891341815Z +generated: 2018-11-07T17:27:51.273910024Z diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index 62600a94f6..b33599513a 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/drupal - tag: 8.6.2 + tag: 8.6.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 3903bd2ee2..3543269100 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.4.0 -appVersion: 2.4.0 +version: 5.4.1 +appVersion: 2.5.0 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/requirements.lock b/upstreamed/ghost/requirements.lock index 0892a9bf63..ed15407e4a 100644 --- a/upstreamed/ghost/requirements.lock +++ b/upstreamed/ghost/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.2 + version: 5.2.3 digest: sha256:b3053e73f5c114f55a794eccea2606cc9fe8a669eaab1716246994bbdd37a473 -generated: 2018-10-30T18:15:54.953650061Z +generated: 2018-11-07T23:03:33.306837234Z diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 894762ed40..81ee96a972 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.4.0 + tag: 2.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/prestashop/Chart.yaml b/upstreamed/prestashop/Chart.yaml index 60b9cc5427..fdee3369a4 100644 --- a/upstreamed/prestashop/Chart.yaml +++ b/upstreamed/prestashop/Chart.yaml @@ -1,6 +1,6 @@ name: prestashop -version: 4.1.0 -appVersion: 1.7.4-3 +version: 4.1.1 +appVersion: 1.7.4-4 description: A popular open source ecommerce solution. Professional tools are easily accessible to increase online sales including instant guest checkout, abandoned cart reminders and automated Email marketing. diff --git a/upstreamed/prestashop/requirements.lock b/upstreamed/prestashop/requirements.lock index 5c9654e96f..43c77d9fed 100644 --- a/upstreamed/prestashop/requirements.lock +++ b/upstreamed/prestashop/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.3 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:50:26.245376+02:00 +generated: 2018-11-07T18:41:04.985875501Z diff --git a/upstreamed/prestashop/values.yaml b/upstreamed/prestashop/values.yaml index 1571bfcc24..f8a511ff2b 100644 --- a/upstreamed/prestashop/values.yaml +++ b/upstreamed/prestashop/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/prestashop - tag: 1.7.4-3 + tag: 1.7.4-4 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 699515245e4741688c194df4cafa69c53272062a Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Thu, 8 Nov 2018 16:27:11 +0100 Subject: [PATCH 099/153] [bitnami/cassandra] First version --- bitnami/cassandra/.helmignore | 17 ++ bitnami/cassandra/Chart.yaml | 12 ++ bitnami/cassandra/README.md | 129 ++++++++++++ bitnami/cassandra/templates/NOTES.txt | 59 ++++++ bitnami/cassandra/templates/_helpers.tpl | 77 ++++++++ .../cassandra/templates/cassandra-secret.yaml | 20 ++ bitnami/cassandra/templates/headless-svc.yaml | 31 +++ .../cassandra/templates/networkPolicy.yaml | 31 +++ bitnami/cassandra/templates/service.yaml | 27 +++ bitnami/cassandra/templates/statefulset.yaml | 184 ++++++++++++++++++ bitnami/cassandra/values-production.yaml | 174 +++++++++++++++++ bitnami/cassandra/values.yaml | 174 +++++++++++++++++ 12 files changed, 935 insertions(+) create mode 100644 bitnami/cassandra/.helmignore create mode 100644 bitnami/cassandra/Chart.yaml create mode 100644 bitnami/cassandra/README.md create mode 100644 bitnami/cassandra/templates/NOTES.txt create mode 100644 bitnami/cassandra/templates/_helpers.tpl create mode 100644 bitnami/cassandra/templates/cassandra-secret.yaml create mode 100644 bitnami/cassandra/templates/headless-svc.yaml create mode 100644 bitnami/cassandra/templates/networkPolicy.yaml create mode 100644 bitnami/cassandra/templates/service.yaml create mode 100644 bitnami/cassandra/templates/statefulset.yaml create mode 100644 bitnami/cassandra/values-production.yaml create mode 100644 bitnami/cassandra/values.yaml diff --git a/bitnami/cassandra/.helmignore b/bitnami/cassandra/.helmignore new file mode 100644 index 0000000000..5e03def0cf --- /dev/null +++ b/bitnami/cassandra/.helmignore @@ -0,0 +1,17 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +OWNERS diff --git a/bitnami/cassandra/Chart.yaml b/bitnami/cassandra/Chart.yaml new file mode 100644 index 0000000000..dbc19bc05e --- /dev/null +++ b/bitnami/cassandra/Chart.yaml @@ -0,0 +1,12 @@ +name: cassandra +version: 1.0.0 +appVersion: 3.11.3 +description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients. +icon: https://d33np9n32j53g7.cloudfront.net/assets/stacks/cassandra/img/cassandra-stack-220x234-071ca9e210d165c3972d41ff9f96bd60.png +sources: +- https://github.com/bitnami/bitnami-docker-cassandra +home: http://cassandra.apache.org +maintainers: +- name: Bitnami + email: containers@bitnami.com +engine: gotpl diff --git a/bitnami/cassandra/README.md b/bitnami/cassandra/README.md new file mode 100644 index 0000000000..cdc1e821be --- /dev/null +++ b/bitnami/cassandra/README.md @@ -0,0 +1,129 @@ +# cassandra + +[cassandra](https://cassandra.apache.org) Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers or datacenters. + +## TL;DR; + +```console +$ helm install . +``` + +## Introduction + +This chart bootstraps a [Cassandra](https://github.com/bitnami/bitnami-docker-cassandra) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + +Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. + +## Prerequisites + +- Kubernetes 1.8+ +- PV provisioner support in the underlying infrastructure + +## Installing the Chart + +To install the chart with the release name `my-release`: + +```console +$ helm install --name my-release ./cassandra +``` + +The command deploys one node with Cassandra on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. + +> **Tip**: List all releases using `helm list` + +## Uninstalling the Chart + +To uninstall/delete the `my-release` petset: + +```console +$ helm delete my-release +``` + +The command removes all the Kubernetes components associated with the chart and deletes the release. + +## Configuration + +The following tables lists the configurable parameters of the cassandra chart and their default values. + +| Parameter | Description | Default | +|--------------------------------------------|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------| +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | Cassandra Image registry | `docker.io` | +| `image.repository` | Cassandra Image name | `bitnami/cassandra` | +| `image.tag` | Cassandra Image tag | `3.11.3` | +| `image.pullPolicy` | Image pull policy | `Always` | +| `image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `service.type` | Kubernetes Service type | `ClusterIP` | +| `service.nodePort` | Kubernetes Service nodePort | `nil` | +| `service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `nil` | +| `service.annotations` | Annotations for the service | {} | +| `persistence.enabled` | Use PVCs to persist data | `true` | +| `persistence.storageClass` | Storage class of backing PVC | `generic` | +| `persistence.annotations` | Annotations for the PVC | {} | +| `persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` | +| `persistence.size` | Size of data volume | `8Gi` | +| `resources` | CPU/Memory resource requests/limits | `{}` | +| `cluster.name` | Cassandra cluster name | `cassandra` | +| `cluster.replicaCount` | Number of cassandra nodes | `1` | +| `cluster.seedCount` | Number of seed nodes (note: must be greater or equal than 1 and less or equal to `cluster.replicaCount`) | `1` | +| `dbUser.user` | Cassandra admin user | `cassandra` | +| `dbUser.forcePassword` | Force the user to provide a non-empty password for `dbUser.user` | `false` | +| `dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | (Random generated) | +| `dbUser.existingSecret` | Use an existing secret object for `dbUser.user` password (will ignore `dbUser.password`) | `` | +| `livenessProbe.enabled` | Turn on and off liveness probe | `true` | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | +| `livenessProbe.periodSeconds` | How often to perform the probe | `30` | +| `livenessProbe.timeoutSeconds` | When the probe times out | `5` | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | `1` | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `5` | +| `readinessProbe.enabled` | Turn on and off readiness probe | `true` | +| `readinessProbe.initialDelaySeconds`| Delay before readiness probe is initiated | `5` | +| `readinessProbe.periodSeconds` | How often to perform the probe | `10` | +| `readinessProbe.timeoutSeconds` | When the probe times out | `5` | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed | `1` | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `5` | +| `podAnnotations` | Additional pod annotations | `{}` | +| `podLabels` | Additional pod labels | `{}` | +| `statefulset.updateStrategy` | Update strategy for StatefulSet | onDelete | +| `statefulset.rollingUpdatePartition` | Partition update strategy | `` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `affinity` | Enable node/pod affinity | {} | +| `tolerations` | Toleration labels for pod assignment | [] | +| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | +| `networkPolicy.allowExternal` | Don't require client label for connections | `true` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | Cassandra exporter image registry | `docker.io` | +| `metrics.image.repository` | Cassandra exporter image name | `criteo/cassandra_exporter` | +| `metrics.image.tag` | Cassandra exporter image tag | `2.0.4` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter | `{prometheus.io/scrape: "true", prometheus.io/port: "8080"}` | +| `metrics.resources` | Exporter resource requests/limit | `{}` | + +The above parameters map to the env variables defined in [bitnami/cassandra](http://github.com/bitnami/bitnami-docker-cassandra). For more information please refer to the [bitnami/cassandra](http://github.com/bitnami/bitnami-docker-cassandra) image documentation. + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, + +```console +$ helm install --name my-release \ + --set cassandraUser=admin,cassandraPassword=password\ + ./cassandra +``` + + +Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, + +```console +$ helm install --name my-release -f values.yaml ./cassandra +``` + +> **Tip**: You can use the default [values.yaml](values.yaml) + +## Persistence + +The [Bitnami cassandra](https://github.com/bitnami/bitnami-docker-cassandra) image stores the cassandra data at the `/bitnami/cassandra` path of the container. + +Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. +See the [Configuration](#configuration) section to configure the PVC or to disable persistence. diff --git a/bitnami/cassandra/templates/NOTES.txt b/bitnami/cassandra/templates/NOTES.txt new file mode 100644 index 0000000000..1e79d5d590 --- /dev/null +++ b/bitnami/cassandra/templates/NOTES.txt @@ -0,0 +1,59 @@ +** Please be patient while the chart is being deployed ** + +Cassandra can be accessed through the following urls from within the cluster: + + - CQL: {{ template "cassandra.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.cqlPort }} + - Thrift: {{ template "cassandra.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.thriftPort }} + +To get your password run: + + export CASSANDRA_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "cassandra.fullname" . }} -o jsonpath="{.data.cassandra-password}" | base64 --decode) + +Check the cluster status by running: + + kubectl exec -it --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "cassandra.name" . }},release={{ .Release.Name }} -o jsonpath='{.items[0].metadata.name}') nodetool status + +To connect to your Cassandra cluster using CQL: + +1. Run a Cassandra pod that you can use as a client: + + kubectl run --namespace {{ .Release.Namespace }} {{ template "cassandra.fullname" . }}-client --rm --tty -i \ + --env CASSANDRA_PASSWORD=$CASSANDRA_PASSWORD \ + {{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }}--labels="{{ template "cassandra.name" . }}-client=true" \{{- end }} \ + --image {{ template "cassandra.image" . }} -- bash + +2. Connect using the cqlsh client: + + cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD {{ template "cassandra.fullname" . }} + +{{ if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} +Note: Since NetworkPolicy is enabled, only pods with label +{{ template "cassandra.fullname" . }}-client=true" +will be able to connect to Cassandra. +{{- else -}} + +To connect to your database from outside the cluster execute the following commands: + +{{- if contains "NodePort" .Values.service.type }} + + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "cassandra.fullname" . }}) + + cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD $NODE_IP $NODE_PORT + +{{- else if contains "LoadBalancer" .Values.service.type }} + + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "redis.fullname" . }}' + + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "redis.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD $SERVICE_IP + +{{- else if contains "ClusterIP" .Values.service.type }} + + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "cassandra.fullname" . }} {{ .Values.service.cqlPort }}:{{ .Values.service.cqlPort }} & + cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD 127.0.0.1 {{ .Values.service.cqlPort }} + +{{- end }} +{{- end }} + diff --git a/bitnami/cassandra/templates/_helpers.tpl b/bitnami/cassandra/templates/_helpers.tpl new file mode 100644 index 0000000000..4761c82e8a --- /dev/null +++ b/bitnami/cassandra/templates/_helpers.tpl @@ -0,0 +1,77 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "cassandra.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "cassandra.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "cassandra.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create the name of the service account to use +*/}} +{{- define "cassandra.serviceAccountName" -}} +{{- if .Values.serviceAccount.create -}} + {{ default (include "cassandra.fullname" .) .Values.serviceAccount.name }} +{{- else -}} + {{ default "default" .Values.serviceAccount.name }} +{{- end -}} +{{- end -}} + +{{/* +Return the proper Cassandra image name +*/}} +{{- define "cassandra.image" -}} +{{- $registryName := .Values.image.registry -}} +{{- $repositoryName := .Values.image.repository -}} +{{- $tag := .Values.image.tag | toString -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. +Also, we can't use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} + {{- if .Values.global.imageRegistry }} + {{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}} + {{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} + {{- end -}} +{{- else -}} + {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} +{{- end -}} + + +{{/* +Return the proper metrics image name +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/bitnami/cassandra/templates/cassandra-secret.yaml b/bitnami/cassandra/templates/cassandra-secret.yaml new file mode 100644 index 0000000000..b481e961d2 --- /dev/null +++ b/bitnami/cassandra/templates/cassandra-secret.yaml @@ -0,0 +1,20 @@ +{{- if (not .Values.dbUser.existingSecret) -}} +apiVersion: v1 +kind: Secret +metadata: + name: {{ template "cassandra.fullname" . }} + labels: + app: "{{ template "cassandra.name" . }}" + chart: {{ template "cassandra.chart" . }} + release: {{ .Release.Name | quote }} + heritage: {{ .Release.Service | quote }} +type: Opaque +data: + {{- if .Values.dbUser.password }} + cassandra-password: "{{ .Values.dbUser.password | b64enc }}" + {{- else if (not .Values.dbUser.forcePassword) }} + cassandra-password: "{{ randAlphaNum 10 | b64enc }}" + {{ else }} + cassandra-password: {{ required "A Cassandra Password is required!" .Values.dbUser.password }} + {{- end }} +{{- end }} diff --git a/bitnami/cassandra/templates/headless-svc.yaml b/bitnami/cassandra/templates/headless-svc.yaml new file mode 100644 index 0000000000..7d5a6be8ca --- /dev/null +++ b/bitnami/cassandra/templates/headless-svc.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "cassandra.fullname" . }}-headless + labels: + app: {{ template "cassandra.name" . }} + chart: {{ template "cassandra.chart" . }} + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" +spec: + clusterIP: None + publishNotReadyAddresses: true + ports: + - name: intra + port: 7000 + targetPort: intra + - name: tls + port: 7001 + targetPort: tls + - name: jmx + port: 7199 + targetPort: jmx + - name: cql + port: {{ default 9042 .Values.service.cqlPort }} + targetPort: cql + - name: thrift + port: {{ default 9160 .Values.service.thriftPort }} + targetPort: thrift + selector: + app: {{ template "cassandra.name" . }} + release: {{ .Release.Name }} diff --git a/bitnami/cassandra/templates/networkPolicy.yaml b/bitnami/cassandra/templates/networkPolicy.yaml new file mode 100644 index 0000000000..5eaf1bb8b5 --- /dev/null +++ b/bitnami/cassandra/templates/networkPolicy.yaml @@ -0,0 +1,31 @@ +{{- if .Values.networkPolicy.enabled }} +kind: NetworkPolicy +apiVersion: {{ template "networkPolicy.apiVersion" . }} +metadata: + name: "{{ template "cassandra.fullname" . }}" + labels: + app: {{ template "cassandra.name" . }} + chart: {{ template "cassandra.chart" . }} + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" +spec: + podSelector: + matchLabels: + app: {{ template "cassandra.name" . }} + release: "{{ .Release.Name }}" + ingress: + # Allow inbound connections + - ports: + - port: 6379 + {{- if not .Values.networkPolicy.allowExternal }} + from: + - podSelector: + matchLabels: + {{ template "cassandra.fullname" . }}-client: "true" + {{- end }} + {{- if .Values.metrics.enabled }} + # Allow prometheus scrapes for metrics + - ports: + - port: 8080 + {{- end }} +{{- end }} diff --git a/bitnami/cassandra/templates/service.yaml b/bitnami/cassandra/templates/service.yaml new file mode 100644 index 0000000000..1b1f66d0f1 --- /dev/null +++ b/bitnami/cassandra/templates/service.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "cassandra.fullname" . }} + labels: + app: {{ template "cassandra.name" . }} + chart: {{ template "cassandra.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: +{{- if .Values.service.nodePort }} + nodePort: {{ .Values.service.nodePort }} +{{- end }} +{{ if eq .Values.service.type "LoadBalancer" -}} {{ if .Values.service.loadBalancerIP -}} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} +{{ end -}} + type: {{ .Values.service.type }} + ports: + - name: cql + port: {{ default 9042 .Values.service.cqlPort }} + targetPort: cql + - name: thrift + port: {{ default 9160 .Values.service.thriftPort }} + targetPort: thrift + selector: + app: {{ template "cassandra.name" . }} + release: {{ .Release.Name }} diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml new file mode 100644 index 0000000000..2de8362cb0 --- /dev/null +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -0,0 +1,184 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: {{ template "cassandra.fullname" . }} + labels: + app: {{ template "cassandra.name" . }} + chart: {{ template "cassandra.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + selector: + matchLabels: + app: {{ template "cassandra.name" . }} + release: {{ .Release.Name }} + serviceName: {{ template "cassandra.fullname" . }}-headless + replicas: {{ .Values.cluster.replicaCount }} + updateStrategy: + type: {{ .Values.statefulset.updateStrategy }} + {{- if .Values.statefulset.rollingUpdatePartition }} + rollingUpdate: + partition: {{ .Values.statefulset.rollingUpdatePartition }} + {{- end }} + template: + metadata: + labels: + app: {{ template "cassandra.name" . }} + release: {{ .Release.Name }} +{{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} +{{- end }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} + {{- if .Values.metrics.enabled }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} + {{- end }} +{{- end }} + spec: +{{- if .Values.selector }} +{{ toYaml .Values.selector | indent 6 }} +{{- end }} + {{- if .Values.securityContext.enabled }} + securityContext: + fsGroup: {{ .Values.securityContext.fsGroup }} + runAsUser: {{ .Values.securityContext.runAsUser }} + {{- end }} +{{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} +{{- end }} + {{- with .Values.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} + containers: + - name: cassandra + command: + - bash + - -ec + # Node 0 is the password seeder + - | + if [[ $HOSTNAME =~ (.*)-0$ ]]; then + echo "Setting node as password seeder" + export CASSANDRA_PASSWORD_SEEDER=yes + fi + /app-entrypoint.sh /run.sh + + image: {{ template "cassandra.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + resources: +{{ toYaml .Values.resources | indent 10 }} + env: + - name: CASSANDRA_CLUSTER_NAME + value: {{ .Values.cluster.name }} + - name: CASSANDRA_SEEDS + {{- $global := . }} + {{- $replicas := .Values.cluster.seedCount | int }} + value: "{{- range $i, $e := until $replicas }}{{ template "cassandra.fullname" $global }}-{{ $i }}.{{ template "cassandra.fullname" $global }}-headless.{{ $global.Release.Namespace }}.svc.cluster.local{{- if (lt ( add1 $i ) $replicas ) }},{{- end }}{{- end }}" + - name: CASSANDRA_PASSWORD + valueFrom: + secretKeyRef: + name: {{ if .Values.dbUser.existingSecret }}{{ .Values.dbUser.existingSecret }}{{- else }}{{ template "cassandra.fullname" . }}{{- end }} + key: cassandra-password + - name: POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP +{{- if .Values.livenessProbe.enabled }} + livenessProbe: + exec: + command: [ "/bin/sh", "-c", "nodetool status" ] + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} +{{- end }} +{{- if .Values.readinessProbe.enabled }} + readinessProbe: + exec: + command: [ "/bin/sh", "-c", "nodetool status | grep -E \"^UN\\s+${POD_IP}\"" ] + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} +{{- end }} + ports: + - name: intra + containerPort: 7000 + - name: tls + containerPort: 7001 + - name: jmx + containerPort: 7199 + - name: cql + containerPort: 9042 + - name: thrift + containerPort: 9160 + volumeMounts: + - name: data + mountPath: /bitnami/cassandra + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + - name: {{ .Values.image.pullSecrets }} + {{- end }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + {{- if .Values.metrics.image.pullSecrets }} + imagePullSecrets: + - name: {{ .Values.metrics.image.pullSecrets }} + {{- end }} + ports: + - name: metrics + containerPort: 8080 + protocol: TCP + - name: jmx + containerPort: 5555 + livenessProbe: + tcpSocket: + port: metrics + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 20 + timeoutSeconds: 45 +{{- end }} +{{- if not .Values.persistence.enabled }} + volumes: + - name: data + emptyDir: {} +{{- else }} + volumeClaimTemplates: + - metadata: + name: data + labels: + app: {{ template "cassandra.name" . }} + chart: {{ template "cassandra.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +{{- if .Values.persistence.annotations }} + annotations: +{{ toYaml .Values.persistence.annotations | indent 8 }} +{{- end }} + spec: + accessModes: + {{- range .Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} + {{- if .Values.persistence.storageClass }} + {{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: "{{ .Values.persistence.storageClass }}" + {{- end }} + {{- end }} +{{- end }} diff --git a/bitnami/cassandra/values-production.yaml b/bitnami/cassandra/values-production.yaml new file mode 100644 index 0000000000..1f8afcba16 --- /dev/null +++ b/bitnami/cassandra/values-production.yaml @@ -0,0 +1,174 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + +## Bitnami Cassandra image version +## ref: https://hub.docker.com/r/bitnami/cassandra/tags/ +## +image: + registry: docker.io + repository: bitnami/cassandra + ## Bitnami Cassandra image tag + ## ref: https://github.com/bitnami/bitnami-docker-cassandra#supported-tags-and-respective-dockerfile-links + ## + tag: 3.11.3 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images + ## + pullPolicy: Always + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + +## Specify a service type +## ref: http://kubernetes.io/docs/user-guide/services/ +service: + type: ClusterIP + cqlPort: 9042 + thriftPort: 9160 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: 30001 + # loadBalancerIP: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + +## Enable persistence using Persistent Volume Claims +## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ +## +persistence: + ## If true, use a Persistent Volume Claim, If false, use emptyDir + ## + enabled: true + ## Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) + ## + # storageClass: "-" + ## Persistent Volume Claim annotations + ## + annotations: + ## Persistent Volume Access Mode + ## + accessModes: + - ReadWriteOnce + ## Persistent Volume size + ## + size: 8Gi + ## + +## Configure resource requests and limits +## ref: http://kubernetes.io/docs/user-guide/compute-resources/ +## Minimum memory for development is 4GB and 2 CPU cores +## Minimum memory for production is 8GB and 4 CPU cores +## ref: http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/architecture/architecturePlanningHardware_c.html +resources: {} + # requests: + # memory: 4Gi + # cpu: 2 + # limits: + # memory: 4Gi + # cpu: 2 + +## Change cassandra configuration parameters below: +## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html +## Recommended max heap size is 1/2 of system memory +## Recommeneed heap new size is 1/4 of max heap size +## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html +cluster: + name: cassandra + replicaCount: 3 + seedCount: 2 + +dbUser: + user: cassandra + forcePassword: false + # password: + # existingSecret: + +## Liveness and Readiness probe values. +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ +livenessProbe: + enabled: true + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 5 +readinessProbe: + enabled: true + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 5 + +## Additional pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +podAnnotations: {} + +## Additional pod labels +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +podLabels: {} + +statefulset: + updateStrategy: OnDelete + # rollingUpdatePartition: + +## Pod Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ +## +securityContext: + enabled: true + fsGroup: 1001 + runAsUser: 1001 + +## Affinity for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +affinity: {} + +## Tolerations for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +## +tolerations: [] + +networkPolicy: + ## Specifies whether a NetworkPolicy should be created + ## + enabled: true + + ## The Policy model to apply. When set to false, only pods with the correct + ## client label will have network access to the port Redis is listening + ## on. When true, Redis will accept connections from any source + ## (with the correct destination port). + ## + # allowExternal: true + +## Cassandra exporter configuration +## ref: https://github.com/criteo/cassandra_exporter +metrics: + enabled: true + image: + registry: docker.io + pullPolicy: IfNotPresent + repository: criteo/cassandra_exporter + tag: 2.0.4 + # pullSecrets: + resources: {} + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "8080" diff --git a/bitnami/cassandra/values.yaml b/bitnami/cassandra/values.yaml new file mode 100644 index 0000000000..00df01a56b --- /dev/null +++ b/bitnami/cassandra/values.yaml @@ -0,0 +1,174 @@ +## Global Docker image registry +## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value +## +# global: +# imageRegistry: + +## Bitnami Cassandra image version +## ref: https://hub.docker.com/r/bitnami/cassandra/tags/ +## +image: + registry: docker.io + repository: bitnami/cassandra + ## Bitnami Cassandra image tag + ## ref: https://github.com/bitnami/bitnami-docker-cassandra#supported-tags-and-respective-dockerfile-links + ## + tag: 3.11.3 + ## Specify a imagePullPolicy + ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images + ## + pullPolicy: Always + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + +## Specify a service type +## ref: http://kubernetes.io/docs/user-guide/services/ +service: + type: ClusterIP + cqlPort: 9042 + thriftPort: 9160 + ## Specify the nodePort value for the LoadBalancer and NodePort service types. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + # nodePort: 30001 + # loadBalancerIP: + + ## Provide any additional annotations which may be required. This can be used to + ## set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + +## Enable persistence using Persistent Volume Claims +## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ +## +persistence: + ## If true, use a Persistent Volume Claim, If false, use emptyDir + ## + enabled: true + ## Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) + ## + # storageClass: "-" + ## Persistent Volume Claim annotations + ## + annotations: + ## Persistent Volume Access Mode + ## + accessModes: + - ReadWriteOnce + ## Persistent Volume size + ## + size: 8Gi + ## + +## Configure resource requests and limits +## ref: http://kubernetes.io/docs/user-guide/compute-resources/ +## Minimum memory for development is 4GB and 2 CPU cores +## Minimum memory for production is 8GB and 4 CPU cores +## ref: http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/architecture/architecturePlanningHardware_c.html +resources: {} + # requests: + # memory: 4Gi + # cpu: 2 + # limits: + # memory: 4Gi + # cpu: 2 + +## Change cassandra configuration parameters below: +## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html +## Recommended max heap size is 1/2 of system memory +## Recommeneed heap new size is 1/4 of max heap size +## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html +cluster: + name: cassandra + replicaCount: 1 + seedCount: 1 + +dbUser: + user: cassandra + forcePassword: false + # password: + # existingSecret: + +## Liveness and Readiness probe values. +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ +livenessProbe: + enabled: true + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 5 +readinessProbe: + enabled: true + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 5 + +## Additional pod annotations +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +podAnnotations: {} + +## Additional pod labels +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +podLabels: {} + +statefulset: + updateStrategy: OnDelete + # rollingUpdatePartition: + +## Pod Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ +## +securityContext: + enabled: true + fsGroup: 1001 + runAsUser: 1001 + +## Affinity for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +affinity: {} + +## Tolerations for pod assignment +## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +## +tolerations: [] + +networkPolicy: + ## Specifies whether a NetworkPolicy should be created + ## + enabled: false + + ## The Policy model to apply. When set to false, only pods with the correct + ## client label will have network access to the port Redis is listening + ## on. When true, Redis will accept connections from any source + ## (with the correct destination port). + ## + # allowExternal: true + +## Cassandra exporter configuration +## ref: https://github.com/criteo/cassandra_exporter +metrics: + enabled: false + image: + registry: docker.io + pullPolicy: IfNotPresent + repository: criteo/cassandra_exporter + tag: 2.0.4 + # pullSecrets: + resources: {} + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "8080" From 85f320116bf9e946df23b16f6f988ae608f908ad Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 02:25:49 +0000 Subject: [PATCH 100/153] tomcat: update to `8.5.35` Signed-off-by: Bitnami Containers --- bitnami/tomcat/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/tomcat/values.yaml b/bitnami/tomcat/values.yaml index 7afd280924..07b1af21e1 100644 --- a/bitnami/tomcat/values.yaml +++ b/bitnami/tomcat/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/tomcat - tag: 8.5.34 + tag: 8.5.35 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From d3b547efaa63e2e69654891e52020cdce5c29ce1 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 02:25:49 +0000 Subject: [PATCH 101/153] tomcat: bump chart appVersion to `8.5.35` Signed-off-by: Bitnami Containers --- bitnami/tomcat/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/tomcat/Chart.yaml b/bitnami/tomcat/Chart.yaml index d3f28194ea..e1bd82d693 100644 --- a/bitnami/tomcat/Chart.yaml +++ b/bitnami/tomcat/Chart.yaml @@ -1,6 +1,6 @@ name: tomcat version: 1.1.1 -appVersion: 8.5.34 +appVersion: 8.5.35 description: Chart for Apache Tomcat keywords: - tomcat From 82420ba6e18212b81885e6a9cc17260f8c66375b Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 02:25:49 +0000 Subject: [PATCH 102/153] tomcat: bump chart version to `1.1.2` Signed-off-by: Bitnami Containers --- bitnami/tomcat/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/tomcat/Chart.yaml b/bitnami/tomcat/Chart.yaml index e1bd82d693..ecae624054 100644 --- a/bitnami/tomcat/Chart.yaml +++ b/bitnami/tomcat/Chart.yaml @@ -1,5 +1,5 @@ name: tomcat -version: 1.1.1 +version: 1.1.2 appVersion: 8.5.35 description: Chart for Apache Tomcat keywords: From e1f74fcc407038e70f54104d132574763613d82c Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 05:12:53 +0000 Subject: [PATCH 103/153] jenkins: update to `2.138.3` Signed-off-by: Bitnami Containers --- bitnami/jenkins/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index 80f650f027..c752015c12 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/jenkins - tag: 2.138.2 + tag: 2.138.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From a9a6cbf16031bfc3f47e6cddfa02fcfa3dcbf84e Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 05:12:53 +0000 Subject: [PATCH 104/153] jenkins: bump chart appVersion to `2.138.3` Signed-off-by: Bitnami Containers --- bitnami/jenkins/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index b3af210e7f..0a8f7c1b5e 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -1,6 +1,6 @@ name: jenkins version: 1.2.1 -appVersion: 2.138.2 +appVersion: 2.138.3 description: The leading open source automation server keywords: - jenkins From ac407007ee24470533f56b955d00dbad3307fef4 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 05:12:53 +0000 Subject: [PATCH 105/153] jenkins: bump chart version to `1.2.2` Signed-off-by: Bitnami Containers --- bitnami/jenkins/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index 0a8f7c1b5e..793d43484e 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -1,5 +1,5 @@ name: jenkins -version: 1.2.1 +version: 1.2.2 appVersion: 2.138.3 description: The leading open source automation server keywords: From f60d8fdf29b84f587b0f02d9ddf5c409608cde6f Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 9 Nov 2018 10:12:58 +0100 Subject: [PATCH 106/153] Fix cassandra metrics image template --- bitnami/cassandra/templates/_helpers.tpl | 2 +- bitnami/cassandra/templates/statefulset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/cassandra/templates/_helpers.tpl b/bitnami/cassandra/templates/_helpers.tpl index 4761c82e8a..09c676b8f7 100644 --- a/bitnami/cassandra/templates/_helpers.tpl +++ b/bitnami/cassandra/templates/_helpers.tpl @@ -69,7 +69,7 @@ Also, we can't use a single if because lazy evaluation is not an option {{/* Return the proper metrics image name */}} -{{- define "metrics.image" -}} +{{- define "cassandra.metrics.image" -}} {{- $registryName := .Values.metrics.image.registry -}} {{- $repositoryName := .Values.metrics.image.repository -}} {{- $tag := .Values.metrics.image.tag | toString -}} diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml index 2de8362cb0..61eb10ec70 100644 --- a/bitnami/cassandra/templates/statefulset.yaml +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -127,7 +127,7 @@ spec: {{- end }} {{- if .Values.metrics.enabled }} - name: metrics - image: {{ template "metrics.image" . }} + image: {{ template "cassandra.metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} {{- if .Values.metrics.image.pullSecrets }} imagePullSecrets: From d6f8de5393dc0f65918e6de606849c2f07f1cb51 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 9 Nov 2018 11:32:10 +0100 Subject: [PATCH 107/153] Fix service missing end --- bitnami/cassandra/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/cassandra/templates/service.yaml b/bitnami/cassandra/templates/service.yaml index 1b1f66d0f1..365d04f4af 100644 --- a/bitnami/cassandra/templates/service.yaml +++ b/bitnami/cassandra/templates/service.yaml @@ -13,7 +13,7 @@ spec: {{- end }} {{ if eq .Values.service.type "LoadBalancer" -}} {{ if .Values.service.loadBalancerIP -}} loadBalancerIP: {{ .Values.service.loadBalancerIP }} -{{ end -}} +{{- end -}} {{- end }} type: {{ .Values.service.type }} ports: - name: cql From 4d8aa5ce52225f732a46ab58ee8b9ccecc438339 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Fri, 9 Nov 2018 10:36:35 +0000 Subject: [PATCH 108/153] Synchronize upstreamed folder to b1036550c --- upstreamed/kubewatch/Chart.yaml | 2 +- upstreamed/kubewatch/OWNERS | 10 +++++- .../kubewatch/templates/deployment.yaml | 1 + upstreamed/mongodb/Chart.yaml | 2 +- .../templates/statefulset-primary-rs.yaml | 2 +- upstreamed/nats/Chart.yaml | 2 +- upstreamed/nats/README.md | 9 ++++++ upstreamed/nats/templates/_helpers.tpl | 10 ++++++ upstreamed/nats/templates/statefulset.yaml | 32 +++++++++++++++++-- upstreamed/nats/values-production.yaml | 24 ++++++++++++++ upstreamed/nats/values.yaml | 24 ++++++++++++++ upstreamed/postgresql/Chart.yaml | 2 +- .../templates/metrics-deployment.yaml | 5 +++ .../templates/statefulset-slaves.yaml | 9 +++++- .../postgresql/templates/statefulset.yaml | 9 +++++- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/values-production.yaml | 6 ++-- upstreamed/redis/values.yaml | 6 ++-- 18 files changed, 140 insertions(+), 17 deletions(-) diff --git a/upstreamed/kubewatch/Chart.yaml b/upstreamed/kubewatch/Chart.yaml index 8ae870ec5f..35e38308e1 100644 --- a/upstreamed/kubewatch/Chart.yaml +++ b/upstreamed/kubewatch/Chart.yaml @@ -1,5 +1,5 @@ name: kubewatch -version: 0.5.0 +version: 0.5.2 apiVersion: v1 appVersion: v0.0.4 home: https://github.com/bitnami-labs/kubewatch diff --git a/upstreamed/kubewatch/OWNERS b/upstreamed/kubewatch/OWNERS index 0db6eaa01e..18436629fd 100644 --- a/upstreamed/kubewatch/OWNERS +++ b/upstreamed/kubewatch/OWNERS @@ -1,6 +1,14 @@ approvers: - compleatang +- prydonius - tompizmor +- sameersbn +- carrodher +- juan131 reviewers: - compleatang -- tompizmor \ No newline at end of file +- prydonius +- tompizmor +- sameersbn +- carrodher +- juan131 diff --git a/upstreamed/kubewatch/templates/deployment.yaml b/upstreamed/kubewatch/templates/deployment.yaml index e7f9ebef21..d95be86220 100644 --- a/upstreamed/kubewatch/templates/deployment.yaml +++ b/upstreamed/kubewatch/templates/deployment.yaml @@ -23,6 +23,7 @@ spec: labels: app: {{ template "kubewatch.name" . }} release: "{{ .Release.Name }}" + chart: {{ template "kubewatch.chart" . }} {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 4035c9fe11..9a2eb78b37 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.8.2 +version: 4.8.3 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml index 9eb948e907..74bb2088f1 100644 --- a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml @@ -77,7 +77,7 @@ spec: - name: MONGODB_DATABASE value: {{ .Values.mongodbDatabase | quote }} {{- if .Values.usePassword }} - {{- if .Values.mongodbPassword }} + {{- if or .Values.mongodbPassword .Values.existingSecret }} - name: MONGODB_PASSWORD valueFrom: secretKeyRef: diff --git a/upstreamed/nats/Chart.yaml b/upstreamed/nats/Chart.yaml index 1abbb2ddab..906f96d13f 100644 --- a/upstreamed/nats/Chart.yaml +++ b/upstreamed/nats/Chart.yaml @@ -1,5 +1,5 @@ name: nats -version: 1.1.2 +version: 1.2.0 appVersion: 1.3.0 description: An open-source, cloud-native messaging system keywords: diff --git a/upstreamed/nats/README.md b/upstreamed/nats/README.md index cdfadead1b..37f57ec30c 100644 --- a/upstreamed/nats/README.md +++ b/upstreamed/nats/README.md @@ -118,6 +118,15 @@ The following table lists the configurable parameters of the NATS chart and thei | `networkPolicy.enabled` | Enable NetworkPolicy | `false` | | `networkPolicy.allowExternal` | Allow external connections | `true` | | `sidecars` | Attach additional containers to the pod. | `nil` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | MongoDB exporter image registry | `docker.io` | +| `metrics.image.repository` | MongoDB exporter image name | `appcelerator/prometheus-nats-exporter` | +| `metrics.image.tag` | MongoDB exporter image tag | `0.17.0` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | {} | +| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | + Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/upstreamed/nats/templates/_helpers.tpl b/upstreamed/nats/templates/_helpers.tpl index 26300acf19..ef93757d98 100644 --- a/upstreamed/nats/templates/_helpers.tpl +++ b/upstreamed/nats/templates/_helpers.tpl @@ -61,3 +61,13 @@ Return the appropriate apiVersion for networkpolicy. {{- print "networking.k8s.io/v1" -}} {{- end -}} {{- end -}} + +{{/* +Return the proper image name (for the metrics image) +*/}} +{{- define "metrics.image" -}} +{{- $registryName := .Values.metrics.image.registry -}} +{{- $repositoryName := .Values.metrics.image.repository -}} +{{- $tag := .Values.metrics.image.tag | toString -}} +{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} +{{- end -}} diff --git a/upstreamed/nats/templates/statefulset.yaml b/upstreamed/nats/templates/statefulset.yaml index cb0811e71e..503aec47ad 100644 --- a/upstreamed/nats/templates/statefulset.yaml +++ b/upstreamed/nats/templates/statefulset.yaml @@ -29,10 +29,15 @@ spec: {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} - {{- if .Values.podAnnotations }} +{{- if or .Values.podAnnotations .Values.metrics.enabled }} annotations: +{{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} - {{- end }} +{{- end }} +{{- if .Values.metrics.podAnnotations }} +{{ toYaml .Values.metrics.podAnnotations | indent 8 }} +{{- end }} +{{- end }} spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: @@ -122,6 +127,29 @@ spec: {{- if .Values.sidecars }} {{ toYaml .Values.sidecars | indent 6 }} {{- end }} +{{- if .Values.metrics.enabled }} + - name: metrics + image: {{ template "metrics.image" . }} + imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} + command: [ '/prometheus-nats-exporter', '-varz', 'http://localhost:{{ .Values.monitoringService.port }}' ] + ports: + - name: metrics + containerPort: 7777 + livenessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 15 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /metrics + port: metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + {{ toYaml .Values.metrics.resources | indent 10 }} +{{- end }} volumes: - name: config configMap: diff --git a/upstreamed/nats/values-production.yaml b/upstreamed/nats/values-production.yaml index 3d13b0f31f..3952144f4a 100644 --- a/upstreamed/nats/values-production.yaml +++ b/upstreamed/nats/values-production.yaml @@ -255,3 +255,27 @@ sidecars: # ports: # - name: portname # containerPort: 1234 + +## Prometheus Exporter / Metrics +## +metrics: + enabled: true + image: + registry: docker.io + repository: appcelerator/prometheus-nats-exporter + tag: 0.17.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} + ## Metrics exporter pod Annotation + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "7777" diff --git a/upstreamed/nats/values.yaml b/upstreamed/nats/values.yaml index 6d0bf31c44..cd7ec5ac06 100644 --- a/upstreamed/nats/values.yaml +++ b/upstreamed/nats/values.yaml @@ -259,3 +259,27 @@ sidecars: # ports: # - name: portname # containerPort: 1234 + +## Prometheus Exporter / Metrics +## +metrics: + enabled: false + image: + registry: docker.io + repository: appcelerator/prometheus-nats-exporter + tag: 0.17.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} + ## Metrics exporter pod Annotation + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "7777" diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 055909a6f0..5268740269 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.3.1 +version: 2.3.3 appVersion: 10.5.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/templates/metrics-deployment.yaml b/upstreamed/postgresql/templates/metrics-deployment.yaml index 7bbe0da45e..fb6e0d9d96 100644 --- a/upstreamed/postgresql/templates/metrics-deployment.yaml +++ b/upstreamed/postgresql/templates/metrics-deployment.yaml @@ -9,6 +9,11 @@ metadata: release: {{ .Release.Name | quote}} heritage: {{ .Release.Service | quote }} spec: + selector: + matchLabels: + release: {{ .Release.Name | quote }} + app: {{ template "postgresql.name" . }} + role: metrics template: metadata: labels: diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml index 37d527a3f6..051e451865 100644 --- a/upstreamed/postgresql/templates/statefulset-slaves.yaml +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -52,7 +52,14 @@ spec: - name: init-chmod-data image: {{ template "postgresql.volumePermissions.image" . }} imagePullPolicy: "{{ .Values.volumePermissions.image.pullPolicy }}" - command: ['sh' , '-c' , 'if [ -d /bitnami/postgresql/data ]; then chmod 0700 /bitnami/postgresql/data; fi'] + command: + - sh + - -c + - | + chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} /bitnami + if [ -d /bitnami/postgresql/data ]; then + chmod 0700 /bitnami/postgresql/data; + fi securityContext: runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }} volumeMounts: diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml index d2845652d9..45445a1757 100644 --- a/upstreamed/postgresql/templates/statefulset.yaml +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -54,7 +54,14 @@ spec: - name: init-chmod-data image: {{ template "postgresql.volumePermissions.image" . }} imagePullPolicy: "{{ .Values.volumePermissions.image.pullPolicy }}" - command: ['sh' , '-c' , 'if [ -d /bitnami/postgresql/data ]; then chmod 0700 /bitnami/postgresql/data; fi'] + command: + - sh + - -c + - | + chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} /bitnami + if [ -d /bitnami/postgresql/data ]; then + chmod 0700 /bitnami/postgresql/data; + fi securityContext: runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }} volumeMounts: diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index fcde120e85..a30a870856 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.7 +version: 4.2.8 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/values-production.yaml b/upstreamed/redis/values-production.yaml index d067e4f25d..94d56e4f76 100644 --- a/upstreamed/redis/values-production.yaml +++ b/upstreamed/redis/values-production.yaml @@ -315,9 +315,9 @@ metrics: ## Use serviceLoadBalancerIP to request a specific static IP, ## otherwise leave blank # loadBalancerIP: - annotations: {} - # prometheus.io/scrape: "true" - # prometheus.io/port: "9121" + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9121" ## Metrics exporter resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index e0b81c5d27..f0ee04db25 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -315,9 +315,9 @@ metrics: ## Use serviceLoadBalancerIP to request a specific static IP, ## otherwise leave blank # loadBalancerIP: - annotations: {} - # prometheus.io/scrape: "true" - # prometheus.io/port: "9121" + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "9121" ## Metrics exporter resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ From 69b61f8afb75f6916044ba88af57fb60b51ba216 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 9 Nov 2018 12:21:44 +0100 Subject: [PATCH 109/153] Fix network policies --- bitnami/cassandra/templates/_helpers.tpl | 11 +++++++++++ bitnami/cassandra/values-production.yaml | 2 +- bitnami/cassandra/values.yaml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bitnami/cassandra/templates/_helpers.tpl b/bitnami/cassandra/templates/_helpers.tpl index 09c676b8f7..9769bb7760 100644 --- a/bitnami/cassandra/templates/_helpers.tpl +++ b/bitnami/cassandra/templates/_helpers.tpl @@ -6,6 +6,17 @@ Expand the name of the chart. {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{/* +Return the appropriate apiVersion for networkpolicy. +*/}} +{{- define "networkPolicy.apiVersion" -}} +{{- if semverCompare ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.GitVersion -}} +{{- print "extensions/v1beta1" -}} +{{- else -}} +{{- print "networking.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + {{/* Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). diff --git a/bitnami/cassandra/values-production.yaml b/bitnami/cassandra/values-production.yaml index 1f8afcba16..5a5983bc60 100644 --- a/bitnami/cassandra/values-production.yaml +++ b/bitnami/cassandra/values-production.yaml @@ -165,7 +165,7 @@ metrics: image: registry: docker.io pullPolicy: IfNotPresent - repository: criteo/cassandra_exporter + repository: criteord/cassandra_exporter tag: 2.0.4 # pullSecrets: resources: {} diff --git a/bitnami/cassandra/values.yaml b/bitnami/cassandra/values.yaml index 00df01a56b..49320b8bc3 100644 --- a/bitnami/cassandra/values.yaml +++ b/bitnami/cassandra/values.yaml @@ -165,7 +165,7 @@ metrics: image: registry: docker.io pullPolicy: IfNotPresent - repository: criteo/cassandra_exporter + repository: criteord/cassandra_exporter tag: 2.0.4 # pullSecrets: resources: {} From e7d644f07896b77a7d845102525b4203dc0a1a0b Mon Sep 17 00:00:00 2001 From: juan131 Date: Fri, 9 Nov 2018 12:42:10 +0100 Subject: [PATCH 110/153] [bitnami/node] Allow using extra env. variables --- bitnami/node/Chart.yaml | 2 +- bitnami/node/README.md | 3 ++- bitnami/node/templates/deployment.yaml | 3 +++ bitnami/node/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index 38a83068a9..b08eb00b73 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,5 +1,5 @@ name: node -version: 6.2.3 +version: 6.3.0 appVersion: 8.12.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: diff --git a/bitnami/node/README.md b/bitnami/node/README.md index cca472bae6..eafb2f1661 100644 --- a/bitnami/node/README.md +++ b/bitnami/node/README.md @@ -58,13 +58,14 @@ The following table lists the configurable parameters of the Node chart and thei | `image.pullPolicy` | NodeJS image pull policy | `IfNotPresent` | | `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | | `git.registry` | Git image registry | `docker.io` | -| `git.repository` | Git image name | `bitnami/git` | +| `git.repository` | Git image name | `bitnami/git` | | `git.tag` | Git image tag | `latest` | | `git.pullPolicy` | Git image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | | `repository` | Repo of the application | `https://github.com/bitnami/sample-mean.git` | | `revision` | Revision to checkout | `master` | | `replicas` | Number of replicas for the application | `1` | | `applicationPort` | Port where the application will be running | `3000` | +| `extraEnv` | Any extra environment variables to be pass to the pods | `{}` | | `service.type` | Kubernetes Service type | `ClusterIP` | | `service.port` | Kubernetes Service port | `80` | | `service.annotations` | Annotations for the Service | {} | diff --git a/bitnami/node/templates/deployment.yaml b/bitnami/node/templates/deployment.yaml index 02d619bf67..4dc68518ca 100644 --- a/bitnami/node/templates/deployment.yaml +++ b/bitnami/node/templates/deployment.yaml @@ -106,6 +106,9 @@ spec: {{- end }} - name: DATA_FOLDER value: "/app" +{{- if .Values.extraEnv }} +{{ toYaml .Values.extraEnv | indent 8 }} +{{- end }} workingDir: /app command: ['/bin/bash', '-c', 'useradd bitnami && su bitnami -c "PATH=/opt/bitnami/node/bin:$PATH npm start"'] ports: diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index 7594330899..83b83fdfc3 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -45,6 +45,9 @@ replicas: 1 ## applicationPort: 3000 +# Define custom environment variables to pass to the image here +extraEnv: {} + ## Kubernetes Service Configuration service: ## For minikube, set this to NodePort, elsewhere use LoadBalancer From 7eb33a1ffc6430fd5ae025e9b5a5c4b5ddfb24e0 Mon Sep 17 00:00:00 2001 From: juan131 Date: Fri, 9 Nov 2018 12:54:21 +0100 Subject: [PATCH 111/153] Add reference to Git tags --- bitnami/node/values.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index 83b83fdfc3..427fb04b64 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -23,6 +23,9 @@ image: # pullSecrets: # - myRegistrKeySecretName +## Bitnami git image version +## ref: https://hub.docker.com/r/bitnami/git/tags/ +## git: registry: docker.io repository: bitnami/git @@ -41,7 +44,7 @@ revision: master ## replicas: 1 -## Specify the port where your applucation will be running +## Specify the port where your application will be running ## applicationPort: 3000 From 065ed7cf83a733903080e85925ea8bb9555f65f7 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 9 Nov 2018 15:39:29 +0100 Subject: [PATCH 112/153] Apply all requested changes --- bitnami/cassandra/Chart.yaml | 2 +- bitnami/cassandra/README.md | 40 +++++++++---------- bitnami/cassandra/templates/NOTES.txt | 22 +++++----- bitnami/cassandra/templates/_helpers.tpl | 11 ----- .../cassandra/templates/cassandra-secret.yaml | 10 ++--- bitnami/cassandra/templates/headless-svc.yaml | 8 ++-- .../cassandra/templates/networkPolicy.yaml | 14 ++++--- bitnami/cassandra/templates/service.yaml | 4 +- bitnami/cassandra/templates/statefulset.yaml | 2 +- bitnami/cassandra/values-production.yaml | 26 ++++++++---- bitnami/cassandra/values.yaml | 24 +++++++---- 11 files changed, 88 insertions(+), 75 deletions(-) diff --git a/bitnami/cassandra/Chart.yaml b/bitnami/cassandra/Chart.yaml index dbc19bc05e..fcdd7607ad 100644 --- a/bitnami/cassandra/Chart.yaml +++ b/bitnami/cassandra/Chart.yaml @@ -1,5 +1,5 @@ name: cassandra -version: 1.0.0 +version: 0.0.1 appVersion: 3.11.3 description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients. icon: https://d33np9n32j53g7.cloudfront.net/assets/stacks/cassandra/img/cassandra-stack-220x234-071ca9e210d165c3972d41ff9f96bd60.png diff --git a/bitnami/cassandra/README.md b/bitnami/cassandra/README.md index cdc1e821be..977186af65 100644 --- a/bitnami/cassandra/README.md +++ b/bitnami/cassandra/README.md @@ -5,7 +5,8 @@ ## TL;DR; ```console -$ helm install . +$ helm repo add bitnami https://charts.bitnami.com/bitnami +$ helm install bitnami/cassandra ``` ## Introduction @@ -24,7 +25,7 @@ Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment To install the chart with the release name `my-release`: ```console -$ helm install --name my-release ./cassandra +$ helm install --name my-release bitnami/cassandra ``` The command deploys one node with Cassandra on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. @@ -33,7 +34,7 @@ The command deploys one node with Cassandra on the Kubernetes cluster in the def ## Uninstalling the Chart -To uninstall/delete the `my-release` petset: +To uninstall/delete the `my-release` release: ```console $ helm delete my-release @@ -47,29 +48,29 @@ The following tables lists the configurable parameters of the cassandra chart an | Parameter | Description | Default | |--------------------------------------------|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | +| `global.imageRegistry` | Global Docker Image registry | `nil` | | `image.registry` | Cassandra Image registry | `docker.io` | | `image.repository` | Cassandra Image name | `bitnami/cassandra` | -| `image.tag` | Cassandra Image tag | `3.11.3` | +| `image.tag` | Cassandra Image tag | `{VERSION}` | | `image.pullPolicy` | Image pull policy | `Always` | -| `image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `image.pullSecrets` | Specify `docker-registry` secret names as an array | `nil` | | `service.type` | Kubernetes Service type | `ClusterIP` | | `service.nodePort` | Kubernetes Service nodePort | `nil` | | `service.loadBalancerIP` | LoadBalancerIP if service type is `LoadBalancer` | `nil` | | `service.annotations` | Annotations for the service | {} | | `persistence.enabled` | Use PVCs to persist data | `true` | -| `persistence.storageClass` | Storage class of backing PVC | `generic` | -| `persistence.annotations` | Annotations for the PVC | {} | +| `persistence.storageClass` | Persistent Volume Storage Class | `generic` | +| `persistence.annotations` | Persistent Volume Claim annotations Annotations | {} | | `persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` | -| `persistence.size` | Size of data volume | `8Gi` | +| `persistence.size` | Persistent Volume Size | `8Gi` | | `resources` | CPU/Memory resource requests/limits | `{}` | | `cluster.name` | Cassandra cluster name | `cassandra` | -| `cluster.replicaCount` | Number of cassandra nodes | `1` | +| `cluster.replicaCount` | Number of Cassandra nodes | `1` | | `cluster.seedCount` | Number of seed nodes (note: must be greater or equal than 1 and less or equal to `cluster.replicaCount`) | `1` | | `dbUser.user` | Cassandra admin user | `cassandra` | | `dbUser.forcePassword` | Force the user to provide a non-empty password for `dbUser.user` | `false` | | `dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | (Random generated) | -| `dbUser.existingSecret` | Use an existing secret object for `dbUser.user` password (will ignore `dbUser.password`) | `` | +| `dbUser.existingSecret` | Use an existing secret object for `dbUser.user` password (will ignore `dbUser.password`) | `nil` | | `livenessProbe.enabled` | Turn on and off liveness probe | `true` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | | `livenessProbe.periodSeconds` | How often to perform the probe | `30` | @@ -85,7 +86,7 @@ The following tables lists the configurable parameters of the cassandra chart an | `podAnnotations` | Additional pod annotations | `{}` | | `podLabels` | Additional pod labels | `{}` | | `statefulset.updateStrategy` | Update strategy for StatefulSet | onDelete | -| `statefulset.rollingUpdatePartition` | Partition update strategy | `` | +| `statefulset.rollingUpdatePartition` | Partition update strategy | `nil` | | `securityContext.enabled` | Enable security context | `true` | | `securityContext.fsGroup` | Group ID for the container | `1001` | | `securityContext.runAsUser` | User ID for the container | `1001` | @@ -94,11 +95,11 @@ The following tables lists the configurable parameters of the cassandra chart an | `networkPolicy.enabled` | Enable NetworkPolicy | `false` | | `networkPolicy.allowExternal` | Don't require client label for connections | `true` | | `metrics.enabled` | Start a side-car prometheus exporter | `false` | -| `metrics.image.registry` | Cassandra exporter image registry | `docker.io` | -| `metrics.image.repository` | Cassandra exporter image name | `criteo/cassandra_exporter` | -| `metrics.image.tag` | Cassandra exporter image tag | `2.0.4` | +| `metrics.image.registry` | Cassandra exporter Image registry | `docker.io` | +| `metrics.image.repository` | Cassandra exporter Image name | `criteo/cassandra_exporter` | +| `metrics.image.tag` | Cassandra exporter Image tag | `2.0.4` | | `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.image.pullSecrets` | Specify `docker-registry` secret names as an array | `nil` | | `metrics.podAnnotations` | Additional annotations for Metrics exporter | `{prometheus.io/scrape: "true", prometheus.io/port: "8080"}` | | `metrics.resources` | Exporter resource requests/limit | `{}` | @@ -108,15 +109,14 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm ```console $ helm install --name my-release \ - --set cassandraUser=admin,cassandraPassword=password\ - ./cassandra + --set dbUser.user=admin,dbUser.password=password\ + bitnami/cassandra ``` - Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, ```console -$ helm install --name my-release -f values.yaml ./cassandra +$ helm install --name my-release -f values.yaml bitnami/cassandra ``` > **Tip**: You can use the default [values.yaml](values.yaml) diff --git a/bitnami/cassandra/templates/NOTES.txt b/bitnami/cassandra/templates/NOTES.txt index 1e79d5d590..688189e7ac 100644 --- a/bitnami/cassandra/templates/NOTES.txt +++ b/bitnami/cassandra/templates/NOTES.txt @@ -1,17 +1,17 @@ ** Please be patient while the chart is being deployed ** -Cassandra can be accessed through the following urls from within the cluster: +Cassandra can be accessed through the following URLs from within the cluster: - CQL: {{ template "cassandra.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.cqlPort }} - Thrift: {{ template "cassandra.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.thriftPort }} To get your password run: - export CASSANDRA_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "cassandra.fullname" . }} -o jsonpath="{.data.cassandra-password}" | base64 --decode) + export CASSANDRA_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "cassandra.fullname" . }} -o jsonpath="{.data.cassandra-password}" | base64 --decode) Check the cluster status by running: - kubectl exec -it --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "cassandra.name" . }},release={{ .Release.Name }} -o jsonpath='{.items[0].metadata.name}') nodetool status + kubectl exec -it --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "cassandra.name" . }},release={{ .Release.Name }} -o jsonpath='{.items[0].metadata.name}') nodetool status To connect to your Cassandra cluster using CQL: @@ -19,7 +19,7 @@ To connect to your Cassandra cluster using CQL: kubectl run --namespace {{ .Release.Namespace }} {{ template "cassandra.fullname" . }}-client --rm --tty -i \ --env CASSANDRA_PASSWORD=$CASSANDRA_PASSWORD \ - {{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }}--labels="{{ template "cassandra.name" . }}-client=true" \{{- end }} \ + {{ if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }}--labels="{{ template "cassandra.name" . }}-client=true"{{ end }} \ --image {{ template "cassandra.image" . }} -- bash 2. Connect using the cqlsh client: @@ -36,23 +36,23 @@ To connect to your database from outside the cluster execute the following comma {{- if contains "NodePort" .Values.service.type }} - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "cassandra.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "cassandra.fullname" . }}) cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD $NODE_IP $NODE_PORT {{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "redis.fullname" . }}' + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "redis.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "redis.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "redis.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD $SERVICE_IP {{- else if contains "ClusterIP" .Values.service.type }} - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "cassandra.fullname" . }} {{ .Values.service.cqlPort }}:{{ .Values.service.cqlPort }} & - cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD 127.0.0.1 {{ .Values.service.cqlPort }} + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "cassandra.fullname" . }} {{ .Values.service.cqlPort }}:{{ .Values.service.cqlPort }} & + cqlsh -u {{ .Values.dbUser.user }} -p $CASSANDRA_PASSWORD 127.0.0.1 {{ .Values.service.cqlPort }} {{- end }} {{- end }} diff --git a/bitnami/cassandra/templates/_helpers.tpl b/bitnami/cassandra/templates/_helpers.tpl index 9769bb7760..c4bfbbce4f 100644 --- a/bitnami/cassandra/templates/_helpers.tpl +++ b/bitnami/cassandra/templates/_helpers.tpl @@ -42,17 +42,6 @@ Create chart name and version as used by the chart label. {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{/* -Create the name of the service account to use -*/}} -{{- define "cassandra.serviceAccountName" -}} -{{- if .Values.serviceAccount.create -}} - {{ default (include "cassandra.fullname" .) .Values.serviceAccount.name }} -{{- else -}} - {{ default "default" .Values.serviceAccount.name }} -{{- end -}} -{{- end -}} - {{/* Return the proper Cassandra image name */}} diff --git a/bitnami/cassandra/templates/cassandra-secret.yaml b/bitnami/cassandra/templates/cassandra-secret.yaml index b481e961d2..b7904437c1 100644 --- a/bitnami/cassandra/templates/cassandra-secret.yaml +++ b/bitnami/cassandra/templates/cassandra-secret.yaml @@ -4,16 +4,16 @@ kind: Secret metadata: name: {{ template "cassandra.fullname" . }} labels: - app: "{{ template "cassandra.name" . }}" + app: {{ template "cassandra.name" . }} chart: {{ template "cassandra.chart" . }} - release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} type: Opaque data: {{- if .Values.dbUser.password }} - cassandra-password: "{{ .Values.dbUser.password | b64enc }}" + cassandra-password: {{ .Values.dbUser.password | b64enc | quote }} {{- else if (not .Values.dbUser.forcePassword) }} - cassandra-password: "{{ randAlphaNum 10 | b64enc }}" + cassandra-password: {{ randAlphaNum 10 | b64enc | quote }} {{ else }} cassandra-password: {{ required "A Cassandra Password is required!" .Values.dbUser.password }} {{- end }} diff --git a/bitnami/cassandra/templates/headless-svc.yaml b/bitnami/cassandra/templates/headless-svc.yaml index 7d5a6be8ca..f3acf742bb 100644 --- a/bitnami/cassandra/templates/headless-svc.yaml +++ b/bitnami/cassandra/templates/headless-svc.yaml @@ -5,8 +5,8 @@ metadata: labels: app: {{ template "cassandra.name" . }} chart: {{ template "cassandra.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} spec: clusterIP: None publishNotReadyAddresses: true @@ -21,10 +21,10 @@ spec: port: 7199 targetPort: jmx - name: cql - port: {{ default 9042 .Values.service.cqlPort }} + port: {{ .Values.service.cqlPort }} targetPort: cql - name: thrift - port: {{ default 9160 .Values.service.thriftPort }} + port: {{ .Values.service.thriftPort }} targetPort: thrift selector: app: {{ template "cassandra.name" . }} diff --git a/bitnami/cassandra/templates/networkPolicy.yaml b/bitnami/cassandra/templates/networkPolicy.yaml index 5eaf1bb8b5..7d68fda287 100644 --- a/bitnami/cassandra/templates/networkPolicy.yaml +++ b/bitnami/cassandra/templates/networkPolicy.yaml @@ -2,27 +2,31 @@ kind: NetworkPolicy apiVersion: {{ template "networkPolicy.apiVersion" . }} metadata: - name: "{{ template "cassandra.fullname" . }}" + name: {{ template "cassandra.fullname" . }} labels: app: {{ template "cassandra.name" . }} chart: {{ template "cassandra.chart" . }} - release: "{{ .Release.Name }}" - heritage: "{{ .Release.Service }}" + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} spec: podSelector: matchLabels: app: {{ template "cassandra.name" . }} - release: "{{ .Release.Name }}" + release: {{ .Release.Name }} ingress: # Allow inbound connections - ports: - - port: 6379 + - port: {{ .Values.service.cqlPort }} {{- if not .Values.networkPolicy.allowExternal }} from: - podSelector: matchLabels: {{ template "cassandra.fullname" . }}-client: "true" {{- end }} + - podSelector: + matchLabels: + app: {{ template "cassandra.name" . }} + release: {{ .Release.Name }} {{- if .Values.metrics.enabled }} # Allow prometheus scrapes for metrics - ports: diff --git a/bitnami/cassandra/templates/service.yaml b/bitnami/cassandra/templates/service.yaml index 365d04f4af..c2bd4d9dd6 100644 --- a/bitnami/cassandra/templates/service.yaml +++ b/bitnami/cassandra/templates/service.yaml @@ -17,10 +17,10 @@ spec: type: {{ .Values.service.type }} ports: - name: cql - port: {{ default 9042 .Values.service.cqlPort }} + port: {{ .Values.service.cqlPort }} targetPort: cql - name: thrift - port: {{ default 9160 .Values.service.thriftPort }} + port: {{ .Values.service.thriftPort }} targetPort: thrift selector: app: {{ template "cassandra.name" . }} diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml index 61eb10ec70..6434487757 100644 --- a/bitnami/cassandra/templates/statefulset.yaml +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -178,7 +178,7 @@ spec: {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} - storageClassName: "{{ .Values.persistence.storageClass }}" + storageClassName: {{ .Values.persistence.storageClass | quote }} {{- end }} {{- end }} {{- end }} diff --git a/bitnami/cassandra/values-production.yaml b/bitnami/cassandra/values-production.yaml index 5a5983bc60..9f0e30c77a 100644 --- a/bitnami/cassandra/values-production.yaml +++ b/bitnami/cassandra/values-production.yaml @@ -28,6 +28,7 @@ image: ## Specify a service type ## ref: http://kubernetes.io/docs/user-guide/services/ +## service: type: ClusterIP cqlPort: 9042 @@ -69,13 +70,13 @@ persistence: ## Persistent Volume size ## size: 8Gi - ## ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## Minimum memory for development is 4GB and 2 CPU cores ## Minimum memory for production is 8GB and 4 CPU cores ## ref: http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/architecture/architecturePlanningHardware_c.html +## resources: {} # requests: # memory: 4Gi @@ -84,24 +85,24 @@ resources: {} # memory: 4Gi # cpu: 2 -## Change cassandra configuration parameters below: -## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html -## Recommended max heap size is 1/2 of system memory -## Recommeneed heap new size is 1/4 of max heap size -## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html +## Cluster parameters +## cluster: name: cassandra replicaCount: 3 seedCount: 2 +## Database credentials +## dbUser: user: cassandra - forcePassword: false + forcePassword: true # password: # existingSecret: ## Liveness and Readiness probe values. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ +## livenessProbe: enabled: true initialDelaySeconds: 60 @@ -119,12 +120,16 @@ readinessProbe: ## Additional pod annotations ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## podAnnotations: {} ## Additional pod labels ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +## podLabels: {} +## StatefulSet settings +## statefulset: updateStrategy: OnDelete # rollingUpdatePartition: @@ -139,6 +144,7 @@ securityContext: ## Affinity for pod assignment ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +## affinity: {} ## Tolerations for pod assignment @@ -146,6 +152,9 @@ affinity: {} ## tolerations: [] +## Network policies +## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ +## networkPolicy: ## Specifies whether a NetworkPolicy should be created ## @@ -159,7 +168,8 @@ networkPolicy: # allowExternal: true ## Cassandra exporter configuration -## ref: https://github.com/criteo/cassandra_exporter +## Ref: https://github.com/criteo/cassandra_exporter +## metrics: enabled: true image: diff --git a/bitnami/cassandra/values.yaml b/bitnami/cassandra/values.yaml index 49320b8bc3..2e5106398a 100644 --- a/bitnami/cassandra/values.yaml +++ b/bitnami/cassandra/values.yaml @@ -28,6 +28,7 @@ image: ## Specify a service type ## ref: http://kubernetes.io/docs/user-guide/services/ +## service: type: ClusterIP cqlPort: 9042 @@ -69,13 +70,13 @@ persistence: ## Persistent Volume size ## size: 8Gi - ## ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## Minimum memory for development is 4GB and 2 CPU cores ## Minimum memory for production is 8GB and 4 CPU cores ## ref: http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/architecture/architecturePlanningHardware_c.html +## resources: {} # requests: # memory: 4Gi @@ -84,16 +85,15 @@ resources: {} # memory: 4Gi # cpu: 2 -## Change cassandra configuration parameters below: -## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html -## Recommended max heap size is 1/2 of system memory -## Recommeneed heap new size is 1/4 of max heap size -## ref: http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html +## Cluster parameters +## cluster: name: cassandra replicaCount: 1 seedCount: 1 +## Database credentials +## dbUser: user: cassandra forcePassword: false @@ -102,6 +102,7 @@ dbUser: ## Liveness and Readiness probe values. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ +## livenessProbe: enabled: true initialDelaySeconds: 60 @@ -119,12 +120,16 @@ readinessProbe: ## Additional pod annotations ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## podAnnotations: {} ## Additional pod labels ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +## podLabels: {} +## StatefulSet settings +## statefulset: updateStrategy: OnDelete # rollingUpdatePartition: @@ -139,6 +144,7 @@ securityContext: ## Affinity for pod assignment ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +## affinity: {} ## Tolerations for pod assignment @@ -146,6 +152,9 @@ affinity: {} ## tolerations: [] +## Network policies +## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ +## networkPolicy: ## Specifies whether a NetworkPolicy should be created ## @@ -159,7 +168,8 @@ networkPolicy: # allowExternal: true ## Cassandra exporter configuration -## ref: https://github.com/criteo/cassandra_exporter +## Ref: https://github.com/criteo/cassandra_exporter +## metrics: enabled: false image: From ed2b3f7fef88b5063cf0980afa86195678546683 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 9 Nov 2018 16:55:21 +0100 Subject: [PATCH 113/153] Typo --- bitnami/cassandra/templates/NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/cassandra/templates/NOTES.txt b/bitnami/cassandra/templates/NOTES.txt index 688189e7ac..46a6629611 100644 --- a/bitnami/cassandra/templates/NOTES.txt +++ b/bitnami/cassandra/templates/NOTES.txt @@ -28,7 +28,7 @@ To connect to your Cassandra cluster using CQL: {{ if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} Note: Since NetworkPolicy is enabled, only pods with label -{{ template "cassandra.fullname" . }}-client=true" +"{{ template "cassandra.fullname" . }}-client=true" will be able to connect to Cassandra. {{- else -}} From 67fbfc93110ccf8c1453f4ce0946c411241496bc Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 23:03:53 +0000 Subject: [PATCH 114/153] kafka: update to `2.0.1` Signed-off-by: Bitnami Containers --- bitnami/kafka/values-production.yaml | 2 +- bitnami/kafka/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/kafka/values-production.yaml b/bitnami/kafka/values-production.yaml index 04a823fd7f..657d3953e1 100644 --- a/bitnami/kafka/values-production.yaml +++ b/bitnami/kafka/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/kafka - tag: 2.0.0 + tag: 2.0.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/kafka/values.yaml b/bitnami/kafka/values.yaml index 1dd92c803c..dfff300cf7 100644 --- a/bitnami/kafka/values.yaml +++ b/bitnami/kafka/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/kafka - tag: 2.0.0 + tag: 2.0.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 65becb5dd47aa8138419bfa8ffa50431d8c63d4b Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 23:03:56 +0000 Subject: [PATCH 115/153] kafka: bump chart appVersion to `2.0.1` Signed-off-by: Bitnami Containers --- bitnami/kafka/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/kafka/Chart.yaml b/bitnami/kafka/Chart.yaml index 502d20dd60..8b1c383788 100644 --- a/bitnami/kafka/Chart.yaml +++ b/bitnami/kafka/Chart.yaml @@ -1,6 +1,6 @@ name: kafka version: 1.1.1 -appVersion: 2.0.0 +appVersion: 2.0.1 description: Apache Kafka is a distributed streaming platform. keywords: - kafka From 42acb1a1051af1aac0536e8c808c6010e9838ebe Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Fri, 9 Nov 2018 23:03:56 +0000 Subject: [PATCH 116/153] kafka: bump chart version to `1.1.2` Signed-off-by: Bitnami Containers --- bitnami/kafka/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/kafka/Chart.yaml b/bitnami/kafka/Chart.yaml index 8b1c383788..8a37847752 100644 --- a/bitnami/kafka/Chart.yaml +++ b/bitnami/kafka/Chart.yaml @@ -1,5 +1,5 @@ name: kafka -version: 1.1.1 +version: 1.1.2 appVersion: 2.0.1 description: Apache Kafka is a distributed streaming platform. keywords: From 506111c0ee9d5f7adff984d2c0478e9adab54157 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Sat, 10 Nov 2018 10:36:27 +0000 Subject: [PATCH 117/153] Synchronize upstreamed folder to c08102b68 --- upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/templates/deployment-standalone.yaml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 9a2eb78b37..9021ef88ed 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.8.3 +version: 4.8.4 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/templates/deployment-standalone.yaml b/upstreamed/mongodb/templates/deployment-standalone.yaml index 86687ee388..6874cbcfeb 100644 --- a/upstreamed/mongodb/templates/deployment-standalone.yaml +++ b/upstreamed/mongodb/templates/deployment-standalone.yaml @@ -86,12 +86,6 @@ spec: {{- end }} - name: MONGODB_EXTRA_FLAGS value: {{ default "" .Values.mongodbExtraFlags | join " " }} - - name: MONGODB_ENABLE_IPV6 - {{- if .Values.mongodbEnableIPv6 }} - value: "yes" - {{- else }} - value: "no" - {{- end }} ports: - name: mongodb containerPort: 27017 From 926630930fa118ab7bd7f50ca0da8b27d65f3e81 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Sun, 11 Nov 2018 10:36:29 +0000 Subject: [PATCH 118/153] Synchronize upstreamed folder to 758dbdc8f --- upstreamed/moodle/Chart.yaml | 4 ++-- upstreamed/moodle/requirements.lock | 4 ++-- upstreamed/moodle/values.yaml | 2 +- upstreamed/postgresql/Chart.yaml | 4 ++-- upstreamed/postgresql/README.md | 1 + upstreamed/postgresql/templates/statefulset-slaves.yaml | 2 +- upstreamed/postgresql/templates/statefulset.yaml | 2 +- upstreamed/postgresql/values-production.yaml | 2 +- upstreamed/postgresql/values.yaml | 2 +- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/templates/redis-slave-deployment.yaml | 4 ++++ upstreamed/redis/values.yaml | 4 ++++ 12 files changed, 21 insertions(+), 12 deletions(-) diff --git a/upstreamed/moodle/Chart.yaml b/upstreamed/moodle/Chart.yaml index b8b6c842c5..20847a7410 100644 --- a/upstreamed/moodle/Chart.yaml +++ b/upstreamed/moodle/Chart.yaml @@ -1,6 +1,6 @@ name: moodle -version: 3.3.0 -appVersion: 3.5.2 +version: 3.3.1 +appVersion: 3.5.3 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised learning environments diff --git a/upstreamed/moodle/requirements.lock b/upstreamed/moodle/requirements.lock index be4259299b..762735340e 100644 --- a/upstreamed/moodle/requirements.lock +++ b/upstreamed/moodle/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.3 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:48:49.994683+02:00 +generated: 2018-11-11T00:03:15.201660989Z diff --git a/upstreamed/moodle/values.yaml b/upstreamed/moodle/values.yaml index c2f358194e..a1c2df03f3 100644 --- a/upstreamed/moodle/values.yaml +++ b/upstreamed/moodle/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/moodle - tag: 3.5.2 + tag: 3.5.3 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 5268740269..d0db0a0da1 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,6 +1,6 @@ name: postgresql -version: 2.3.3 -appVersion: 10.5.0 +version: 2.4.0 +appVersion: 10.6.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: - postgresql diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md index 0d92a04515..3df90fdd42 100644 --- a/upstreamed/postgresql/README.md +++ b/upstreamed/postgresql/README.md @@ -76,6 +76,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | | `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | | `persistence.annotations` | Annotations for the PVC | `{}` | +| `resources` | CPU/Memory resource requests/limits | `nil` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `[]` | | `terminationGracePeriodSeconds` | Seconds the pod needs to terminate gracefully | `nil` | diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml index 051e451865..bb84ddfe47 100644 --- a/upstreamed/postgresql/templates/statefulset-slaves.yaml +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -71,7 +71,7 @@ spec: image: {{ template "postgresql.image" . }} imagePullPolicy: "{{ .Values.image.pullPolicy }}" resources: -{{ toYaml .Values.Resources | indent 10 }} +{{ toYaml .Values.resources | indent 10 }} env: {{- if .Values.image.debug}} - name: BASH_DEBUG diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml index 45445a1757..68b3c9f26d 100644 --- a/upstreamed/postgresql/templates/statefulset.yaml +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -73,7 +73,7 @@ spec: image: {{ template "postgresql.image" . }} imagePullPolicy: "{{ .Values.image.pullPolicy }}" resources: -{{ toYaml .Values.Resources | indent 10 }} +{{ toYaml .Values.resources | indent 10 }} env: {{- if .Values.replication.enabled }} - name: POSTGRESQL_REPLICATION_MODE diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index 891ffcc7d7..e61f7e9fd7 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 10.5.0 + tag: 10.6.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index b74191ab7d..ea313209d6 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/postgresql - tag: 10.5.0 + tag: 10.6.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index a30a870856..87a0999dd8 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.8 +version: 4.2.9 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/templates/redis-slave-deployment.yaml b/upstreamed/redis/templates/redis-slave-deployment.yaml index d587f55fc4..b5afd18831 100644 --- a/upstreamed/redis/templates/redis-slave-deployment.yaml +++ b/upstreamed/redis/templates/redis-slave-deployment.yaml @@ -9,6 +9,10 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: +{{- if .Values.slave.updateStrategy }} + strategy: +{{ toYaml .Values.slave.updateStrategy | indent 4 }} +{{- end }} {{- if .Values.cluster.slaveCount }} replicas: {{ .Values.cluster.slaveCount }} {{- end }} diff --git a/upstreamed/redis/values.yaml b/upstreamed/redis/values.yaml index f0ee04db25..0ceb1f17a0 100644 --- a/upstreamed/redis/values.yaml +++ b/upstreamed/redis/values.yaml @@ -245,6 +245,10 @@ slave: # extraFlags: [] ## Comma-separated list of Redis commands to disable # disableCommands: "" + ## deployment update stategy + # updateStrategy: + # rollingUpdate: + # maxUnavailable: 0 ## Redis Slave pod/node affinity/anti-affinity ## From b969f5346a651b3f8738da07c3f3b64be3025c38 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Mon, 12 Nov 2018 10:36:30 +0000 Subject: [PATCH 119/153] Synchronize upstreamed folder to a2b14e04f --- upstreamed/redis/Chart.yaml | 2 +- upstreamed/redis/templates/redis-master-statefulset.yaml | 2 +- upstreamed/redmine/Chart.yaml | 2 +- upstreamed/redmine/templates/NOTES.txt | 4 +++- upstreamed/redmine/templates/ingress.yaml | 7 +++---- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/upstreamed/redis/Chart.yaml b/upstreamed/redis/Chart.yaml index 87a0999dd8..f11ed45bba 100644 --- a/upstreamed/redis/Chart.yaml +++ b/upstreamed/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 4.2.9 +version: 4.2.10 appVersion: 4.0.11 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/upstreamed/redis/templates/redis-master-statefulset.yaml b/upstreamed/redis/templates/redis-master-statefulset.yaml index eb4526b06d..ebe65b69ef 100644 --- a/upstreamed/redis/templates/redis-master-statefulset.yaml +++ b/upstreamed/redis/templates/redis-master-statefulset.yaml @@ -13,7 +13,7 @@ spec: release: "{{ .Release.Name }}" role: master app: {{ template "redis.name" . }} - serviceName: "redis-master" + serviceName: {{ template "redis.fullname" . }}-master template: metadata: labels: diff --git a/upstreamed/redmine/Chart.yaml b/upstreamed/redmine/Chart.yaml index 3d300c08bd..c16428609f 100644 --- a/upstreamed/redmine/Chart.yaml +++ b/upstreamed/redmine/Chart.yaml @@ -1,5 +1,5 @@ name: redmine -version: 6.0.1 +version: 6.0.2 appVersion: 3.4.6 description: A flexible project management web application. keywords: diff --git a/upstreamed/redmine/templates/NOTES.txt b/upstreamed/redmine/templates/NOTES.txt index 1fd91d57fa..ae5f30ebf2 100644 --- a/upstreamed/redmine/templates/NOTES.txt +++ b/upstreamed/redmine/templates/NOTES.txt @@ -17,7 +17,9 @@ {{- else if .Values.ingress.enabled }} - echo "Redmine URL: http://{{ .Values.ingress.hostname }}/" + {{- range .Values.ingress.hosts }} + echo "Redmine URL: http://{{ .name }}/" + {{- end }} {{- else if contains "ClusterIP" .Values.serviceType }} diff --git a/upstreamed/redmine/templates/ingress.yaml b/upstreamed/redmine/templates/ingress.yaml index 560a0dbde0..fd5ddd69f4 100644 --- a/upstreamed/redmine/templates/ingress.yaml +++ b/upstreamed/redmine/templates/ingress.yaml @@ -27,10 +27,9 @@ spec: servicePort: 80 {{- if .tls }} tls: - - hosts: - - {{ .name }} - secretName: {{ .tlsSecret }} -{{ toYaml .Values.ingress.tls | indent 4 }} + - secretName: {{ .tlsSecret }} + hosts: + - {{ .name }} {{- end }} --- {{- end }} From 59538d6ce9309fab3f140c896141bd8f3f15b793 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 13:18:42 +0100 Subject: [PATCH 120/153] [bitnami/cassandra] Add more customization settings --- bitnami/cassandra/Chart.yaml | 2 +- bitnami/cassandra/templates/statefulset.yaml | 24 ++++++++++++++++++++ bitnami/cassandra/values-production.yaml | 20 ++++++++++++++++ bitnami/cassandra/values.yaml | 19 ++++++++++++++++ 4 files changed, 64 insertions(+), 1 deletion(-) diff --git a/bitnami/cassandra/Chart.yaml b/bitnami/cassandra/Chart.yaml index fcdd7607ad..d449054ecf 100644 --- a/bitnami/cassandra/Chart.yaml +++ b/bitnami/cassandra/Chart.yaml @@ -1,5 +1,5 @@ name: cassandra -version: 0.0.1 +version: 0.0.2 appVersion: 3.11.3 description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients. icon: https://d33np9n32j53g7.cloudfront.net/assets/stacks/cassandra/img/cassandra-stack-220x234-071ca9e210d165c3972d41ff9f96bd60.png diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml index 6434487757..e783a75d0d 100644 --- a/bitnami/cassandra/templates/statefulset.yaml +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -87,6 +87,30 @@ spec: valueFrom: fieldRef: fieldPath: status.podIP + - name: CASSANDRA_NUM_TOKENS + value: {{ .Values.cluster.numTokens }} + - name: CASSANDRA_DATACENTER + value: {{ .Values.cluster.datacenter }} + - name: CASSANDRA_ENDPOINT_SNITCH + value: {{ .Values.cluster.endpointSnitch }} + - name: CASSANDRA_RACK + value: {{ .Values.cluster.rack }} + {{- if .Values.jvm.maxHeapSize }} + - name: MAX_HEAP_SIZE + value: {{ .Values.jvm.maxHeapSize }} + {{- end }} + {{- if .Values.jvm.newHeapSize }} + - name: HEAP_NEWSIZE + value: {{ .Values.jvm.newHeapSize }} + {{- end }} + {{- if .Values.jvm.extraOpts }} + - name: JVM_EXTRA_OPTS + value: {{ .Values.jvm.extraOpts }} + {{- end }} + {{- if .Values.startupCQL }} + - name: CASSANDRA_STARTUP_CQL + value: {{ .Values.startupCQL }} + {{- end }} {{- if .Values.livenessProbe.enabled }} livenessProbe: exec: diff --git a/bitnami/cassandra/values-production.yaml b/bitnami/cassandra/values-production.yaml index 9f0e30c77a..aa495b53ac 100644 --- a/bitnami/cassandra/values-production.yaml +++ b/bitnami/cassandra/values-production.yaml @@ -91,6 +91,21 @@ cluster: name: cassandra replicaCount: 3 seedCount: 2 + numTokens: 256 + endpointSnitch: SimpleSnitch + datacenter: dc1 + rack: rack1 + +jvm: + ## Extra JVM Settings + ## + # extraOpts: + + ## Memory settings: These are calculated automatically + ## unless specified otherwise + ## + # maxHeapSize: 4G + # newHeapSize: 800M ## Database credentials ## @@ -100,6 +115,11 @@ dbUser: # password: # existingSecret: +## Startup CQL commands. Useful for creating a keyspace +## and pre-populating data +## +# startupCQL: "CREATE KEYSPACE IF NOT EXISTS example_keyspace WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};" + ## Liveness and Readiness probe values. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ ## diff --git a/bitnami/cassandra/values.yaml b/bitnami/cassandra/values.yaml index 2e5106398a..ae125e295c 100644 --- a/bitnami/cassandra/values.yaml +++ b/bitnami/cassandra/values.yaml @@ -91,6 +91,20 @@ cluster: name: cassandra replicaCount: 1 seedCount: 1 + numTokens: 256 + datacenter: dc1 + rack: rack1 + +jvm: + ## Extra JVM Settings + ## + # extraOpts: + + ## Memory settings: These are calculated automatically + ## unless specified otherwise + ## + # maxHeapSize: 4G + # newHeapSize: 800M ## Database credentials ## @@ -100,6 +114,11 @@ dbUser: # password: # existingSecret: +## Startup CQL commands. Useful for creating a keyspace +## and pre-populating data +## +# startupCQL: "CREATE KEYSPACE IF NOT EXISTS example_keyspace WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};" + ## Liveness and Readiness probe values. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ ## From e0d5b5978dc3555b357e641d52d4fb5851ab7e92 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 13:25:50 +0100 Subject: [PATCH 121/153] Add README values --- bitnami/cassandra/README.md | 8 ++++++++ bitnami/cassandra/templates/statefulset.yaml | 2 ++ bitnami/cassandra/values-production.yaml | 1 + bitnami/cassandra/values.yaml | 1 + 4 files changed, 12 insertions(+) diff --git a/bitnami/cassandra/README.md b/bitnami/cassandra/README.md index 977186af65..300e16721f 100644 --- a/bitnami/cassandra/README.md +++ b/bitnami/cassandra/README.md @@ -67,10 +67,18 @@ The following tables lists the configurable parameters of the cassandra chart an | `cluster.name` | Cassandra cluster name | `cassandra` | | `cluster.replicaCount` | Number of Cassandra nodes | `1` | | `cluster.seedCount` | Number of seed nodes (note: must be greater or equal than 1 and less or equal to `cluster.replicaCount`) | `1` | +| `cluster.numTokens` | Number of tokens for each node | `256` | +| `cluster.datacenter` | Datacenter name | `dc1` | +| `cluster.rack` | Rack name | `rack1` | +| `cluster.enableRPC` | Enable Thrift RPC endpoint | `true` | +| `cluster.jvm.extraOpts` | Set the value for Java Virtual Machine extra optinos (JVM_EXTRA_OPTS) | `nil` | +| `cluster.jvm.maxHeapSize` | Set Java Virtual Machine maximum heap size (MAX_HEAP_SIZE). Calculated automatically if `nil` | `nil` | +| `cluster.jvm.newHeapSize` | Set Java Virtual Machine new heap size (HEAP_NEW_SIZE). Calculated automatically if `nil` | `nil` | | `dbUser.user` | Cassandra admin user | `cassandra` | | `dbUser.forcePassword` | Force the user to provide a non-empty password for `dbUser.user` | `false` | | `dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | (Random generated) | | `dbUser.existingSecret` | Use an existing secret object for `dbUser.user` password (will ignore `dbUser.password`) | `nil` | +| `startupCQL` | Startup CQL commands (done in the first node). Useful for creating keyspaces at startup, for instance | `nil` | | `livenessProbe.enabled` | Turn on and off liveness probe | `true` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | | `livenessProbe.periodSeconds` | How often to perform the probe | `30` | diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml index e783a75d0d..37f36a772e 100644 --- a/bitnami/cassandra/templates/statefulset.yaml +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -111,6 +111,8 @@ spec: - name: CASSANDRA_STARTUP_CQL value: {{ .Values.startupCQL }} {{- end }} + - name: CASSANDRA_ENABLE_RPC + value: {{ .Values.cluster.enableRPC }} {{- if .Values.livenessProbe.enabled }} livenessProbe: exec: diff --git a/bitnami/cassandra/values-production.yaml b/bitnami/cassandra/values-production.yaml index aa495b53ac..364c2c773e 100644 --- a/bitnami/cassandra/values-production.yaml +++ b/bitnami/cassandra/values-production.yaml @@ -95,6 +95,7 @@ cluster: endpointSnitch: SimpleSnitch datacenter: dc1 rack: rack1 + enableRPC: true jvm: ## Extra JVM Settings diff --git a/bitnami/cassandra/values.yaml b/bitnami/cassandra/values.yaml index ae125e295c..807c477b04 100644 --- a/bitnami/cassandra/values.yaml +++ b/bitnami/cassandra/values.yaml @@ -94,6 +94,7 @@ cluster: numTokens: 256 datacenter: dc1 rack: rack1 + enableRPC: true jvm: ## Extra JVM Settings From 998260f56afa457de194a2c0f6f81bbaaca90c81 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 13:28:38 +0100 Subject: [PATCH 122/153] Change services --- bitnami/cassandra/templates/headless-svc.yaml | 2 ++ bitnami/cassandra/templates/service.yaml | 2 ++ bitnami/cassandra/templates/statefulset.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/bitnami/cassandra/templates/headless-svc.yaml b/bitnami/cassandra/templates/headless-svc.yaml index f3acf742bb..d2b98b0897 100644 --- a/bitnami/cassandra/templates/headless-svc.yaml +++ b/bitnami/cassandra/templates/headless-svc.yaml @@ -23,9 +23,11 @@ spec: - name: cql port: {{ .Values.service.cqlPort }} targetPort: cql +{{- if .Values.cluster.enableRPC }} - name: thrift port: {{ .Values.service.thriftPort }} targetPort: thrift +{{- end }} selector: app: {{ template "cassandra.name" . }} release: {{ .Release.Name }} diff --git a/bitnami/cassandra/templates/service.yaml b/bitnami/cassandra/templates/service.yaml index c2bd4d9dd6..bd4da38694 100644 --- a/bitnami/cassandra/templates/service.yaml +++ b/bitnami/cassandra/templates/service.yaml @@ -19,9 +19,11 @@ spec: - name: cql port: {{ .Values.service.cqlPort }} targetPort: cql +{{- if .Values.cluster.enableRPC }} - name: thrift port: {{ .Values.service.thriftPort }} targetPort: thrift +{{- end }} selector: app: {{ template "cassandra.name" . }} release: {{ .Release.Name }} diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml index 37f36a772e..42c85a1274 100644 --- a/bitnami/cassandra/templates/statefulset.yaml +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -142,8 +142,10 @@ spec: containerPort: 7199 - name: cql containerPort: 9042 +{{- if .Values.cluster.enableRPC }} - name: thrift containerPort: 9160 +{{- end }} volumeMounts: - name: data mountPath: /bitnami/cassandra From c1147a4845c9229b6e30970654e7910e75f483f1 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 13:28:53 +0100 Subject: [PATCH 123/153] typo --- bitnami/cassandra/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/cassandra/README.md b/bitnami/cassandra/README.md index 300e16721f..9999515a5d 100644 --- a/bitnami/cassandra/README.md +++ b/bitnami/cassandra/README.md @@ -73,7 +73,7 @@ The following tables lists the configurable parameters of the cassandra chart an | `cluster.enableRPC` | Enable Thrift RPC endpoint | `true` | | `cluster.jvm.extraOpts` | Set the value for Java Virtual Machine extra optinos (JVM_EXTRA_OPTS) | `nil` | | `cluster.jvm.maxHeapSize` | Set Java Virtual Machine maximum heap size (MAX_HEAP_SIZE). Calculated automatically if `nil` | `nil` | -| `cluster.jvm.newHeapSize` | Set Java Virtual Machine new heap size (HEAP_NEW_SIZE). Calculated automatically if `nil` | `nil` | +| `cluster.jvm.newHeapSize` | Set Java Virtual Machine new heap size (HEAP_NEWSIZE). Calculated automatically if `nil` | `nil` | | `dbUser.user` | Cassandra admin user | `cassandra` | | `dbUser.forcePassword` | Force the user to provide a non-empty password for `dbUser.user` | `false` | | `dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | (Random generated) | From 2c351025d5cba38d6bd12211fbd1ebae67e6d959 Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Mon, 12 Nov 2018 14:43:44 +0000 Subject: [PATCH 124/153] kubeapps: bump chart version to 0.9.6 --- bitnami/kubeapps/Chart.yaml | 2 +- bitnami/kubeapps/templates/apprepository-crd.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index dbb3b11627..0bbea75052 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.5 +version: 0.9.6 appVersion: v1.0.0-beta.4 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/templates/apprepository-crd.yaml b/bitnami/kubeapps/templates/apprepository-crd.yaml index 36aeeb8fad..abaeb86750 100644 --- a/bitnami/kubeapps/templates/apprepository-crd.yaml +++ b/bitnami/kubeapps/templates/apprepository-crd.yaml @@ -1,4 +1,4 @@ -{{- if not (.Capabilities.APIVersions.Has "kubeapps.com/v1alpha1") -}} +{{- if or (not (.Capabilities.APIVersions.Has "kubeapps.com/v1alpha1")) (.Release.IsUpgrade) -}} # The condition above will be true if another instance of Kubeapps is # already installed apiVersion: apiextensions.k8s.io/v1beta1 From d6db81ca5ba505ec6a40b29aff1ccf139fbd68ff Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 15:50:24 +0100 Subject: [PATCH 125/153] Bump minor version --- bitnami/cassandra/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/cassandra/Chart.yaml b/bitnami/cassandra/Chart.yaml index d449054ecf..89d268e6ff 100644 --- a/bitnami/cassandra/Chart.yaml +++ b/bitnami/cassandra/Chart.yaml @@ -1,5 +1,5 @@ name: cassandra -version: 0.0.2 +version: 0.1.0 appVersion: 3.11.3 description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients. icon: https://d33np9n32j53g7.cloudfront.net/assets/stacks/cassandra/img/cassandra-stack-220x234-071ca9e210d165c3972d41ff9f96bd60.png From ede924bb981f9e9ca3fd465befff74f6f491ca49 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 17:28:00 +0100 Subject: [PATCH 126/153] Add quotes --- bitnami/cassandra/templates/statefulset.yaml | 12 ++++++------ bitnami/cassandra/values.yaml | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bitnami/cassandra/templates/statefulset.yaml b/bitnami/cassandra/templates/statefulset.yaml index 42c85a1274..4d8de929ff 100644 --- a/bitnami/cassandra/templates/statefulset.yaml +++ b/bitnami/cassandra/templates/statefulset.yaml @@ -88,7 +88,7 @@ spec: fieldRef: fieldPath: status.podIP - name: CASSANDRA_NUM_TOKENS - value: {{ .Values.cluster.numTokens }} + value: {{ .Values.cluster.numTokens | quote }} - name: CASSANDRA_DATACENTER value: {{ .Values.cluster.datacenter }} - name: CASSANDRA_ENDPOINT_SNITCH @@ -97,22 +97,22 @@ spec: value: {{ .Values.cluster.rack }} {{- if .Values.jvm.maxHeapSize }} - name: MAX_HEAP_SIZE - value: {{ .Values.jvm.maxHeapSize }} + value: {{ .Values.jvm.maxHeapSize | quote }} {{- end }} {{- if .Values.jvm.newHeapSize }} - name: HEAP_NEWSIZE - value: {{ .Values.jvm.newHeapSize }} + value: {{ .Values.jvm.newHeapSize | quote }} {{- end }} {{- if .Values.jvm.extraOpts }} - name: JVM_EXTRA_OPTS - value: {{ .Values.jvm.extraOpts }} + value: {{ .Values.jvm.extraOpts | quote }} {{- end }} {{- if .Values.startupCQL }} - name: CASSANDRA_STARTUP_CQL - value: {{ .Values.startupCQL }} + value: {{ .Values.startupCQL | quote }} {{- end }} - name: CASSANDRA_ENABLE_RPC - value: {{ .Values.cluster.enableRPC }} + value: {{ .Values.cluster.enableRPC | quote }} {{- if .Values.livenessProbe.enabled }} livenessProbe: exec: diff --git a/bitnami/cassandra/values.yaml b/bitnami/cassandra/values.yaml index 807c477b04..128e8e1424 100644 --- a/bitnami/cassandra/values.yaml +++ b/bitnami/cassandra/values.yaml @@ -95,11 +95,12 @@ cluster: datacenter: dc1 rack: rack1 enableRPC: true + endpointSnitch: SimpleSnitch jvm: ## Extra JVM Settings ## - # extraOpts: + extraOpts: ## Memory settings: These are calculated automatically ## unless specified otherwise From 5c310b9ad59b47e47c2590a138d89e8ed12f12c3 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Mon, 12 Nov 2018 17:29:02 +0100 Subject: [PATCH 127/153] Uncomment extra opts in values production --- bitnami/cassandra/values-production.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/cassandra/values-production.yaml b/bitnami/cassandra/values-production.yaml index 364c2c773e..d3922b24e6 100644 --- a/bitnami/cassandra/values-production.yaml +++ b/bitnami/cassandra/values-production.yaml @@ -100,7 +100,7 @@ cluster: jvm: ## Extra JVM Settings ## - # extraOpts: + extraOpts: ## Memory settings: These are calculated automatically ## unless specified otherwise From fbab11d099c4a71dee047f03468be7dd98ee7d13 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Tue, 13 Nov 2018 15:52:54 +0100 Subject: [PATCH 128/153] [bitnami/zookeeper] Make trunc consistent between charts --- bitnami/kafka/Chart.yaml | 2 +- bitnami/kafka/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/kafka/Chart.yaml b/bitnami/kafka/Chart.yaml index 8a37847752..2a8ae12354 100644 --- a/bitnami/kafka/Chart.yaml +++ b/bitnami/kafka/Chart.yaml @@ -1,5 +1,5 @@ name: kafka -version: 1.1.2 +version: 1.1.3 appVersion: 2.0.1 description: Apache Kafka is a distributed streaming platform. keywords: diff --git a/bitnami/kafka/templates/_helpers.tpl b/bitnami/kafka/templates/_helpers.tpl index bae197a23f..611dfeb9eb 100644 --- a/bitnami/kafka/templates/_helpers.tpl +++ b/bitnami/kafka/templates/_helpers.tpl @@ -69,5 +69,5 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this */}} {{- define "kafka.zookeeper.fullname" -}} {{- $name := default "zookeeper" .Values.zookeeper.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- printf "%s-%s" .Release.Name $name | trunc 24 | trimSuffix "-" -}} {{- end -}} From a714d1ce6f3ba56d24964ac8a710577483ed10ab Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Tue, 13 Nov 2018 18:48:08 +0000 Subject: [PATCH 129/153] kubeapps: bump chart version to 0.9.7 --- bitnami/kubeapps/Chart.yaml | 2 +- .../templates/apprepository-rbac.yaml | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 0bbea75052..b97f269032 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.6 +version: 0.9.7 appVersion: v1.0.0-beta.4 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png diff --git a/bitnami/kubeapps/templates/apprepository-rbac.yaml b/bitnami/kubeapps/templates/apprepository-rbac.yaml index 8e65e8bf9b..3646b2c242 100644 --- a/bitnami/kubeapps/templates/apprepository-rbac.yaml +++ b/bitnami/kubeapps/templates/apprepository-rbac.yaml @@ -1,4 +1,44 @@ {{- if .Values.rbac.create -}} +# Need a cluster role because client-go v5.0.1 does not support namespaced +# informers +# TODO: remove when we update to client-go v6.0.0 +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: ClusterRole +metadata: + name: {{ template "kubeapps.apprepository.fullname" . }} + labels: + app: {{ template "kubeapps.apprepository.fullname" . }} + chart: {{ template "kubeapps.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +rules: +- apiGroups: + - batch + resources: + - cronjobs + verbs: + - get + - list + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: ClusterRoleBinding +metadata: + name: {{ template "kubeapps.apprepository.fullname" . }} + labels: + app: {{ template "kubeapps.apprepository.fullname" . }} + chart: {{ template "kubeapps.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ template "kubeapps.apprepository.fullname" . }} +subjects: +- kind: ServiceAccount + name: {{ template "kubeapps.apprepository.fullname" . }} + namespace: {{ .Release.Namespace }} +--- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: From 9a0ea2d5c5c337bcc68e3d3aecc9e184f7492628 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 14 Nov 2018 01:34:29 +0000 Subject: [PATCH 130/153] consul: update to `1.3.1` Signed-off-by: Bitnami Containers --- bitnami/consul/values-production.yaml | 2 +- bitnami/consul/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index deac0185b7..8a26e29ae5 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/consul - tag: 1.3.0 + tag: 1.3.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index e43e0d6b9f..41e5592871 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/consul - tag: 1.3.0 + tag: 1.3.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 086ba0e9166ec2f7bd8cf3b58f2bba0172a88393 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 14 Nov 2018 01:34:29 +0000 Subject: [PATCH 131/153] consul: bump chart appVersion to `1.3.1` Signed-off-by: Bitnami Containers --- bitnami/consul/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index ce0d8e1ad7..3559acaee4 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -1,6 +1,6 @@ name: consul version: 2.4.1 -appVersion: 1.3.0 +appVersion: 1.3.1 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy. From ad1f6af2a9570b6754243700059d4fb16b138941 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 14 Nov 2018 01:34:29 +0000 Subject: [PATCH 132/153] consul: bump chart version to `2.4.2` Signed-off-by: Bitnami Containers --- bitnami/consul/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index 3559acaee4..f2430d3d12 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -1,5 +1,5 @@ name: consul -version: 2.4.1 +version: 2.4.2 appVersion: 1.3.1 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and From 07246359c5342e435fe2376c3a1f5636c83baea6 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 14 Nov 2018 10:36:32 +0000 Subject: [PATCH 133/153] Synchronize upstreamed folder to 41ac6ce50 --- upstreamed/ghost/Chart.yaml | 4 +-- upstreamed/ghost/values.yaml | 2 +- upstreamed/joomla/Chart.yaml | 2 +- upstreamed/joomla/values.yaml | 2 +- upstreamed/mongodb/Chart.yaml | 2 +- upstreamed/mongodb/README.md | 22 ++++++++----- .../mongodb/templates/headless-svc-rs.yaml | 7 +++- .../templates/prometheus-alerting-rule.yaml | 17 ++++++++++ .../templates/prometheus-service-monitor.yaml | 32 +++++++++++++++++++ .../templates/statefulset-primary-rs.yaml | 4 +++ .../templates/statefulset-secondary-rs.yaml | 4 +++ upstreamed/mongodb/values-production.yaml | 23 +++++++++++++ upstreamed/mongodb/values.yaml | 24 ++++++++++++++ upstreamed/parse/Chart.yaml | 2 +- upstreamed/parse/requirements.lock | 6 ++-- upstreamed/parse/requirements.yaml | 2 +- upstreamed/phabricator/Chart.yaml | 4 +-- upstreamed/phabricator/requirements.lock | 4 +-- upstreamed/phabricator/values.yaml | 2 +- upstreamed/postgresql/Chart.yaml | 2 +- upstreamed/postgresql/README.md | 12 +++++-- .../postgresql/templates/configmap.yaml | 10 +++++- .../templates/initialization-configmap.yaml | 3 ++ .../templates/statefulset-slaves.yaml | 10 ++++-- .../postgresql/templates/statefulset.yaml | 14 +++++--- upstreamed/postgresql/values-production.yaml | 26 +++++++++++++++ upstreamed/postgresql/values.yaml | 30 ++++++++++++++++- 27 files changed, 235 insertions(+), 37 deletions(-) create mode 100644 upstreamed/mongodb/templates/prometheus-alerting-rule.yaml create mode 100644 upstreamed/mongodb/templates/prometheus-service-monitor.yaml diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 3543269100..8d7c9db6df 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,6 +1,6 @@ name: ghost -version: 5.4.1 -appVersion: 2.5.0 +version: 5.4.2 +appVersion: 2.6.0 description: A simple, powerful publishing platform that allows you to share your stories with the world keywords: diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 81ee96a972..29e4b58b16 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/ghost - tag: 2.5.0 + tag: 2.6.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/joomla/Chart.yaml b/upstreamed/joomla/Chart.yaml index e374dc63d3..4f1f0214a5 100644 --- a/upstreamed/joomla/Chart.yaml +++ b/upstreamed/joomla/Chart.yaml @@ -1,5 +1,5 @@ name: joomla -version: 3.4.0 +version: 3.4.1 appVersion: 3.9.0 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/upstreamed/joomla/values.yaml b/upstreamed/joomla/values.yaml index e7300be7ef..5492ab9464 100644 --- a/upstreamed/joomla/values.yaml +++ b/upstreamed/joomla/values.yaml @@ -120,7 +120,7 @@ mariadb: ## Configure extra options for liveness and readiness probes ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) livenessProbe: - enbaled: true + enabled: true initialDelaySeconds: 120 periodSeconds: 10 timeoutSeconds: 5 diff --git a/upstreamed/mongodb/Chart.yaml b/upstreamed/mongodb/Chart.yaml index 9021ef88ed..ff9733ddd2 100644 --- a/upstreamed/mongodb/Chart.yaml +++ b/upstreamed/mongodb/Chart.yaml @@ -1,5 +1,5 @@ name: mongodb -version: 4.8.4 +version: 4.9.0 appVersion: 4.0.3 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/upstreamed/mongodb/README.md b/upstreamed/mongodb/README.md index bb965b28aa..41b448a305 100644 --- a/upstreamed/mongodb/README.md +++ b/upstreamed/mongodb/README.md @@ -101,14 +101,20 @@ The following table lists the configurable parameters of the MongoDB chart and t | `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | | `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | | `configmap` | MongoDB configuration file to be used | `nil` | -| `metrics.enabled` | Start a side-car prometheus exporter | `false` | -| `metrics.image.registry` | MongoDB exporter image registry | `docker.io` | -| `metrics.image.repository` | MongoDB exporter image name | `forekshub/percona-mongodb-exporter` | -| `metrics.image.tag` | MongoDB exporter image tag | `latest` | -| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | -| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | {} | -| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | +| `metrics.enabled` | Start a side-car prometheus exporter | `false` | +| `metrics.image.registry` | MongoDB exporter image registry | `docker.io` | +| `metrics.image.repository` | MongoDB exporter image name | `forekshub/percona-mongodb-exporter` | +| `metrics.image.tag` | MongoDB exporter image tag | `latest` | +| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | +| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | {} | +| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | +| `metrics.serviceMonitor.enabled` | Create ServiceMonitor Resource for scraping metrics using PrometheusOperator | `false` | +| `metrics.serviceMonitor.additionalLabels` | Used to pass Labels that are required by the Installed Prometheus Operator | {} | +| `metrics.serviceMonitor.relabellings` | Specify Metric Relabellings to add to the scrape endpoint | `nil` | +| `metrics.serviceMonitor.alerting.rules` | Define individual alerting rules as required | {} | +| `metrics.serviceMonitor.alerting.additionalLabels` | Used to pass Labels that are required by the Installed Prometheus Operator | {} | + Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/upstreamed/mongodb/templates/headless-svc-rs.yaml b/upstreamed/mongodb/templates/headless-svc-rs.yaml index 29fcf34cc1..93b3b01e97 100644 --- a/upstreamed/mongodb/templates/headless-svc-rs.yaml +++ b/upstreamed/mongodb/templates/headless-svc-rs.yaml @@ -18,7 +18,12 @@ spec: ports: - name: mongodb port: {{ .Values.service.port }} +{{- if .Values.metrics.enabled }} + - name: metrics + port: 9216 + targetPort: metrics +{{- end }} selector: app: {{ template "mongodb.name" . }} release: {{ .Release.Name }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/upstreamed/mongodb/templates/prometheus-alerting-rule.yaml b/upstreamed/mongodb/templates/prometheus-alerting-rule.yaml new file mode 100644 index 0000000000..e6d4d4c688 --- /dev/null +++ b/upstreamed/mongodb/templates/prometheus-alerting-rule.yaml @@ -0,0 +1,17 @@ +{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled .Values.metrics.serviceMonitor.alerting.rules }} +apiVersion: monitoring.coreos.com/v1 +kind: PrometheusRule +metadata: + name: {{ template "mongodb.fullname" . }} + labels: + app: {{ template "mongodb.name" . }} + chart: {{ template "mongodb.chart" . }} + heritage: {{ .Release.Service }} + release: {{ .Release.Name }} + {{- if .Values.metrics.serviceMonitor.alerting.additionalLabels }} +{{ toYaml .Values.metrics.serviceMonitor.alerting.additionalLabels | indent 4 }} + {{- end }} +spec: + groups: +{{ toYaml .Values.metrics.serviceMonitor.alerting.rules | indent 4 }} +{{- end }} diff --git a/upstreamed/mongodb/templates/prometheus-service-monitor.yaml b/upstreamed/mongodb/templates/prometheus-service-monitor.yaml new file mode 100644 index 0000000000..7c33169238 --- /dev/null +++ b/upstreamed/mongodb/templates/prometheus-service-monitor.yaml @@ -0,0 +1,32 @@ +{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: {{ template "mongodb.fullname" . }} + labels: + app: {{ template "mongodb.name" . }} + chart: {{ template "mongodb.chart" . }} + heritage: {{ .Release.Service }} + release: {{ .Release.Name }} + {{- if .Values.metrics.serviceMonitor.additionalLabels }} +{{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }} + {{- end }} +spec: + endpoints: + - interval: 30s + port: metrics + {{- if .Values.metrics.serviceMonitor.relabellings }} + metricRelabelings: +{{ toYaml .Values.metrics.serviceMonitor.relabellings | indent 4 }} + {{- end }} + jobLabel: {{ template "mongodb.fullname" . }} + namespaceSelector: + matchNames: + - "{{ $.Release.Namespace }}" + selector: + matchLabels: + app: {{ template "mongodb.name" . }} + chart: {{ template "mongodb.chart" . }} + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" +{{- end }} diff --git a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml index 74bb2088f1..9a3ab96a98 100644 --- a/upstreamed/mongodb/templates/statefulset-primary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-primary-rs.yaml @@ -148,12 +148,16 @@ spec: image: {{ template "metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} env: + {{- if .Values.usePassword }} - name: MONGODB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} key: mongodb-root-password command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] + {{- else }} + command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://localhost:{{ .Values.service.port }}' ] + {{- end }} ports: - name: metrics containerPort: 9216 diff --git a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml index 60df963050..334e84bd90 100644 --- a/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml +++ b/upstreamed/mongodb/templates/statefulset-secondary-rs.yaml @@ -136,12 +136,16 @@ spec: image: {{ template "metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} env: + {{- if .Values.usePassword }} - name: MONGODB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{- else }}{{ template "mongodb.fullname" . }}{{- end }} key: mongodb-root-password command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:{{ .Values.service.port }}/admin' ] + {{- else }} + command: [ 'sh', '-c', '/bin/mongodb_exporter --mongodb.uri mongodb://localhost:{{ .Values.service.port }}' ] + {{- end }} ports: - name: metrics containerPort: 9216 diff --git a/upstreamed/mongodb/values-production.yaml b/upstreamed/mongodb/values-production.yaml index 57c64cd93c..14c2b0c3a1 100644 --- a/upstreamed/mongodb/values-production.yaml +++ b/upstreamed/mongodb/values-production.yaml @@ -243,3 +243,26 @@ metrics: prometheus.io/scrape: "true" prometheus.io/port: "9216" + ## Prometheus Service Monitor + ## ref: https://github.com/coreos/prometheus-operator + ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md + serviceMonitor: + ## If the operator is installed in your cluster, set to true to create a Service Monitor Entry + enabled: false + ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec + additionalLabels: {} + + ## Specify Metric Relabellings to add to the scrape endpoint + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint + # relabellings: + + alerting: + ## Define individual alerting rules as required + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#rulegroup + ## https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ + rules: {} + + ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Prometheus Rules to work with + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec + additionalLabels: {} diff --git a/upstreamed/mongodb/values.yaml b/upstreamed/mongodb/values.yaml index 37fc2d583b..2479befd37 100644 --- a/upstreamed/mongodb/values.yaml +++ b/upstreamed/mongodb/values.yaml @@ -242,3 +242,27 @@ metrics: podAnnotations: prometheus.io/scrape: "true" prometheus.io/port: "9216" + + ## Prometheus Service Monitor + ## ref: https://github.com/coreos/prometheus-operator + ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md + serviceMonitor: + ## If the operator is installed in your cluster, set to true to create a Service Monitor Entry + enabled: false + ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec + additionalLabels: {} + + ## Specify Metric Relabellings to add to the scrape endpoint + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint + # relabellings: + + alerting: + ## Define individual alerting rules as required + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#rulegroup + ## https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ + rules: {} + + ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Prometheus Rules to work with + ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec + additionalLabels: {} diff --git a/upstreamed/parse/Chart.yaml b/upstreamed/parse/Chart.yaml index 57d0536a22..088450ce43 100644 --- a/upstreamed/parse/Chart.yaml +++ b/upstreamed/parse/Chart.yaml @@ -1,5 +1,5 @@ name: parse -version: 3.1.3 +version: 4.0.0 appVersion: 3.1.1 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: diff --git a/upstreamed/parse/requirements.lock b/upstreamed/parse/requirements.lock index ae038e688f..a55c58c8ba 100644 --- a/upstreamed/parse/requirements.lock +++ b/upstreamed/parse/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mongodb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 2.0.9 -digest: sha256:cf5e28c1a27636f9471953712706834f87e49cb40be80c303a1436ee7e5016e5 -generated: 2018-10-16T08:49:53.146915+02:00 + version: 4.8.4 +digest: sha256:48512f443b15ce0b80210dd683e9517627640d144ca71c0b509f4b4a1601c5e6 +generated: 2018-11-13T17:28:08.511473529+01:00 diff --git a/upstreamed/parse/requirements.yaml b/upstreamed/parse/requirements.yaml index adcdcd326d..fe54e4e51c 100644 --- a/upstreamed/parse/requirements.yaml +++ b/upstreamed/parse/requirements.yaml @@ -1,4 +1,4 @@ dependencies: - name: mongodb - version: 2.x.x + version: 4.x.x repository: https://kubernetes-charts.storage.googleapis.com/ diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 8fc48fab11..1dac4d8f9e 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,6 +1,6 @@ name: phabricator -version: 3.3.1 -appVersion: 2018.44.0 +version: 3.3.2 +appVersion: 2018.45.0 description: Collection of open source web applications that help software companies build better software. keywords: - phabricator diff --git a/upstreamed/phabricator/requirements.lock b/upstreamed/phabricator/requirements.lock index d95e34f0a1..9cd3e0f80a 100644 --- a/upstreamed/phabricator/requirements.lock +++ b/upstreamed/phabricator/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.2 + version: 5.2.3 digest: sha256:e09c8ca7126923a30e39f442c3863b44684d4eb3f7b6dc869f0206da4463f416 -generated: 2018-10-30T04:34:55.655958788Z +generated: 2018-11-13T00:07:48.787894577Z diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 76540a8a69..c73265d68f 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phabricator - tag: 2018.44.0 + tag: 2018.45.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index d0db0a0da1..684af190a8 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.4.0 +version: 2.6.0 appVersion: 10.6.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md index 3df90fdd42..8c3ec77aed 100644 --- a/upstreamed/postgresql/README.md +++ b/upstreamed/postgresql/README.md @@ -66,6 +66,9 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | `postgresqlUsername` | PostgreSQL admin user | `postgres` | | `postgresqlPassword` | PostgreSQL admin password | _random 10 character alphanumeric string_ | | `postgresqlDatabase` | PostgreSQL database | `nil` | +| `postgresqlConfiguration` | Runtime Config Parameters | `nil` | +| `pgHbaConfiguration` | Content of pg\_hba.conf | `nil (do not create pg_hba.conf)` | +| `initdbScripts` | List of initdb scripts | `nil` | | `service.type` | Kubernetes Service type | `ClusterIP` | | `service.port` | PostgreSQL port | `5432` | | `service.nodePort` | Kubernetes Service nodePort | `nil` | @@ -78,6 +81,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | `persistence.annotations` | Annotations for the PVC | `{}` | | `resources` | CPU/Memory resource requests/limits | `nil` | | `nodeSelector` | Node labels for pod assignment | `{}` | +| `affinity` | Affinity labels for pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `[]` | | `terminationGracePeriodSeconds` | Seconds the pod needs to terminate gracefully | `nil` | | `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | @@ -127,16 +131,20 @@ $ helm install --name my-release -f values.yaml stable/postgresql > **Tip**: You can use the default [values.yaml](values.yaml) -### postgresql.conf file as configMap +### postgresql.conf / pg_hba.conf files as configMap -Instead of using specific variables for the PostgreSQL configuration, this helm chart also supports to customize the whole configuration file. +This helm chart also supports to customize the whole configuration file. Add your custom file to "files/postgresql.conf" in your working directory. This file will be mounted as configMap to the containers and it will be used for configuring the PostgreSQL server. +Alternatively, you can specify PostgreSQL configuration parameters using the `postgresqlConfiguration` parameter as a dict, using camelCase, e.g. {"sharedBuffers": "500MB"}. + ## Initialize a fresh instance The [Bitnami PostgreSQL](https://github.com/bitnami/bitnami-docker-postgresql) image allows you to use your custom scripts to initialize a fresh instance. In order to execute the scripts, they must be located inside the chart folder `files/docker-entrypoint-initdb.d` so they can be consumed as a ConfigMap. +Alternatively, you can specify custom scripts using the `initdbScripts` parameter as dict. + The allowed extensions are `.sh`, `.sql` and `.sql.gz`. ## Production and horizontal scaling diff --git a/upstreamed/postgresql/templates/configmap.yaml b/upstreamed/postgresql/templates/configmap.yaml index 2cc9b48d08..7c18c01c55 100644 --- a/upstreamed/postgresql/templates/configmap.yaml +++ b/upstreamed/postgresql/templates/configmap.yaml @@ -1,4 +1,4 @@ -{{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") }} +{{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") .Values.postgresqlConfiguration .Values.pgHbaConfiguration}} apiVersion: v1 kind: ConfigMap metadata: @@ -11,8 +11,16 @@ metadata: data: {{- if (.Files.Glob "files/postgresql.conf") }} {{ (.Files.Glob "files/postgresql.conf").AsConfig | indent 2 }} +{{- else if .Values.postgresqlConfiguration }} + postgresql.conf: | +{{- range $key, $value := default dict .Values.postgresqlConfiguration }} + {{ $key | snakecase }}={{ $value }} +{{- end }} {{- end }} {{- if (.Files.Glob "files/pg_hba.conf") }} {{ (.Files.Glob "files/pg_hba.conf").AsConfig | indent 2 }} +{{- else if .Values.pgHbaConfiguration }} + pg_hba.conf: | +{{ .Values.pgHbaConfiguration | indent 4 }} {{- end }} {{ end }} diff --git a/upstreamed/postgresql/templates/initialization-configmap.yaml b/upstreamed/postgresql/templates/initialization-configmap.yaml index d8472fd1d2..078d508231 100644 --- a/upstreamed/postgresql/templates/initialization-configmap.yaml +++ b/upstreamed/postgresql/templates/initialization-configmap.yaml @@ -9,3 +9,6 @@ metadata: heritage: {{ .Release.Service | quote }} data: {{ (.Files.Glob "files/docker-entrypoint-initdb.d/*").AsConfig | indent 2 }} +{{- with .Values.initdbScripts }} +{{ toYaml . | indent 2 }} +{{- end }} diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml index bb84ddfe47..dea55d2066 100644 --- a/upstreamed/postgresql/templates/statefulset-slaves.yaml +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -42,6 +42,10 @@ spec: {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} {{- end }} {{- if .Values.tolerations }} tolerations: @@ -128,18 +132,18 @@ spec: - name: data mountPath: /bitnami/postgresql {{ end }} - {{ if (.Files.Glob "files/postgresql.conf") }} + {{ if or (.Files.Glob "files/postgresql.conf") .Values.postgresqlConfiguration }} - name: postgresql-config mountPath: /opt/bitnami/postgresql/conf/postgresql.conf subPath: postgresql.conf {{ end }} - {{ if (.Files.Glob "files/pg_hba.conf") }} + {{ if or (.Files.Glob "files/pg_hba.conf") .Values.pgHbaConfiguration }} - name: postgresql-config mountPath: /opt/bitnami/postgresql/conf/pg_hba.conf subPath: pg_hba.conf {{ end }} volumes: - {{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") }} + {{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") .Values.postgresqlConfiguration .Values.pgHbaConfiguration }} - name: postgresql-config configMap: name: {{ template "postgresql.fullname" . }}-configuration diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml index 68b3c9f26d..3610fbe2ea 100644 --- a/upstreamed/postgresql/templates/statefulset.yaml +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -41,6 +41,10 @@ spec: {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} + {{- end }} + {{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} {{- end }} {{- if .Values.tolerations }} tolerations: @@ -136,18 +140,18 @@ spec: - name: data mountPath: /bitnami/postgresql {{ end }} - {{ if (.Files.Glob "files/postgresql.conf") }} + {{ if or (.Files.Glob "files/postgresql.conf") .Values.postgresqlConfiguration }} - name: postgresql-config mountPath: /opt/bitnami/postgresql/conf/postgresql.conf subPath: postgresql.conf {{ end }} - {{ if (.Files.Glob "files/pg_hba.conf") }} + {{ if or (.Files.Glob "files/pg_hba.conf") .Values.pgHbaConfiguration }} - name: postgresql-config mountPath: /opt/bitnami/postgresql/conf/pg_hba.conf subPath: pg_hba.conf {{ end }} volumes: - {{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") }} + {{ if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") .Values.postgresqlConfiguration .Values.pgHbaConfiguration }} - name: postgresql-config configMap: name: {{ template "postgresql.fullname" . }}-configuration @@ -159,10 +163,12 @@ spec: volumeClaimTemplates: - metadata: name: data + {{- with .Values.persistence.annotations }} annotations: - {{- range $key, $value := .Values.persistence.annotations }} + {{- range $key, $value := . }} {{ $key }}: {{ $value }} {{- end }} + {{- end }} spec: accessModes: {{- range .Values.persistence.accessModes }} diff --git a/upstreamed/postgresql/values-production.yaml b/upstreamed/postgresql/values-production.yaml index e61f7e9fd7..ed33072f40 100644 --- a/upstreamed/postgresql/values-production.yaml +++ b/upstreamed/postgresql/values-production.yaml @@ -70,6 +70,32 @@ postgresqlUsername: postgres ## # postgresqlDatabase: +## PostgreSQL configuration +## Specify runtime configuration parameters as a dict, using camelCase, e.g. +## {"sharedBuffers": "500MB"} +## Alternatively, you can put your postgresql.conf under the files/ directory +## ref: https://www.postgresql.org/docs/current/static/runtime-config.html +## +# postgresqlConfiguration: + +## PostgreSQL client authentication configuration +## Specify content for pg_hba.conf +## Default: do not create pg_hba.conf +## Alternatively, you can put your pg_hba.conf under the files/ directory +# pgHbaConfiguration: |- +# local all all trust +# host all all localhost trust +# host mydatabase mysuser 192.168.0.0/24 md5 + +## initdb scripts +## Specify dictionnary of scripts to be run at first boot +## Alternatively, you can put your scripts under the files/docker-entrypoint-initdb.d directory +## +# initdbScripts: +# my_init_script.sh:| +# #!/bin/sh +# echo "Do something." + ## PostgreSQL service configuration service: ## PosgresSQL service type diff --git a/upstreamed/postgresql/values.yaml b/upstreamed/postgresql/values.yaml index ea313209d6..ad5c0e3b81 100644 --- a/upstreamed/postgresql/values.yaml +++ b/upstreamed/postgresql/values.yaml @@ -70,6 +70,32 @@ postgresqlUsername: postgres ## # postgresqlDatabase: +## PostgreSQL configuration +## Specify runtime configuration parameters as a dict, using camelCase, e.g. +## {"sharedBuffers": "500MB"} +## Alternatively, you can put your postgresql.conf under the files/ directory +## ref: https://www.postgresql.org/docs/current/static/runtime-config.html +## +# postgresqlConfiguration: + +## PostgreSQL client authentication configuration +## Specify content for pg_hba.conf +## Default: do not create pg_hba.conf +## Alternatively, you can put your pg_hba.conf under the files/ directory +# pgHbaConfiguration: |- +# local all all trust +# host all all localhost trust +# host mydatabase mysuser 192.168.0.0/24 md5 + +## initdb scripts +## Specify dictionnary of scripts to be run at first boot +## Alternatively, you can put your scripts under the files/docker-entrypoint-initdb.d directory +## +# initdbScripts: +# my_init_script.sh:| +# #!/bin/sh +# echo "Do something." + ## Optional duration in seconds the pod needs to terminate gracefully. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods ## @@ -108,10 +134,12 @@ persistence: size: 8Gi annotations: {} -## Node labels and tolerations for pod assignment +## Node, affinity and tolerations labels for pod assignment ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector +## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature nodeSelector: {} +affinity: {} tolerations: [] ## Configure resource requests and limits From 44ae4fb911cd581950d6ee6e677b935752d01fcc Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Wed, 14 Nov 2018 22:48:25 +0000 Subject: [PATCH 134/153] kubeapps: bump chart version to 0.9.8 --- bitnami/kubeapps/Chart.yaml | 4 +- bitnami/kubeapps/README.md | 2 +- .../kubeapps/templates/apprepositories.yaml | 17 +++++++ .../kubeapps/templates/apprepository-crd.yaml | 4 +- .../apprepository-jobs-bootstrap-config.yaml | 30 ------------ .../apprepository-jobs-bootstrap-rbac.yaml | 46 ------------------ ...ository-jobs-bootstrap-serviceaccount.yaml | 13 ----- .../apprepository-jobs-bootstrap.yaml | 48 ------------------- 8 files changed, 23 insertions(+), 141 deletions(-) create mode 100644 bitnami/kubeapps/templates/apprepositories.yaml delete mode 100644 bitnami/kubeapps/templates/apprepository-jobs-bootstrap-config.yaml delete mode 100644 bitnami/kubeapps/templates/apprepository-jobs-bootstrap-rbac.yaml delete mode 100644 bitnami/kubeapps/templates/apprepository-jobs-bootstrap-serviceaccount.yaml delete mode 100644 bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index b97f269032..00b090bdeb 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: kubeapps -version: 0.9.7 +version: 0.9.8 appVersion: v1.0.0-beta.4 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png @@ -17,3 +17,5 @@ maintainers: email: containers@bitnami.com - name: prydonius email: adnan@bitnami.com +# 2.10+ required because we need the install-crd hook type +tillerVersion: ">=2.10.0" diff --git a/bitnami/kubeapps/README.md b/bitnami/kubeapps/README.md index 9bcd1283a5..3abf2d372c 100644 --- a/bitnami/kubeapps/README.md +++ b/bitnami/kubeapps/README.md @@ -27,7 +27,7 @@ It also packages the [Bitnami MongoDB chart](https://github.com/helm/charts/tree ## Prerequisites - Kubernetes 1.8+ (tested with Azure Kubernetes Service, Google Kubernetes Engine, minikube and Docker for Desktop Kubernetes) -- Helm 2.9.1+ +- Helm 2.10.0+ - PV provisioner support in the underlying infrastructure - Administrative access to the cluster to create and update RBAC ClusterRoles diff --git a/bitnami/kubeapps/templates/apprepositories.yaml b/bitnami/kubeapps/templates/apprepositories.yaml new file mode 100644 index 0000000000..d279fd9be6 --- /dev/null +++ b/bitnami/kubeapps/templates/apprepositories.yaml @@ -0,0 +1,17 @@ +{{- range .Values.apprepository.initialRepos }} +apiVersion: kubeapps.com/v1alpha1 +kind: AppRepository +metadata: + name: {{ .name }} + labels: + app: {{ template "kubeapps.apprepository.fullname" $ }} + chart: {{ template "kubeapps.chart" $ }} + release: {{ $.Release.Name }} + heritage: {{ $.Release.Service }} +annotations: + helm.sh/hook: pre-install +spec: + type: helm + url: {{ .url }} +--- +{{ end -}} diff --git a/bitnami/kubeapps/templates/apprepository-crd.yaml b/bitnami/kubeapps/templates/apprepository-crd.yaml index abaeb86750..8f41324812 100644 --- a/bitnami/kubeapps/templates/apprepository-crd.yaml +++ b/bitnami/kubeapps/templates/apprepository-crd.yaml @@ -1,4 +1,4 @@ -{{- if or (not (.Capabilities.APIVersions.Has "kubeapps.com/v1alpha1")) (.Release.IsUpgrade) -}} +{{- if not (.Capabilities.APIVersions.Has "kubeapps.com/v1alpha1") -}} # The condition above will be true if another instance of Kubeapps is # already installed apiVersion: apiextensions.k8s.io/v1beta1 @@ -6,7 +6,7 @@ kind: CustomResourceDefinition metadata: name: apprepositories.kubeapps.com annotations: - "helm.sh/resource-policy": keep + "helm.sh/hook": crd-install labels: app: {{ template "kubeapps.apprepository.fullname" . }} chart: {{ template "kubeapps.chart" . }} diff --git a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-config.yaml b/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-config.yaml deleted file mode 100644 index 400eabe588..0000000000 --- a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-config.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -data: - apprepositories.yaml: |- - {{- range .Values.apprepository.initialRepos }} - apiVersion: kubeapps.com/v1alpha1 - kind: AppRepository - metadata: - name: {{ .name }} - labels: - app: {{ template "kubeapps.apprepository.fullname" $ }} - chart: {{ template "kubeapps.chart" $ }} - release: {{ $.Release.Name }} - heritage: {{ $.Release.Service }} - spec: - type: helm - url: {{ .url }} - --- - {{ end -}} diff --git a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-rbac.yaml b/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-rbac.yaml deleted file mode 100644 index dd1d7fcc24..0000000000 --- a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-rbac.yaml +++ /dev/null @@ -1,46 +0,0 @@ -{{- if .Values.rbac.create -}} -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: Role -metadata: - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -rules: -- apiGroups: - - kubeapps.com - resources: - - apprepositories - verbs: - - get - - create - - delete ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: RoleBinding -metadata: - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} -subjects: -- kind: ServiceAccount - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - namespace: {{ .Release.Namespace }} -{{- end -}} diff --git a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-serviceaccount.yaml b/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-serviceaccount.yaml deleted file mode 100644 index fb5527f588..0000000000 --- a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap-serviceaccount.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} diff --git a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml b/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml deleted file mode 100644 index c2a4ed2df7..0000000000 --- a/bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - annotations: - helm.sh/hook: post-install - helm.sh/hook-delete-policy: hook-succeeded - labels: - app: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -spec: - template: - metadata: - labels: - app: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - release: {{ .Release.Name }} - spec: - containers: - - name: kubectl - image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }} - command: - - kubectl - - apply - - -f - - /tmp/apprepositories/apprepositories.yaml - volumeMounts: - - mountPath: /tmp/apprepositories - name: apprepositories-config - volumes: - - name: apprepositories-config - configMap: - name: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - restartPolicy: OnFailure - serviceAccountName: {{ template "kubeapps.apprepository-jobs-bootstrap.fullname" . }} - {{- with .Values.hooks.nodeSelector }} - nodeSelector: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.hooks.affinity }} - affinity: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with.Values.hooks.tolerations }} - tolerations: -{{ toYaml . | indent 8 }} - {{- end }} From 0b8c14c3b6ecef5935d63040538870d70616125b Mon Sep 17 00:00:00 2001 From: kubernetes-bitnami Date: Thu, 15 Nov 2018 01:40:30 +0000 Subject: [PATCH 135/153] kubeapps: bump chart version to 1.0.0 --- bitnami/kubeapps/Chart.yaml | 4 +- bitnami/kubeapps/requirements.lock | 4 +- .../templates/apprepository-deployment.yaml | 1 + .../templates/apprepository-rbac.yaml | 40 ------------- .../templates/kubeapps-jobs-upgrade-rbac.yaml | 57 ------------------ .../kubeapps-jobs-upgrade-serviceaccount.yaml | 13 ----- .../templates/kubeapps-jobs-upgrade.yaml | 58 ------------------- .../templates/tiller-proxy-deployment.yaml | 1 + bitnami/kubeapps/values.yaml | 10 ++-- 9 files changed, 11 insertions(+), 177 deletions(-) delete mode 100644 bitnami/kubeapps/templates/kubeapps-jobs-upgrade-rbac.yaml delete mode 100644 bitnami/kubeapps/templates/kubeapps-jobs-upgrade-serviceaccount.yaml delete mode 100644 bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml diff --git a/bitnami/kubeapps/Chart.yaml b/bitnami/kubeapps/Chart.yaml index 00b090bdeb..e5adf176d5 100644 --- a/bitnami/kubeapps/Chart.yaml +++ b/bitnami/kubeapps/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: kubeapps -version: 0.9.8 -appVersion: v1.0.0-beta.4 +version: 1.0.0 +appVersion: v1.0.0 description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png keywords: diff --git a/bitnami/kubeapps/requirements.lock b/bitnami/kubeapps/requirements.lock index 861eb9fe7d..fda687ef07 100644 --- a/bitnami/kubeapps/requirements.lock +++ b/bitnami/kubeapps/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mongodb repository: https://kubernetes-charts.storage.googleapis.com - version: 4.3.7 + version: 4.9.0 digest: sha256:415440e73af7d4b02a10a15f28bb2fc095cbdffdc2e1676d76e0f0eaa1632d50 -generated: 2018-09-28T12:48:52.725939266+02:00 +generated: 2018-11-14T11:54:24.338893216Z diff --git a/bitnami/kubeapps/templates/apprepository-deployment.yaml b/bitnami/kubeapps/templates/apprepository-deployment.yaml index 6dc95d22ab..579a11c07d 100644 --- a/bitnami/kubeapps/templates/apprepository-deployment.yaml +++ b/bitnami/kubeapps/templates/apprepository-deployment.yaml @@ -27,6 +27,7 @@ spec: - /apprepository-controller args: - --logtostderr + - --user-agent-comment=kubeapps/{{ .Chart.AppVersion }} - --repo-sync-image={{ template "kubeapps.image" (list .Values.apprepository.syncImage .Values.global) }} - --namespace={{ .Release.Namespace }} - --mongo-url={{ template "kubeapps.mongodb.fullname" . }} diff --git a/bitnami/kubeapps/templates/apprepository-rbac.yaml b/bitnami/kubeapps/templates/apprepository-rbac.yaml index 3646b2c242..8e65e8bf9b 100644 --- a/bitnami/kubeapps/templates/apprepository-rbac.yaml +++ b/bitnami/kubeapps/templates/apprepository-rbac.yaml @@ -1,44 +1,4 @@ {{- if .Values.rbac.create -}} -# Need a cluster role because client-go v5.0.1 does not support namespaced -# informers -# TODO: remove when we update to client-go v6.0.0 -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: {{ template "kubeapps.apprepository.fullname" . }} - labels: - app: {{ template "kubeapps.apprepository.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -rules: -- apiGroups: - - batch - resources: - - cronjobs - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: {{ template "kubeapps.apprepository.fullname" . }} - labels: - app: {{ template "kubeapps.apprepository.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ template "kubeapps.apprepository.fullname" . }} -subjects: -- kind: ServiceAccount - name: {{ template "kubeapps.apprepository.fullname" . }} - namespace: {{ .Release.Namespace }} ---- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: diff --git a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade-rbac.yaml b/bitnami/kubeapps/templates/kubeapps-jobs-upgrade-rbac.yaml deleted file mode 100644 index 73880ffe2c..0000000000 --- a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade-rbac.yaml +++ /dev/null @@ -1,57 +0,0 @@ -{{- if .Values.rbac.create -}} -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: Role -metadata: - name: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - annotations: - helm.sh/hook: post-upgrade - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -rules: -- apiGroups: - - kubeapps.com - resources: - - apprepositories - verbs: - - get - - create - - patch - - delete -- apiGroups: - - "" - resources: - - secrets - - pods - verbs: - - get - - list - - create - - delete ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: RoleBinding -metadata: - name: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - annotations: - helm.sh/hook: post-upgrade - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} -subjects: -- kind: ServiceAccount - name: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - namespace: {{ .Release.Namespace }} -{{- end -}} diff --git a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade-serviceaccount.yaml b/bitnami/kubeapps/templates/kubeapps-jobs-upgrade-serviceaccount.yaml deleted file mode 100644 index db65cc1572..0000000000 --- a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade-serviceaccount.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - annotations: - helm.sh/hook: post-upgrade - helm.sh/hook-delete-policy: hook-succeeded - helm.sh/hook-weight: "-10" - labels: - app: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} diff --git a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml b/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml deleted file mode 100644 index 8983832ba9..0000000000 --- a/bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml +++ /dev/null @@ -1,58 +0,0 @@ -# This is a temporary upgrade hook for installating a version prior -# to 0.6 since the process of creating the mongodb secret changed -# It should be removed at https://github.com/kubeapps/kubeapps/issues/699 -# This Job creates the mongodb credentials secret if it doesn't exists -# and it resyncs the existing apprepositories. -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - annotations: - helm.sh/hook: post-upgrade - helm.sh/hook-delete-policy: hook-succeeded - labels: - app: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - chart: {{ template "kubeapps.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -spec: - template: - metadata: - labels: - app: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - release: {{ .Release.Name }} - spec: - containers: - - name: kubectl - image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }} - command: - - /bin/sh - - -c - args: - - |- - # Recreate MongoDB secret if doesn't exists (happens for chart versions < 0.5.2) - if kubectl get secrets -n {{ .Release.Namespace }} {{ .Values.mongodb.existingSecret }}; then - # Secret exists, do nothing - echo "MongoDB secret found" - else - # Secret doesn't exists, create it and restart mongodb - kubectl create secret generic -n {{ .Release.Namespace }} {{ .Values.mongodb.existingSecret }} --from-literal mongodb-root-password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` - kubectl delete pods -n {{ .Release.Namespace }} -l app=mongodb,release={{ .Release.Name }} - kubectl rollout status -n {{ .Release.Namespace }} deployment/{{ .Release.Name }}-mongodb - # Re-sync repositories reseting resyncRequests - kubectl get apprepositories -o=name -n kubeapps {{ .Release.Namespace }} | xargs kubectl patch $1 -n {{ .Release.Namespace }} --type merge -p '{ "spec": { "resyncRequests": 0 } }' - fi - restartPolicy: OnFailure - serviceAccountName: {{ template "kubeapps.kubeapps-jobs-upgrade.fullname" . }} - {{- with .Values.hooks.nodeSelector }} - nodeSelector: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.hooks.affinity }} - affinity: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.hooks.tolerations }} - tolerations: -{{ toYaml . | indent 8 }} - {{- end }} diff --git a/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml b/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml index 31e9c39e00..70ac060b12 100644 --- a/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml +++ b/bitnami/kubeapps/templates/tiller-proxy-deployment.yaml @@ -27,6 +27,7 @@ spec: - /proxy args: - --host={{ .Values.tillerProxy.host }} + - --user-agent-comment=kubeapps/{{ .Chart.AppVersion }} {{- if .Values.tillerProxy.tls }} - --tls {{- if .Values.tillerProxy.tls.verify }} diff --git a/bitnami/kubeapps/values.yaml b/bitnami/kubeapps/values.yaml index 7cba0cde4a..3dee712326 100644 --- a/bitnami/kubeapps/values.yaml +++ b/bitnami/kubeapps/values.yaml @@ -92,12 +92,12 @@ apprepository: image: registry: docker.io repository: kubeapps/apprepository-controller - tag: v1.0.0-beta.4 + tag: v1.0.0 # Image used to perform chart repository syncs syncImage: registry: quay.io repository: helmpack/chart-repo - tag: v1.0.1 + tag: v1.0.2 initialRepos: - name: stable url: https://kubernetes-charts.storage.googleapis.com @@ -138,7 +138,7 @@ tillerProxy: image: registry: docker.io repository: kubeapps/tiller-proxy - tag: v1.0.0-beta.4 + tag: v1.0.0 service: port: 8080 host: tiller-deploy.kube-system:44134 @@ -165,7 +165,7 @@ chartsvc: image: registry: quay.io repository: helmpack/chartsvc - tag: v1.0.1 + tag: v1.0.2 service: port: 8080 # https://github.com/kubeapps/kubeapps/issues/478#issuecomment-422979262 @@ -200,7 +200,7 @@ dashboard: image: registry: docker.io repository: kubeapps/dashboard - tag: v1.0.0-beta.4 + tag: v1.0.0 service: port: 8080 livenessProbe: From f4f0cc93ab8c9071eb1c3348acfc6d42585789e6 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Thu, 15 Nov 2018 05:11:40 +0000 Subject: [PATCH 136/153] consul: update to `1.4.0` Signed-off-by: Bitnami Containers --- bitnami/consul/values-production.yaml | 2 +- bitnami/consul/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/consul/values-production.yaml b/bitnami/consul/values-production.yaml index 8a26e29ae5..636af39852 100644 --- a/bitnami/consul/values-production.yaml +++ b/bitnami/consul/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/consul - tag: 1.3.1 + tag: 1.4.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/consul/values.yaml b/bitnami/consul/values.yaml index 41e5592871..dc5b8a670e 100644 --- a/bitnami/consul/values.yaml +++ b/bitnami/consul/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/consul - tag: 1.3.1 + tag: 1.4.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 91f8edfd7a8f6e01eebaddf61cbcdedc3ccf15a8 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Thu, 15 Nov 2018 05:11:40 +0000 Subject: [PATCH 137/153] consul: bump chart appVersion to `1.4.0` Signed-off-by: Bitnami Containers --- bitnami/consul/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index f2430d3d12..b3f7c3a056 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -1,6 +1,6 @@ name: consul version: 2.4.2 -appVersion: 1.3.1 +appVersion: 1.4.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy. From 2e5dbcba794cd35ac7ba43d27a9f3a9b14c93bf9 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Thu, 15 Nov 2018 05:11:40 +0000 Subject: [PATCH 138/153] consul: bump chart version to `2.4.3` Signed-off-by: Bitnami Containers --- bitnami/consul/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/consul/Chart.yaml b/bitnami/consul/Chart.yaml index b3f7c3a056..3e43e080e1 100755 --- a/bitnami/consul/Chart.yaml +++ b/bitnami/consul/Chart.yaml @@ -1,5 +1,5 @@ name: consul -version: 2.4.2 +version: 2.4.3 appVersion: 1.4.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and From b6d9265a6459f8698f18c3fd21754ddb0fba2222 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Thu, 15 Nov 2018 12:51:35 +0000 Subject: [PATCH 139/153] elasticsearch: update to `6.5.0` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/values-production.yaml | 2 +- bitnami/elasticsearch/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 1420d91e82..46b89df634 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.4.3 + tag: 6.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index dd77ed37d3..be7bf1b5b8 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.4.3 + tag: 6.5.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From d81a6f663f4fdaef4f47c0c8180b4818e515849c Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Thu, 15 Nov 2018 12:51:35 +0000 Subject: [PATCH 140/153] elasticsearch: bump chart appVersion to `6.5.0` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 72174c2bfa..3a005e8cea 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,6 +1,6 @@ name: elasticsearch version: 4.2.0 -appVersion: 6.4.3 +appVersion: 6.5.0 description: A highly scalable open-source full-text search and analytics engine keywords: - elasticsearch From d09b2d701a81eb0ae87fd94c04fba2f6b59d819a Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Thu, 15 Nov 2018 12:51:35 +0000 Subject: [PATCH 141/153] elasticsearch: bump chart version to `4.2.1` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 3a005e8cea..d09b56beba 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.2.0 +version: 4.2.1 appVersion: 6.5.0 description: A highly scalable open-source full-text search and analytics engine keywords: From c936eaea8005f8524a9df8084371ef3761ade364 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Fri, 16 Nov 2018 10:36:31 +0000 Subject: [PATCH 142/153] Synchronize upstreamed folder to a6bb611f6 --- upstreamed/nats/Chart.yaml | 2 +- upstreamed/nats/README.md | 163 ++++++++++--------- upstreamed/nats/templates/NOTES.txt | 12 +- upstreamed/nats/templates/statefulset.yaml | 6 +- upstreamed/nats/values-production.yaml | 57 ++++--- upstreamed/nats/values.yaml | 57 ++++--- upstreamed/odoo/Chart.yaml | 4 +- upstreamed/odoo/requirements.lock | 4 +- upstreamed/odoo/values.yaml | 2 +- upstreamed/postgresql/Chart.yaml | 2 +- upstreamed/postgresql/templates/_helpers.tpl | 4 + 11 files changed, 174 insertions(+), 139 deletions(-) diff --git a/upstreamed/nats/Chart.yaml b/upstreamed/nats/Chart.yaml index 906f96d13f..b32483b5b1 100644 --- a/upstreamed/nats/Chart.yaml +++ b/upstreamed/nats/Chart.yaml @@ -1,5 +1,5 @@ name: nats -version: 1.2.0 +version: 1.3.0 appVersion: 1.3.0 description: An open-source, cloud-native messaging system keywords: diff --git a/upstreamed/nats/README.md b/upstreamed/nats/README.md index 37f57ec30c..5d8f1e841f 100644 --- a/upstreamed/nats/README.md +++ b/upstreamed/nats/README.md @@ -45,87 +45,88 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configurable parameters of the NATS chart and their default values. -| Parameter | Description | Default | -|--------------------------------------|----------------------------------------------------------------------------------------------|-----------------------------------| -| `global.imageRegistry` | Global Docker image registry | `nil` | -| `image.registry` | NATS image registry | `docker.io` | -| `image.repository` | NATS Image name | `bitnami/nats` | -| `image.tag` | NATS Image tag | `{VERSION}` | -| `image.pullPolicy` | Image pull policy | `Always` | -| `image.pullSecrets` | Specify image pull secrets | `nil` | -| `auth.enabled` | Switch to enable/disable client authentication | `true` | -| `auth.user` | Client authentication user | `nats_cluster` | -| `auth.password` | Client authentication password | `random alhpanumeric string (10)` | -| `auth.token` | Client authentication token | `nil` | -| `clusterAuth.enabled` | Switch to enable/disable cluster authentication | `true` | -| `clusterAuth.user` | Cluster authentication user | `nats_cluster` | -| `clusterAuth.password` | Cluster authentication password | `random alhpanumeric string (10)` | -| `clusterAuth.token` | Cluster authentication token | `nil` | -| `debug.enabled` | Switch to enable/disable debug on logging | `false` | -| `debug.trace` | Switch to enable/disable trace debug level on logging | `false` | -| `debug.logtime` | Switch to enable/disable logtime on logging | `false` | -| `maxConnections` | Max. number of client connections | `nil` | -| `maxControlLine` | Max. protocol control line | `nil` | -| `maxPayload` | Max. payload | `nil` | -| `writeDeadline` | Duration the server can block on a socket write to a client | `nil` | -| `replicaCount` | Number of NATS nodes | `1` | -| `securityContext.enabled` | Enable security context | `true` | -| `securityContext.fsGroup` | Group ID for the container | `1001` | -| `securityContext.runAsUser` | User ID for the container | `1001` | -| `statefulset.updateStrategy` | Statefulsets Update strategy | `OnDelete` | -| `rollingUpdatePartition` | Partition for Rolling Update strategy | `nil` | -| `podLabels` | Additional labels to be added to pods | {} | -| `podAnnotations` | Annotations to be added to pods | {} | -| `nodeSelector` | Node labels for pod assignment | `nil` | -| `schedulerName` | Name of an alternate | `nil` | -| `antiAffinity` | Anti-affinity for pod assignment | `soft` | -| `tolerations` | Toleration labels for pod assignment | `nil` | -| `resources` | CPU/Memory resource requests/limits | {} | -| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | -| `livenessProbe.periodSeconds` | How often to perform the probe | `10` | -| `livenessProbe.timeoutSeconds` | When the probe times out | `5` | -| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | -| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | -| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | `5` | -| `readinessProbe.periodSeconds` | How often to perform the probe | `10` | -| `readinessProbe.timeoutSeconds` | When the probe times out | `5` | -| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | -| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | -| `clientService.type` | Kubernetes Service type (NATS client) | `ClusterIP` | -| `clientService.port` | NATS client port | `4222` | -| `clientService.nodePort` | Port to bind to for NodePort service type (NATS client) | `nil` | -| `clientService.annotations` | Annotations for NATS client service | {} | -| `clientService.loadBalancerIP` | loadBalancerIP if NATS client service type is `LoadBalancer` | `nil` | -| `clusterService.type` | Kubernetes Service type (NATS cluster) | `ClusterIP` | -| `clusterService.port` | NATS cluster port | `6222` | -| `clusterService.nodePort` | Port to bind to for NodePort service type (NATS cluster) | `nil` | -| `clusterService.annotations` | Annotations for NATS cluster service | {} | -| `clusterService.loadBalancerIP` | loadBalancerIP if NATS cluster service type is `LoadBalancer` | `nil` | -| `monitoringService.type` | Kubernetes Service type (NATS monitoring) | `ClusterIP` | -| `monitoringService.port` | NATS monitoring port | `8222` | -| `monitoringService.nodePort` | Port to bind to for NodePort service type (NATS monitoring) | `nil` | -| `monitoringService.annotations` | Annotations for NATS monitoring service | {} | -| `monitoringService.loadBalancerIP` | loadBalancerIP if NATS monitoring service type is `LoadBalancer` | `nil` | -| `ingress.enabled` | Enable ingress controller resource | `false` | -| `ingress.hosts[0].name` | Hostname for NATS monitoring | `nats.local` | -| `ingress.hosts[0].path` | Path within the url structure | `/` | -| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | -| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `nats.local-tls-secret` | -| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | -| `ingress.secrets[0].name` | TLS Secret Name | `nil` | -| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | -| `ingress.secrets[0].key` | TLS Secret Key | `nil` | -| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | -| `networkPolicy.allowExternal` | Allow external connections | `true` | -| `sidecars` | Attach additional containers to the pod. | `nil` | -| `metrics.enabled` | Start a side-car prometheus exporter | `false` | -| `metrics.image.registry` | MongoDB exporter image registry | `docker.io` | -| `metrics.image.repository` | MongoDB exporter image name | `appcelerator/prometheus-nats-exporter` | -| `metrics.image.tag` | MongoDB exporter image tag | `0.17.0` | -| `metrics.image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `metrics.image.pullSecrets` | Specify docker-registry secret names as an array | `nil` | -| `metrics.podAnnotations` | Additional annotations for Metrics exporter pod | {} | -| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` | +| Parameter | Description | Default | +| ------------------------------------ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | +| `global.imageRegistry` | Global Docker image registry | `nil` | +| `image.registry` | NATS image registry | `docker.io` | +| `image.repository` | NATS Image name | `bitnami/nats` | +| `image.tag` | NATS Image tag | `{VERSION}` | +| `image.pullPolicy` | Image pull policy | `Always` | +| `image.pullSecrets` | Specify image pull secrets | `nil` | +| `auth.enabled` | Switch to enable/disable client authentication | `true` | +| `auth.user` | Client authentication user | `nats_cluster` | +| `auth.password` | Client authentication password | `random alhpanumeric string (10)` | +| `auth.token` | Client authentication token | `nil` | +| `clusterAuth.enabled` | Switch to enable/disable cluster authentication | `true` | +| `clusterAuth.user` | Cluster authentication user | `nats_cluster` | +| `clusterAuth.password` | Cluster authentication password | `random alhpanumeric string (10)` | +| `clusterAuth.token` | Cluster authentication token | `nil` | +| `debug.enabled` | Switch to enable/disable debug on logging | `false` | +| `debug.trace` | Switch to enable/disable trace debug level on logging | `false` | +| `debug.logtime` | Switch to enable/disable logtime on logging | `false` | +| `maxConnections` | Max. number of client connections | `nil` | +| `maxControlLine` | Max. protocol control line | `nil` | +| `maxPayload` | Max. payload | `nil` | +| `writeDeadline` | Duration the server can block on a socket write to a client | `nil` | +| `replicaCount` | Number of NATS nodes | `1` | +| `securityContext.enabled` | Enable security context | `true` | +| `securityContext.fsGroup` | Group ID for the container | `1001` | +| `securityContext.runAsUser` | User ID for the container | `1001` | +| `statefulset.updateStrategy` | Statefulsets Update strategy | `OnDelete` | +| `statefulset.rollingUpdatePartition` | Partition for Rolling Update strategy | `nil` | +| `podLabels` | Additional labels to be added to pods | {} | +| `podAnnotations` | Annotations to be added to pods | {} | +| `nodeSelector` | Node labels for pod assignment | `nil` | +| `schedulerName` | Name of an alternate | `nil` | +| `antiAffinity` | Anti-affinity for pod assignment | `soft` | +| `tolerations` | Toleration labels for pod assignment | `nil` | +| `resources` | CPU/Memory resource requests/limits | {} | +| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | +| `livenessProbe.periodSeconds` | How often to perform the probe | `10` | +| `livenessProbe.timeoutSeconds` | When the probe times out | `5` | +| `livenessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | +| `livenessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | +| `readinessProbe.initialDelaySeconds` | Delay before readiness probe is initiated | `5` | +| `readinessProbe.periodSeconds` | How often to perform the probe | `10` | +| `readinessProbe.timeoutSeconds` | When the probe times out | `5` | +| `readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `6` | +| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` | +| `clientService.type` | Kubernetes Service type (NATS client) | `ClusterIP` | +| `clientService.port` | NATS client port | `4222` | +| `clientService.nodePort` | Port to bind to for NodePort service type (NATS client) | `nil` | +| `clientService.annotations` | Annotations for NATS client service | {} | +| `clientService.loadBalancerIP` | loadBalancerIP if NATS client service type is `LoadBalancer` | `nil` | +| `clusterService.type` | Kubernetes Service type (NATS cluster) | `ClusterIP` | +| `clusterService.port` | NATS cluster port | `6222` | +| `clusterService.nodePort` | Port to bind to for NodePort service type (NATS cluster) | `nil` | +| `clusterService.annotations` | Annotations for NATS cluster service | {} | +| `clusterService.loadBalancerIP` | loadBalancerIP if NATS cluster service type is `LoadBalancer` | `nil` | +| `monitoringService.type` | Kubernetes Service type (NATS monitoring) | `ClusterIP` | +| `monitoringService.port` | NATS monitoring port | `8222` | +| `monitoringService.nodePort` | Port to bind to for NodePort service type (NATS monitoring) | `nil` | +| `monitoringService.annotations` | Annotations for NATS monitoring service | {} | +| `monitoringService.loadBalancerIP` | loadBalancerIP if NATS monitoring service type is `LoadBalancer` | `nil` | +| `ingress.enabled` | Enable ingress controller resource | `false` | +| `ingress.hosts[0].name` | Hostname for NATS monitoring | `nats.local` | +| `ingress.hosts[0].path` | Path within the url structure | `/` | +| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` | +| `ingress.hosts[0].tlsSecret` | TLS Secret (certificates) | `nats.local-tls-secret` | +| `ingress.hosts[0].annotations` | Annotations for this host's ingress record | `[]` | +| `ingress.secrets[0].name` | TLS Secret Name | `nil` | +| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | +| `ingress.secrets[0].key` | TLS Secret Key | `nil` | +| `networkPolicy.enabled` | Enable NetworkPolicy | `false` | +| `networkPolicy.allowExternal` | Allow external connections | `true` | +| `metrics.enabled` | Enable Prometheus metrics via exporter side-car | `false` | +| `metrics.image.registry` | Prometheus metrics exporter image registry | `docker.io` | +| `metrics.image.repository` | Prometheus metrics exporter image name | `synadia/prometheus-nats-exporter` | +| `metrics.image.tag` | Prometheus metrics exporter image tag | `0.1.0` | +| `metrics.image.pullPolicy` | Prometheus metrics image pull policy | `IfNotPresent` | +| `metrics.image.pullSecrets` | Prometheus metrics image pull secrets | `nil` | +| `metrics.port` | Prometheus metrics exporter port | `7777` | +| `metrics.podAnnotations` | Prometheus metrics exporter annotations | `prometheus.io/scrape: "true"`, `prometheus.io/port: "7777"` | +| `metrics.resources` | Prometheus metrics exporter resource requests/limit | {} | +| `sidecars` | Attach additional containers to the pod | `nil` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/upstreamed/nats/templates/NOTES.txt b/upstreamed/nats/templates/NOTES.txt index 7f275f53e3..023671821e 100644 --- a/upstreamed/nats/templates/NOTES.txt +++ b/upstreamed/nats/templates/NOTES.txt @@ -74,5 +74,15 @@ To access the Monitoring svc from outside the cluster, follow the steps below: kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "nats.fullname" . }}-monitoring {{ .Values.monitoringService.port }}:{{ .Values.monitoringService.port }} {{- end }} -2. Access the NATS monitoring opening the URL obtained on a browser. +2. Access NATS monitoring by opening the URL obtained in a browser. +{{- end }} + +{{- if .Values.metrics.enabled }} + +3. Get the NATS Prometheus Metrics URL by running: + + echo "Prometheus Metrics URL: http://127.0.0.1:{{ .Values.metrics.port }}" + kubectl port-forward --namespace {{ .Release.Namespace }} {{ template "nats.fullname" . }}-0 {{ .Values.metrics.port }}:{{ .Values.metrics.port }} + +4. Access NATS Prometheus metrics by opening the URL obtained in a browser. {{- end }} diff --git a/upstreamed/nats/templates/statefulset.yaml b/upstreamed/nats/templates/statefulset.yaml index 503aec47ad..ff615d2ad3 100644 --- a/upstreamed/nats/templates/statefulset.yaml +++ b/upstreamed/nats/templates/statefulset.yaml @@ -131,10 +131,12 @@ spec: - name: metrics image: {{ template "metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} - command: [ '/prometheus-nats-exporter', '-varz', 'http://localhost:{{ .Values.monitoringService.port }}' ] + args: +{{ toYaml .Values.metrics.args | indent 10 -}} + - "http://localhost:{{ .Values.monitoringService.port }}" ports: - name: metrics - containerPort: 7777 + containerPort: {{ .Values.metrics.port }} livenessProbe: httpGet: path: /metrics diff --git a/upstreamed/nats/values-production.yaml b/upstreamed/nats/values-production.yaml index 3952144f4a..612668e0eb 100644 --- a/upstreamed/nats/values-production.yaml +++ b/upstreamed/nats/values-production.yaml @@ -246,6 +246,39 @@ ingress: # key: # certificate: +## Metrics / Prometheus NATS Exporter +## +## ref: https://github.com/nats-io/prometheus-nats-exporter +metrics: + enabled: true + image: + registry: docker.io + repository: synadia/prometheus-nats-exporter + tag: 0.1.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} + ## Metrics exporter port + port: 7777 + ## Metrics exporter annotations + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "7777" + ## Metrics exporter flags + args: + - -connz + - -routez + - -subz + - -varz + sidecars: ## Add sidecars to the pod. ## e.g. @@ -255,27 +288,3 @@ sidecars: # ports: # - name: portname # containerPort: 1234 - -## Prometheus Exporter / Metrics -## -metrics: - enabled: true - image: - registry: docker.io - repository: appcelerator/prometheus-nats-exporter - tag: 0.17.0 - pullPolicy: IfNotPresent - ## Optionally specify an array of imagePullSecrets. - ## Secrets must be manually created in the namespace. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - # pullSecrets: - # - myRegistrKeySecretName - ## Metrics exporter resource requests and limits - ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ - ## - # resources: {} - ## Metrics exporter pod Annotation - podAnnotations: - prometheus.io/scrape: "true" - prometheus.io/port: "7777" diff --git a/upstreamed/nats/values.yaml b/upstreamed/nats/values.yaml index cd7ec5ac06..7368dc2d76 100644 --- a/upstreamed/nats/values.yaml +++ b/upstreamed/nats/values.yaml @@ -250,6 +250,39 @@ ingress: # key: # certificate: +## Metrics / Prometheus NATS Exporter +## +## ref: https://github.com/nats-io/prometheus-nats-exporter +metrics: + enabled: false + image: + registry: docker.io + repository: synadia/prometheus-nats-exporter + tag: 0.1.0 + pullPolicy: IfNotPresent + ## Optionally specify an array of imagePullSecrets. + ## Secrets must be manually created in the namespace. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ + ## + # pullSecrets: + # - myRegistrKeySecretName + ## Metrics exporter resource requests and limits + ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ + ## + # resources: {} + ## Metrics exporter port + port: 7777 + ## Metrics exporter annotations + podAnnotations: + prometheus.io/scrape: "true" + prometheus.io/port: "7777" + ## Metrics exporter flags + args: + - -connz + - -routez + - -subz + - -varz + sidecars: ## Add sidecars to the pod. ## e.g. @@ -259,27 +292,3 @@ sidecars: # ports: # - name: portname # containerPort: 1234 - -## Prometheus Exporter / Metrics -## -metrics: - enabled: false - image: - registry: docker.io - repository: appcelerator/prometheus-nats-exporter - tag: 0.17.0 - pullPolicy: IfNotPresent - ## Optionally specify an array of imagePullSecrets. - ## Secrets must be manually created in the namespace. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - # pullSecrets: - # - myRegistrKeySecretName - ## Metrics exporter resource requests and limits - ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ - ## - # resources: {} - ## Metrics exporter pod Annotation - podAnnotations: - prometheus.io/scrape: "true" - prometheus.io/port: "7777" diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index 313df0cd25..f771376373 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,6 +1,6 @@ name: odoo -version: 4.0.1 -appVersion: 11.0.20181015 +version: 4.0.2 +appVersion: 11.0.20181115 description: A suite of web based open source business apps. home: https://www.odoo.com/ icon: https://bitnami.com/assets/stacks/odoo/img/odoo-stack-110x117.png diff --git a/upstreamed/odoo/requirements.lock b/upstreamed/odoo/requirements.lock index 0654004aa1..d11dab4bd6 100644 --- a/upstreamed/odoo/requirements.lock +++ b/upstreamed/odoo/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: postgresql repository: https://kubernetes-charts.storage.googleapis.com/ - version: 2.1.0 + version: 2.6.0 digest: sha256:972c7085960fbe4a3f530f726f5a1cc6fe038f0ab84df632f6427c3a49f3f366 -generated: 2018-10-24T11:56:43.864565+02:00 +generated: 2018-11-15T09:04:24.989806115Z diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index c97ae935ed..e4cee02f92 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/odoo - tag: 11.0.20181015 + tag: 11.0.20181115 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 684af190a8..72b64dafdb 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.6.0 +version: 2.6.1 appVersion: 10.6.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/templates/_helpers.tpl b/upstreamed/postgresql/templates/_helpers.tpl index 8d95764621..f62c720d29 100644 --- a/upstreamed/postgresql/templates/_helpers.tpl +++ b/upstreamed/postgresql/templates/_helpers.tpl @@ -11,9 +11,13 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "postgresql.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- end -}} {{/* Create a default fully qualified app name. From 217f2f03a237d1b228241755df3369e1a1370a65 Mon Sep 17 00:00:00 2001 From: juan131 Date: Fri, 16 Nov 2018 15:32:31 +0100 Subject: [PATCH 143/153] [bitnami/external-dns] Add instructions to install ExternalDN on AWS --- bitnami/external-dns/Chart.yaml | 2 +- bitnami/external-dns/README.md | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/bitnami/external-dns/Chart.yaml b/bitnami/external-dns/Chart.yaml index 6dd82b1d0a..d90bcccbff 100644 --- a/bitnami/external-dns/Chart.yaml +++ b/bitnami/external-dns/Chart.yaml @@ -1,5 +1,5 @@ name: external-dns -version: 1.1.1 +version: 1.1.2 appVersion: 0.5.8 description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable. keywords: diff --git a/bitnami/external-dns/README.md b/bitnami/external-dns/README.md index 0285386ace..653f60f377 100644 --- a/bitnami/external-dns/README.md +++ b/bitnami/external-dns/README.md @@ -125,7 +125,23 @@ $ helm install --name my-release -f values.yaml bitnami/external-dns Find information about the requirements for each DNS provider on the link below: - - [ExternalDNS Tutorials](https://github.com/kubernetes-incubator/external-dns/tree/master/docs/tutorials) +- [ExternalDNS Tutorials](https://github.com/kubernetes-incubator/external-dns/tree/master/docs/tutorials) + +For instance, to install ExternalDNS on AWS, you need to: + +- Provide the K8s worker node which runs the cluster autoscaler with a minimum IAM policy (check [IAM permissions docs](https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/aws.md#iam-permissions) for more information). +- Setup a hosted zone on Route53 and annotate the Hosted Zone ID and its associated "nameservers" as described on [these docs](https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/aws.md#set-up-a-hosted-zone). +- Install ExternalDNS chart using the command below: + +> Note: replace the placeholder HOSTED_ZONE_NAME with your hosted zoned name. + +```bash +$ helm install --name my-release \ + --set provider=aws \ + --set aws.zoneType=public \ + --set domainFilters=HOSTED_ZONE_NAME \ + bitnami/external-dns +``` ## Upgrading From 9d85e7dfe75b2a9b4100cd9432beca0e344b9ef4 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Sat, 17 Nov 2018 10:36:28 +0000 Subject: [PATCH 144/153] Synchronize upstreamed folder to 2a48f38ee --- upstreamed/dokuwiki/Chart.yaml | 2 +- upstreamed/dokuwiki/README.md | 3 ++- upstreamed/nats/Chart.yaml | 2 +- upstreamed/nats/README.md | 1 + upstreamed/nats/templates/statefulset.yaml | 3 +++ upstreamed/nats/values-production.yaml | 3 +++ upstreamed/nats/values.yaml | 3 +++ upstreamed/orangehrm/Chart.yaml | 2 +- upstreamed/orangehrm/README.md | 3 ++- upstreamed/owncloud/Chart.yaml | 2 +- upstreamed/owncloud/README.md | 3 ++- upstreamed/phabricator/Chart.yaml | 2 +- upstreamed/phabricator/README.md | 3 ++- 13 files changed, 23 insertions(+), 9 deletions(-) diff --git a/upstreamed/dokuwiki/Chart.yaml b/upstreamed/dokuwiki/Chart.yaml index 93ba4b189e..fdca1b2d5c 100644 --- a/upstreamed/dokuwiki/Chart.yaml +++ b/upstreamed/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.3.0 +version: 3.3.1 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/upstreamed/dokuwiki/README.md b/upstreamed/dokuwiki/README.md index 82895da766..5bdfa164c0 100644 --- a/upstreamed/dokuwiki/README.md +++ b/upstreamed/dokuwiki/README.md @@ -130,7 +130,8 @@ $ helm install --name my-release -f values.yaml stable/dokuwiki The [Bitnami DokuWiki](https://github.com/bitnami/bitnami-docker-dokuwiki) image stores the DokuWiki data and configurations at the `/bitnami/dokuwiki` and `/bitnami/apache` paths of the container. -Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. +Persistent Volume Claims are used to keep the data across deployments. There is a [known issue](https://github.com/kubernetes/kubernetes/issues/39178) in Kubernetes Clusters with EBS in different availability zones. Ensure your cluster is configured properly to create Volumes in the same availability zone where the nodes are running. Kuberentes 1.12 solved this issue with the [Volume Binding Mode](https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode). + See the [Configuration](#configuration) section to configure the PVC or to disable persistence. ## Upgrading diff --git a/upstreamed/nats/Chart.yaml b/upstreamed/nats/Chart.yaml index b32483b5b1..2bd85505c4 100644 --- a/upstreamed/nats/Chart.yaml +++ b/upstreamed/nats/Chart.yaml @@ -1,5 +1,5 @@ name: nats -version: 1.3.0 +version: 1.3.1 appVersion: 1.3.0 description: An open-source, cloud-native messaging system keywords: diff --git a/upstreamed/nats/README.md b/upstreamed/nats/README.md index 5d8f1e841f..a524843b01 100644 --- a/upstreamed/nats/README.md +++ b/upstreamed/nats/README.md @@ -81,6 +81,7 @@ The following table lists the configurable parameters of the NATS chart and thei | `antiAffinity` | Anti-affinity for pod assignment | `soft` | | `tolerations` | Toleration labels for pod assignment | `nil` | | `resources` | CPU/Memory resource requests/limits | {} | +| `extraArgs` | Optional flags for NATS | `[]` | | `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` | | `livenessProbe.periodSeconds` | How often to perform the probe | `10` | | `livenessProbe.timeoutSeconds` | When the probe times out | `5` | diff --git a/upstreamed/nats/templates/statefulset.yaml b/upstreamed/nats/templates/statefulset.yaml index ff615d2ad3..46f53ddaa7 100644 --- a/upstreamed/nats/templates/statefulset.yaml +++ b/upstreamed/nats/templates/statefulset.yaml @@ -89,6 +89,9 @@ spec: args: - -c - /opt/bitnami/nats/gnatsd.conf + {{- if .Values.extraArgs }} +{{ toYaml .Values.extraArgs | indent 8 }} + {{- end }} ports: - name: client containerPort: {{ .Values.clientService.port }} diff --git a/upstreamed/nats/values-production.yaml b/upstreamed/nats/values-production.yaml index 612668e0eb..26981c19a4 100644 --- a/upstreamed/nats/values-production.yaml +++ b/upstreamed/nats/values-production.yaml @@ -246,6 +246,9 @@ ingress: # key: # certificate: +# Optional additional arguments +extraArgs: [] + ## Metrics / Prometheus NATS Exporter ## ## ref: https://github.com/nats-io/prometheus-nats-exporter diff --git a/upstreamed/nats/values.yaml b/upstreamed/nats/values.yaml index 7368dc2d76..e9faa9dca5 100644 --- a/upstreamed/nats/values.yaml +++ b/upstreamed/nats/values.yaml @@ -250,6 +250,9 @@ ingress: # key: # certificate: +# Optional additional arguments +extraArgs: [] + ## Metrics / Prometheus NATS Exporter ## ## ref: https://github.com/nats-io/prometheus-nats-exporter diff --git a/upstreamed/orangehrm/Chart.yaml b/upstreamed/orangehrm/Chart.yaml index 547e64b3c3..f3ab4a804b 100644 --- a/upstreamed/orangehrm/Chart.yaml +++ b/upstreamed/orangehrm/Chart.yaml @@ -1,5 +1,5 @@ name: orangehrm -version: 3.2.1 +version: 3.2.2 appVersion: 4.2.0-1 description: OrangeHRM is a free HR management system that offers a wealth of modules to suit the needs of your business. diff --git a/upstreamed/orangehrm/README.md b/upstreamed/orangehrm/README.md index 625389d707..eafa9b28ce 100644 --- a/upstreamed/orangehrm/README.md +++ b/upstreamed/orangehrm/README.md @@ -120,7 +120,8 @@ $ helm install --name my-release -f values.yaml stable/orangehrm The [Bitnami OrangeHRM](https://github.com/bitnami/bitnami-docker-orangehrm) image stores the OrangeHRM data and configurations at the `/bitnami/orangehrm` and `/bitnami/apache` paths of the container. -Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. +Persistent Volume Claims are used to keep the data across deployments. There is a [known issue](https://github.com/kubernetes/kubernetes/issues/39178) in Kubernetes Clusters with EBS in different availability zones. Ensure your cluster is configured properly to create Volumes in the same availability zone where the nodes are running. Kuberentes 1.12 solved this issue with the [Volume Binding Mode](https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode). + See the [Configuration](#configuration) section to configure the PVC or to disable persistence. ## Upgrading diff --git a/upstreamed/owncloud/Chart.yaml b/upstreamed/owncloud/Chart.yaml index 2bf8539221..7e4ee01147 100644 --- a/upstreamed/owncloud/Chart.yaml +++ b/upstreamed/owncloud/Chart.yaml @@ -1,5 +1,5 @@ name: owncloud -version: 3.3.0 +version: 3.3.1 appVersion: 10.0.10 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/upstreamed/owncloud/README.md b/upstreamed/owncloud/README.md index 3e4ad34ed8..398e9f6a7b 100644 --- a/upstreamed/owncloud/README.md +++ b/upstreamed/owncloud/README.md @@ -142,7 +142,8 @@ $ helm install --name my-release -f values.yaml stable/owncloud The [Bitnami ownCloud](https://github.com/bitnami/bitnami-docker-owncloud) image stores the ownCloud data and configurations at the `/bitnami/owncloud` and `/bitnami/apache` paths of the container. -Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. +Persistent Volume Claims are used to keep the data across deployments. There is a [known issue](https://github.com/kubernetes/kubernetes/issues/39178) in Kubernetes Clusters with EBS in different availability zones. Ensure your cluster is configured properly to create Volumes in the same availability zone where the nodes are running. Kuberentes 1.12 solved this issue with the [Volume Binding Mode](https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode). + See the [Configuration](#configuration) section to configure the PVC or to disable persistence. ## Upgrading diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 1dac4d8f9e..32bf8e94ec 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,5 +1,5 @@ name: phabricator -version: 3.3.2 +version: 3.3.3 appVersion: 2018.45.0 description: Collection of open source web applications that help software companies build better software. keywords: diff --git a/upstreamed/phabricator/README.md b/upstreamed/phabricator/README.md index 76656413d0..d45e70ee7a 100644 --- a/upstreamed/phabricator/README.md +++ b/upstreamed/phabricator/README.md @@ -136,7 +136,8 @@ $ helm install --name my-release -f values.yaml stable/phabricator The [Bitnami Phabricator](https://github.com/bitnami/bitnami-docker-phabricator) image stores the Phabricator data and configurations at the `/bitnami/phabricator` and `/bitnami/apache` paths of the container. -Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. +Persistent Volume Claims are used to keep the data across deployments. There is a [known issue](https://github.com/kubernetes/kubernetes/issues/39178) in Kubernetes Clusters with EBS in different availability zones. Ensure your cluster is configured properly to create Volumes in the same availability zone where the nodes are running. Kuberentes 1.12 solved this issue with the [Volume Binding Mode](https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode). + See the [Configuration](#configuration) section to configure the PVC or to disable persistence. ## Ingress With Reverse Proxy And Kube Lego From b4ddbf061d5401b4ca6b9872d462976db3bf63ad Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Mon, 19 Nov 2018 10:36:29 +0000 Subject: [PATCH 145/153] Synchronize upstreamed folder to d5c9a8600 --- upstreamed/phabricator/Chart.yaml | 4 ++-- upstreamed/phabricator/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 32bf8e94ec..8ddef8a125 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,6 +1,6 @@ name: phabricator -version: 3.3.3 -appVersion: 2018.45.0 +version: 3.3.4 +appVersion: 2018.46.0 description: Collection of open source web applications that help software companies build better software. keywords: - phabricator diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index c73265d68f..848b9bf560 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phabricator - tag: 2018.45.0 + tag: 2018.46.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 66092e72b4241f5548e83527ef3ce538f14400cd Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 20 Nov 2018 19:46:14 +0000 Subject: [PATCH 146/153] elasticsearch: update to `6.5.1` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/values-production.yaml | 2 +- bitnami/elasticsearch/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/elasticsearch/values-production.yaml b/bitnami/elasticsearch/values-production.yaml index 46b89df634..33358978a1 100644 --- a/bitnami/elasticsearch/values-production.yaml +++ b/bitnami/elasticsearch/values-production.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.5.0 + tag: 6.5.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images diff --git a/bitnami/elasticsearch/values.yaml b/bitnami/elasticsearch/values.yaml index be7bf1b5b8..d34dccabed 100644 --- a/bitnami/elasticsearch/values.yaml +++ b/bitnami/elasticsearch/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/elasticsearch - tag: 6.5.0 + tag: 6.5.1 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From d290d2f52b6bb4d159f56855f9ffe236e7832064 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 20 Nov 2018 19:46:14 +0000 Subject: [PATCH 147/153] elasticsearch: bump chart appVersion to `6.5.1` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index d09b56beba..3ad2919b25 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,6 +1,6 @@ name: elasticsearch version: 4.2.1 -appVersion: 6.5.0 +appVersion: 6.5.1 description: A highly scalable open-source full-text search and analytics engine keywords: - elasticsearch From d8f8f56e14bb77827571e9f90383e9554ee35676 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 20 Nov 2018 19:46:14 +0000 Subject: [PATCH 148/153] elasticsearch: bump chart version to `4.2.2` Signed-off-by: Bitnami Containers --- bitnami/elasticsearch/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/elasticsearch/Chart.yaml b/bitnami/elasticsearch/Chart.yaml index 3ad2919b25..8e0dd71b4b 100644 --- a/bitnami/elasticsearch/Chart.yaml +++ b/bitnami/elasticsearch/Chart.yaml @@ -1,5 +1,5 @@ name: elasticsearch -version: 4.2.1 +version: 4.2.2 appVersion: 6.5.1 description: A highly scalable open-source full-text search and analytics engine keywords: From 4cc840b371781556ff8ef5242c843a88575a29d9 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 20 Nov 2018 20:16:39 +0000 Subject: [PATCH 149/153] node: update to `8.13.0` Signed-off-by: Bitnami Containers --- bitnami/node/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/node/values.yaml b/bitnami/node/values.yaml index 427fb04b64..9ee0c7f76a 100644 --- a/bitnami/node/values.yaml +++ b/bitnami/node/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/node - tag: 8.12.0-prod + tag: 8.13.0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images From 2e94137647d7fbbdde11c43593eef29ed2870935 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 20 Nov 2018 20:16:43 +0000 Subject: [PATCH 150/153] node: bump chart appVersion to `8.13.0` Signed-off-by: Bitnami Containers --- bitnami/node/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index b08eb00b73..eb4a11e7c0 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,6 +1,6 @@ name: node version: 6.3.0 -appVersion: 8.12.0 +appVersion: 8.13.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: - node From cd7c183d133ace656f5be8c79b30778beddc6aa0 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Tue, 20 Nov 2018 20:16:43 +0000 Subject: [PATCH 151/153] node: bump chart version to `6.3.1` Signed-off-by: Bitnami Containers --- bitnami/node/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/node/Chart.yaml b/bitnami/node/Chart.yaml index eb4a11e7c0..077168d887 100644 --- a/bitnami/node/Chart.yaml +++ b/bitnami/node/Chart.yaml @@ -1,5 +1,5 @@ name: node -version: 6.3.0 +version: 6.3.1 appVersion: 8.13.0 description: Event-driven I/O server-side JavaScript environment based on V8 keywords: From 60adb00bc189f05a19d70c878a6f7f62871f84d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n-Garc=C3=ADa?= Date: Wed, 21 Nov 2018 11:14:39 +0100 Subject: [PATCH 152/153] Remove SugarCRM from the list of charts --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index b08a939b57..3270d29f94 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ $ helm search bitnami - [RabbitMQ](https://github.com/helm/charts/tree/master/stable/rabbitmq) - [Redis](https://github.com/helm/charts/tree/master/stable/redis) - [Redmine](https://github.com/helm/charts/tree/master/stable/redmine) -- [SugarCRM](https://github.com/helm/charts/tree/master/stable/sugarcrm) - [SuiteCRM](https://github.com/helm/charts/tree/master/stable/suitecrm) - [TestLink](https://github.com/helm/charts/tree/master/stable/testlink) - [WordPress](https://github.com/helm/charts/tree/master/stable/wordpress) From 5ec31bd06e80c64f48fe13dae8f15125486fd9a8 Mon Sep 17 00:00:00 2001 From: bitnami-bot Date: Wed, 21 Nov 2018 10:36:35 +0000 Subject: [PATCH 153/153] Synchronize upstreamed folder to f0880a7be --- upstreamed/dokuwiki/Chart.yaml | 2 +- upstreamed/dokuwiki/README.md | 5 ++- upstreamed/dokuwiki/templates/NOTES.txt | 6 ++-- upstreamed/dokuwiki/templates/svc.yaml | 4 +-- upstreamed/dokuwiki/values.yaml | 4 +++ upstreamed/drupal/Chart.yaml | 2 +- upstreamed/drupal/README.md | 7 ++++- upstreamed/drupal/templates/NOTES.txt | 12 ++++--- upstreamed/drupal/templates/svc.yaml | 23 +++++++++----- upstreamed/drupal/values.yaml | 18 ++++++++++- upstreamed/ghost/Chart.yaml | 2 +- upstreamed/ghost/README.md | 6 ++-- upstreamed/ghost/templates/NOTES.txt | 16 +++++----- upstreamed/ghost/templates/_helpers.tpl | 4 +-- upstreamed/ghost/templates/deployment.yaml | 2 +- upstreamed/ghost/templates/svc.yaml | 15 +++++---- upstreamed/ghost/values.yaml | 23 ++++++++------ upstreamed/jasperreports/Chart.yaml | 2 +- upstreamed/jasperreports/README.md | 5 ++- upstreamed/jasperreports/templates/NOTES.txt | 14 +++++---- upstreamed/jasperreports/templates/svc.yaml | 14 ++++++--- upstreamed/jasperreports/values.yaml | 15 ++++++++- upstreamed/joomla/Chart.yaml | 2 +- upstreamed/joomla/README.md | 2 ++ upstreamed/joomla/templates/NOTES.txt | 6 ++-- upstreamed/joomla/templates/svc.yaml | 4 +-- upstreamed/joomla/values.yaml | 4 +++ upstreamed/magento/Chart.yaml | 2 +- upstreamed/magento/templates/NOTES.txt | 21 +++++++------ upstreamed/magento/templates/_helpers.tpl | 2 +- upstreamed/magento/templates/deployment.yaml | 3 +- upstreamed/magento/templates/svc.yaml | 18 +++++------ upstreamed/magento/values.yaml | 18 ++++++++++- upstreamed/mediawiki/Chart.yaml | 2 +- upstreamed/mediawiki/README.md | 2 ++ upstreamed/mediawiki/templates/NOTES.txt | 6 ++-- upstreamed/mediawiki/templates/svc.yaml | 4 +-- upstreamed/mediawiki/values.yaml | 4 +++ upstreamed/moodle/Chart.yaml | 2 +- upstreamed/moodle/README.md | 7 ++++- upstreamed/moodle/templates/NOTES.txt | 18 ++++++----- upstreamed/moodle/templates/svc.yaml | 23 +++++++++----- upstreamed/moodle/values.yaml | 19 +++++++++++- upstreamed/odoo/Chart.yaml | 2 +- upstreamed/odoo/README.md | 1 + upstreamed/odoo/templates/NOTES.txt | 6 ++-- upstreamed/odoo/templates/svc.yaml | 2 +- upstreamed/odoo/values.yaml | 3 +- upstreamed/opencart/Chart.yaml | 2 +- upstreamed/opencart/README.md | 10 +++++- upstreamed/opencart/templates/NOTES.txt | 22 ++++++------- upstreamed/opencart/templates/_helpers.tpl | 2 +- upstreamed/opencart/templates/svc.yaml | 27 ++++++++++------ upstreamed/opencart/values.yaml | 24 ++++++++++---- upstreamed/orangehrm/Chart.yaml | 2 +- upstreamed/orangehrm/README.md | 7 ++++- upstreamed/orangehrm/templates/NOTES.txt | 14 +++++---- upstreamed/orangehrm/templates/svc.yaml | 23 +++++++++----- upstreamed/orangehrm/values.yaml | 20 ++++++++++-- upstreamed/osclass/Chart.yaml | 2 +- upstreamed/osclass/templates/NOTES.txt | 22 +++++++------ upstreamed/osclass/templates/_helpers.tpl | 2 +- upstreamed/osclass/templates/deployment.yaml | 3 +- upstreamed/osclass/templates/svc.yaml | 27 ++++++++++------ upstreamed/osclass/values.yaml | 24 ++++++++++---- upstreamed/owncloud/Chart.yaml | 2 +- upstreamed/owncloud/templates/NOTES.txt | 19 ++++++------ upstreamed/owncloud/templates/_helpers.tpl | 2 +- upstreamed/owncloud/templates/deployment.yaml | 3 +- upstreamed/owncloud/templates/svc.yaml | 18 +++++++---- upstreamed/owncloud/values.yaml | 23 ++++++++++---- upstreamed/parse/Chart.yaml | 2 +- upstreamed/parse/README.md | 7 +++-- upstreamed/parse/templates/NOTES.txt | 8 ++--- upstreamed/parse/templates/_helpers.tpl | 4 +-- upstreamed/parse/templates/svc.yaml | 14 ++++++--- upstreamed/parse/values.yaml | 17 ++++++++-- upstreamed/phabricator/Chart.yaml | 2 +- upstreamed/phabricator/README.md | 9 ++++-- upstreamed/phabricator/templates/NOTES.txt | 11 ++++--- upstreamed/phabricator/templates/_helpers.tpl | 2 +- .../phabricator/templates/deployment.yaml | 3 +- upstreamed/phabricator/templates/svc.yaml | 27 ++++++++++------ upstreamed/phabricator/values.yaml | 24 ++++++++++---- upstreamed/phpbb/Chart.yaml | 4 +-- upstreamed/phpbb/README.md | 9 +++++- upstreamed/phpbb/requirements.lock | 4 +-- upstreamed/phpbb/templates/NOTES.txt | 14 +++++---- upstreamed/phpbb/templates/svc.yaml | 26 +++++++++++----- upstreamed/phpbb/values.yaml | 22 +++++++++++-- upstreamed/postgresql/Chart.yaml | 2 +- upstreamed/postgresql/README.md | 1 - .../templates/statefulset-slaves.yaml | 11 +++++-- .../postgresql/templates/statefulset.yaml | 6 ++++ upstreamed/wordpress/Chart.yaml | 2 +- upstreamed/wordpress/README.md | 10 +++--- upstreamed/wordpress/templates/NOTES.txt | 13 ++++---- upstreamed/wordpress/templates/svc.yaml | 18 +++++------ upstreamed/wordpress/values-production.yaml | 31 +++++++++++-------- upstreamed/wordpress/values.yaml | 30 ++++++++++-------- 100 files changed, 688 insertions(+), 329 deletions(-) diff --git a/upstreamed/dokuwiki/Chart.yaml b/upstreamed/dokuwiki/Chart.yaml index fdca1b2d5c..fba2585aa1 100644 --- a/upstreamed/dokuwiki/Chart.yaml +++ b/upstreamed/dokuwiki/Chart.yaml @@ -1,5 +1,5 @@ name: dokuwiki -version: 3.3.1 +version: 4.0.0 appVersion: 0.20180422.201805030840 description: DokuWiki is a standards-compliant, simple to use wiki optimized for creating documentation. It is targeted at developer teams, workgroups, and small companies. diff --git a/upstreamed/dokuwiki/README.md b/upstreamed/dokuwiki/README.md index 5bdfa164c0..1a5587f157 100644 --- a/upstreamed/dokuwiki/README.md +++ b/upstreamed/dokuwiki/README.md @@ -58,7 +58,10 @@ The following table lists the configurable parameters of the DokuWiki chart and | `dokuwikiPassword` | Application password | _random 10 character alphanumeric string_ | | `dokuwikiEmail` | User email | `user@example.com` | | `dokuwikiWikiName` | Wiki name | `My Wiki` | -| `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | +| `service.loadBalancerIP` | Kubernetes LoadBalancerIP to request | `nil` | | `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `service.nodePorts.http` | Kubernetes http node port | `""` | | `service.nodePorts.https` | Kubernetes https node port | `""` | diff --git a/upstreamed/dokuwiki/templates/NOTES.txt b/upstreamed/dokuwiki/templates/NOTES.txt index 6b41468fe7..24b8e605b5 100644 --- a/upstreamed/dokuwiki/templates/NOTES.txt +++ b/upstreamed/dokuwiki/templates/NOTES.txt @@ -26,12 +26,14 @@ ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "dokuwiki.fullname" . }} ** export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "dokuwiki.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "URL: http://$SERVICE_IP/" + +{{- $port:=.Values.service.port | toString }} + echo "URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" {{- else if contains "ClusterIP" .Values.service.type }} echo "URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "dokuwiki.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "dokuwiki.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} {{- end }} diff --git a/upstreamed/dokuwiki/templates/svc.yaml b/upstreamed/dokuwiki/templates/svc.yaml index b50c263645..bfad4323d4 100644 --- a/upstreamed/dokuwiki/templates/svc.yaml +++ b/upstreamed/dokuwiki/templates/svc.yaml @@ -17,13 +17,13 @@ spec: {{- end }} ports: - name: http - port: 80 + port: {{ .Values.service.port }} targetPort: http {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} nodePort: {{ .Values.service.nodePorts.http }} {{- end }} - name: https - port: 443 + port: {{ .Values.service.httpsPort }} targetPort: https {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} nodePort: {{ .Values.service.nodePorts.https }} diff --git a/upstreamed/dokuwiki/values.yaml b/upstreamed/dokuwiki/values.yaml index 6bca1e2169..c1ce46d56c 100644 --- a/upstreamed/dokuwiki/values.yaml +++ b/upstreamed/dokuwiki/values.yaml @@ -59,6 +59,10 @@ service: ## otherwise leave blank ## # loadBalancerIP: + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 ## Use nodePorts to requets some specific ports when usin NodePort ## nodePorts: ## http: diff --git a/upstreamed/drupal/Chart.yaml b/upstreamed/drupal/Chart.yaml index b1a4ab59bb..c191df164d 100644 --- a/upstreamed/drupal/Chart.yaml +++ b/upstreamed/drupal/Chart.yaml @@ -1,5 +1,5 @@ name: drupal -version: 2.3.1 +version: 3.0.0 appVersion: 8.6.3 description: One of the most versatile open source content management systems. keywords: diff --git a/upstreamed/drupal/README.md b/upstreamed/drupal/README.md index 4dddc091ed..bc7867a9e6 100644 --- a/upstreamed/drupal/README.md +++ b/upstreamed/drupal/README.md @@ -80,7 +80,12 @@ The following table lists the configurable parameters of the Drupal chart and th | `mariadb.db.name` | Database name to create | `bitnami_drupal` | | `mariadb.db.user` | Database user to create | `bn_drupal` | | `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | | `persistence.enabled` | Enable persistence using PVC | `true` | | `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | | `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | diff --git a/upstreamed/drupal/templates/NOTES.txt b/upstreamed/drupal/templates/NOTES.txt index 811c6adbfc..c9bb8da493 100644 --- a/upstreamed/drupal/templates/NOTES.txt +++ b/upstreamed/drupal/templates/NOTES.txt @@ -11,22 +11,24 @@ http://{{- .Values.ingress.hostname }}/ -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "drupal.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "drupal.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "Drupal URL: http://$SERVICE_IP/" -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- $port:=.Values.service.port | toString }} + echo "Drupal URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" + +{{- else if contains "ClusterIP" .Values.service.type }} echo "Drupal URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "drupal.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "drupal.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} Or running: diff --git a/upstreamed/drupal/templates/svc.yaml b/upstreamed/drupal/templates/svc.yaml index 222e9d5b8c..842b460a34 100644 --- a/upstreamed/drupal/templates/svc.yaml +++ b/upstreamed/drupal/templates/svc.yaml @@ -8,13 +8,22 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "drupal.fullname" . }} diff --git a/upstreamed/drupal/values.yaml b/upstreamed/drupal/values.yaml index b33599513a..94996e698a 100644 --- a/upstreamed/drupal/values.yaml +++ b/upstreamed/drupal/values.yaml @@ -113,7 +113,23 @@ mariadb: ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## Use ClusterIP if your setup includes ingress controller ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Configure the ingress resource that allows you to access the ## Drupal installation. Set up the URL diff --git a/upstreamed/ghost/Chart.yaml b/upstreamed/ghost/Chart.yaml index 8d7c9db6df..ef5cdd6735 100644 --- a/upstreamed/ghost/Chart.yaml +++ b/upstreamed/ghost/Chart.yaml @@ -1,5 +1,5 @@ name: ghost -version: 5.4.2 +version: 6.0.0 appVersion: 2.6.0 description: A simple, powerful publishing platform that allows you to share your stories with the world diff --git a/upstreamed/ghost/README.md b/upstreamed/ghost/README.md index 372a26e986..7b16b273de 100644 --- a/upstreamed/ghost/README.md +++ b/upstreamed/ghost/README.md @@ -61,8 +61,6 @@ The following table lists the configurable parameters of the Ghost chart and the | `volumePermissions.image.pullPolicy`| Init container volume-permissions image pull policy | `Always` | | `ghostHost` | Ghost host to create application URLs | `nil` | | `ghostPath` | Ghost path to create application URLs | `nil` | -| `ghostPort` | Ghost port to create application URLs along with host | `80` | -| `ghostLoadBalancerIP` | `loadBalancerIP` for the Ghost Service | `nil` | | `ghostUsername` | User of the application | `user@example.com` | | `ghostPassword` | Application password | Randomly generated | | `ghostEmail` | Admin email | `user@example.com` | @@ -72,6 +70,10 @@ The following table lists the configurable parameters of the Ghost chart and the | `securityContext.enabled` | Enable security context | `true` | | `securityContext.fsGroup` | Group ID for the container | `1001` | | `securityContext.runAsUser` | User ID for the container | `1001` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.hosts[0].name` | Hostname to your Ghost installation | `ghost.local` | | `ingress.hosts[0].path` | Path within the url structure | `/` | diff --git a/upstreamed/ghost/templates/NOTES.txt b/upstreamed/ghost/templates/NOTES.txt index 337bd69487..e8bfc24f62 100644 --- a/upstreamed/ghost/templates/NOTES.txt +++ b/upstreamed/ghost/templates/NOTES.txt @@ -8,11 +8,11 @@ host. To configure Ghost with the URL of your service: 1. Get the Ghost URL by running: - {{- if contains "NodePort" .Values.serviceType }} + {{- if contains "NodePort" .Values.service.type }} export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - {{- else if contains "LoadBalancer" .Values.serviceType }} + {{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "ghost.fullname" . }}' @@ -28,17 +28,17 @@ host. To configure Ghost with the URL of your service: 2. Complete your Ghost deployment by running: helm upgrade {{ .Release.Name }} stable/ghost\ - --set serviceType={{ .Values.serviceType }},ghostHost=$APP_HOST,ghostPassword=$APP_PASSWORD,{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$DATABASE_ROOT_PASSWORD{{ end }}mariadb.db.password=$APP_DATABASE_PASSWORD + --set service.type={{ .Values.service.type }},ghostHost=$APP_HOST,ghostPassword=$APP_PASSWORD,{{ if .Values.mariadb.mariadbRootPassword }},mariadb.mariadbRootPassword=$DATABASE_ROOT_PASSWORD{{ end }}mariadb.db.password=$APP_DATABASE_PASSWORD {{- else -}} 1. Get the Ghost URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} - echo Blog URL : http://127.0.0.1:{{ default "80" .Values.ghostPort }}{{ .Values.ghostPath }} - echo Admin URL : http://127.0.0.1:{{ default "80" .Values.ghostPort }}{{ .Values.ghostPath }}ghost - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "ghost.fullname" . }} {{ default "80" .Values.ghostPort }}:2368 + echo Blog URL : http://127.0.0.1:{{ default "80" .Values.service.port }}{{ .Values.ghostPath }} + echo Admin URL : http://127.0.0.1:{{ default "80" .Values.service.port }}{{ .Values.ghostPath }}ghost + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "ghost.fullname" . }} {{ default "80" .Values.service.port }}:2368 -{{- else if eq .Values.serviceType "NodePort" }} +{{- else if eq .Values.service.type "NodePort" }} export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") export APP_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "ghost.fullname" . }}) diff --git a/upstreamed/ghost/templates/_helpers.tpl b/upstreamed/ghost/templates/_helpers.tpl index ccbf8d184b..993f0c149a 100644 --- a/upstreamed/ghost/templates/_helpers.tpl +++ b/upstreamed/ghost/templates/_helpers.tpl @@ -37,7 +37,7 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "ghost.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} {{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} @@ -108,4 +108,4 @@ Also, we can't use a single if because lazy evaluation is not an option {{- else -}} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/upstreamed/ghost/templates/deployment.yaml b/upstreamed/ghost/templates/deployment.yaml index 9d246c0d66..b828be447f 100644 --- a/upstreamed/ghost/templates/deployment.yaml +++ b/upstreamed/ghost/templates/deployment.yaml @@ -88,7 +88,7 @@ spec: - name: GHOST_HOST value: {{ include "ghost.host" . | quote }} - name: GHOST_PORT_NUMBER - value: {{ .Values.ghostPort | quote }} + value: {{ .Values.service.port | quote }} - name: GHOST_USERNAME value: {{ .Values.ghostUsername | quote }} - name: GHOST_PASSWORD diff --git a/upstreamed/ghost/templates/svc.yaml b/upstreamed/ghost/templates/svc.yaml index d3d7e26639..2cfcf9801a 100644 --- a/upstreamed/ghost/templates/svc.yaml +++ b/upstreamed/ghost/templates/svc.yaml @@ -8,13 +8,16 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ .Values.ghostLoadBalancerIP }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} {{- end }} ports: - - name: http - port: {{ .Values.ghostPort }} - targetPort: http + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} selector: app: {{ template "ghost.fullname" . }} diff --git a/upstreamed/ghost/values.yaml b/upstreamed/ghost/values.yaml index 29e4b58b16..a9a5a3101e 100644 --- a/upstreamed/ghost/values.yaml +++ b/upstreamed/ghost/values.yaml @@ -40,15 +40,6 @@ volumePermissions: # ghostHost: ghostPath: / -## Ghost port to create application URLs along with host. -## ref: https://github.com/bitnami/bitnami-docker-ghost#configuration -## -ghostPort: 80 - -## loadBalancerIP for the Ghost Service (optional, cloud specific) -## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer -## -ghostLoadBalancerIP: "" ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-ghost#configuration @@ -151,7 +142,19 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + ## + ## nodePorts: + ## http: + nodePorts: + http: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Pod Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ diff --git a/upstreamed/jasperreports/Chart.yaml b/upstreamed/jasperreports/Chart.yaml index 2c0f57c945..a4d1d41986 100644 --- a/upstreamed/jasperreports/Chart.yaml +++ b/upstreamed/jasperreports/Chart.yaml @@ -1,5 +1,5 @@ name: jasperreports -version: 3.1.1 +version: 4.0.0 appVersion: 7.1.0 description: The JasperReports server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, diff --git a/upstreamed/jasperreports/README.md b/upstreamed/jasperreports/README.md index bde3363601..858f296574 100644 --- a/upstreamed/jasperreports/README.md +++ b/upstreamed/jasperreports/README.md @@ -75,7 +75,10 @@ The following table lists the configurable parameters of the JasperReports chart | `mariadb.db.user` | Database user to create | `bn_jasperreports` | | `mariadb.db.password` | Password for the database | `nil` | | `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.port` | Service HTTP port | `80` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | | `persistence.enabled` | Enable persistence using PVC | `true` | | `persistence.storageClass` | PVC Storage Class for JasperReports volume | `nil` (uses alpha storage annotation) | | `persistence.accessMode` | PVC Access Mode for JasperReports volume | `ReadWriteOnce` | diff --git a/upstreamed/jasperreports/templates/NOTES.txt b/upstreamed/jasperreports/templates/NOTES.txt index c36d47d594..c7c9717b7d 100644 --- a/upstreamed/jasperreports/templates/NOTES.txt +++ b/upstreamed/jasperreports/templates/NOTES.txt @@ -3,24 +3,26 @@ 1. Get the JasperReports URL by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "jasperreports.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") echo "JasperReports URL: http://$NODE_IP:$NODE_PORT/" -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} ** Please ensure an external IP is associated to the {{ template "jasperreports.fullname" . }} service before proceeding ** ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "jasperreports.fullname" . }} ** export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "jasperreports.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "JasperReports URL: http://$SERVICE_IP/jasperserver/" -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- $port:=.Values.service.port | toString }} + echo "JasperReports URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/jasperserver/" + +{{- else if contains "ClusterIP" .Values.service.type }} echo "JasperReports URL: http://127.0.0.1:8080/jasperserver/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "jasperreports.fullname" . }} 8080:8080 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "jasperreports.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} @@ -41,6 +43,6 @@ host. To configure JasperReports to use and external database host: 1. Complete your JasperReports deployment by running: - helm upgrade {{ .Release.Name }} --set serviceType={{ .Values.serviceType }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/jasperreports + helm upgrade {{ .Release.Name }} --set service.type={{ .Values.service.type }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/jasperreports {{- end }} diff --git a/upstreamed/jasperreports/templates/svc.yaml b/upstreamed/jasperreports/templates/svc.yaml index 640df13ef1..d7aa3ed939 100644 --- a/upstreamed/jasperreports/templates/svc.yaml +++ b/upstreamed/jasperreports/templates/svc.yaml @@ -8,10 +8,16 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} ports: - - name: http - port: 80 - targetPort: http + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} selector: app: {{ template "jasperreports.fullname" . }} diff --git a/upstreamed/jasperreports/values.yaml b/upstreamed/jasperreports/values.yaml index 1b064d302f..7745c3632b 100644 --- a/upstreamed/jasperreports/values.yaml +++ b/upstreamed/jasperreports/values.yaml @@ -121,7 +121,20 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/joomla/Chart.yaml b/upstreamed/joomla/Chart.yaml index 4f1f0214a5..4869f77084 100644 --- a/upstreamed/joomla/Chart.yaml +++ b/upstreamed/joomla/Chart.yaml @@ -1,5 +1,5 @@ name: joomla -version: 3.4.1 +version: 4.0.0 appVersion: 3.9.0 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/upstreamed/joomla/README.md b/upstreamed/joomla/README.md index bfaf3a8c0d..127b262c29 100644 --- a/upstreamed/joomla/README.md +++ b/upstreamed/joomla/README.md @@ -77,6 +77,8 @@ The following table lists the configurable parameters of the Joomla! chart and t | `mariadb.db.password` | Password for the database | `nil` | | `mariadb.root.password` | MariaDB admin password | `nil` | | `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | | `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` | | `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `service.nodePorts.http` | Kubernetes http node port | `""` | diff --git a/upstreamed/joomla/templates/NOTES.txt b/upstreamed/joomla/templates/NOTES.txt index 009d8f4465..fe3caeba4b 100644 --- a/upstreamed/joomla/templates/NOTES.txt +++ b/upstreamed/joomla/templates/NOTES.txt @@ -27,12 +27,14 @@ Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "joomla.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "joomla.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "Joomla! URL: http://$SERVICE_IP/" + +{{- $port:=.Values.service.port | toString }} + echo "Joomla! URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" {{- else if contains "ClusterIP" .Values.service.type }} echo "Joomla! URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "joomla.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "joomla.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} {{- end }} diff --git a/upstreamed/joomla/templates/svc.yaml b/upstreamed/joomla/templates/svc.yaml index 885e1a3a84..4759953c49 100644 --- a/upstreamed/joomla/templates/svc.yaml +++ b/upstreamed/joomla/templates/svc.yaml @@ -17,13 +17,13 @@ spec: {{- end }} ports: - name: http - port: 80 + port: {{ .Values.service.port }} targetPort: http {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} nodePort: {{ .Values.service.nodePorts.http }} {{- end }} - name: https - port: 443 + port: {{ .Values.service.httpsPort }} targetPort: https {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} nodePort: {{ .Values.service.nodePorts.https }} diff --git a/upstreamed/joomla/values.yaml b/upstreamed/joomla/values.yaml index 5492ab9464..6bcb6eafa9 100644 --- a/upstreamed/joomla/values.yaml +++ b/upstreamed/joomla/values.yaml @@ -144,6 +144,10 @@ service: ## Use serviceLoadBalancerIP to request a specific static IP, ## otherwise leave blank ## + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 # loadBalancerIP: ## Use nodePorts to requets some specific ports when usin NodePort ## nodePorts: diff --git a/upstreamed/magento/Chart.yaml b/upstreamed/magento/Chart.yaml index e8ce70881e..f0d8fd1380 100644 --- a/upstreamed/magento/Chart.yaml +++ b/upstreamed/magento/Chart.yaml @@ -1,5 +1,5 @@ name: magento -version: 3.3.0 +version: 4.0.0 appVersion: 2.2.6 description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more. keywords: diff --git a/upstreamed/magento/templates/NOTES.txt b/upstreamed/magento/templates/NOTES.txt index 6f0a4ab2e4..65486ca547 100644 --- a/upstreamed/magento/templates/NOTES.txt +++ b/upstreamed/magento/templates/NOTES.txt @@ -10,12 +10,12 @@ host. To configure Magento with the URL of your service: 1. Get the Magento URL by running: - {{- if contains "NodePort" .Values.serviceType }} + {{- if contains "NodePort" .Values.service.type }} export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "magento.fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - {{- else if contains "LoadBalancer" .Values.serviceType }} + {{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "magento.fullname" . }}' @@ -39,22 +39,23 @@ host. To configure Magento with the URL of your service: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/magento \ - --set magentoPassword=$APP_PASSWORD,magentoHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} + --set magentoPassword=$APP_PASSWORD,magentoHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} {{- end }} {{- else -}} 1. Get the Magento URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} echo "Store URL: http://127.0.0.1:8080/" echo "Admin URL: http://127.0.0.1:8080/{{ .Values.magentoAdminUri }}" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "magento.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "magento.fullname" . }} 8080:{{ .Values.service.port }} {{- else }} - echo Store URL : http://{{ include "magento.host" . }}/ - echo Admin URL : http://{{ include "magento.host" . }}/{{ .Values.magentoAdminUri }} +{{- $port:=.Values.service.port | toString }} + echo Store URL : http://{{ include "magento.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/ + echo Admin URL : http://{{ include "magento.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/{{ .Values.magentoAdminUri }} {{- end }} @@ -76,9 +77,9 @@ host. To configure Magento to use and external database host: 1. Complete your Magento deployment by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "magento.fullname" . }}' @@ -93,5 +94,5 @@ host. To configure Magento to use and external database host: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/magento \ - --set magentoPassword=$APP_PASSWORD,magentoHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST + --set magentoPassword=$APP_PASSWORD,magentoHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST {{- end }} diff --git a/upstreamed/magento/templates/_helpers.tpl b/upstreamed/magento/templates/_helpers.tpl index 7fdce86d89..c032a3f24a 100644 --- a/upstreamed/magento/templates/_helpers.tpl +++ b/upstreamed/magento/templates/_helpers.tpl @@ -44,7 +44,7 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "magento.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} {{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} diff --git a/upstreamed/magento/templates/deployment.yaml b/upstreamed/magento/templates/deployment.yaml index fa104f8d39..d3748050e4 100644 --- a/upstreamed/magento/templates/deployment.yaml +++ b/upstreamed/magento/templates/deployment.yaml @@ -78,8 +78,9 @@ spec: name: {{ template "magento.fullname" . }}-externaldb key: db-password {{- end }} + {{- $port:=.Values.service.port | toString }} - name: MAGENTO_HOST - value: {{ include "magento.host" . | quote }} + value: "{{ include "magento.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}" - name: MAGENTO_USERNAME value: {{ .Values.magentoUsername | quote }} - name: MAGENTO_PASSWORD diff --git a/upstreamed/magento/templates/svc.yaml b/upstreamed/magento/templates/svc.yaml index 93f2438e93..d20d17a321 100644 --- a/upstreamed/magento/templates/svc.yaml +++ b/upstreamed/magento/templates/svc.yaml @@ -8,16 +8,16 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ default "" .Values.magentoLoadBalancerIP }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} selector: app: {{ template "magento.fullname" . }} diff --git a/upstreamed/magento/values.yaml b/upstreamed/magento/values.yaml index 11c4f4aa05..8459bd832f 100644 --- a/upstreamed/magento/values.yaml +++ b/upstreamed/magento/values.yaml @@ -140,7 +140,23 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Configure liveness and readiness probes ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) diff --git a/upstreamed/mediawiki/Chart.yaml b/upstreamed/mediawiki/Chart.yaml index 0944a534af..49be0e54fa 100644 --- a/upstreamed/mediawiki/Chart.yaml +++ b/upstreamed/mediawiki/Chart.yaml @@ -1,5 +1,5 @@ name: mediawiki -version: 5.1.0 +version: 6.0.0 appVersion: 1.31.1 description: Extremely powerful, scalable software and a feature-rich wiki implementation that uses PHP to process and display data stored in a database. diff --git a/upstreamed/mediawiki/README.md b/upstreamed/mediawiki/README.md index 3c4d9723c1..0cd9c9610e 100644 --- a/upstreamed/mediawiki/README.md +++ b/upstreamed/mediawiki/README.md @@ -76,6 +76,8 @@ The following table lists the configurable parameters of the MediaWiki chart and | `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | | `service.type` | Kubernetes Service type | `LoadBalancer` | | `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | | `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `service.nodePorts.http` | Kubernetes http node port | `""` | | `service.nodePorts.https` | Kubernetes https node port | `""` | diff --git a/upstreamed/mediawiki/templates/NOTES.txt b/upstreamed/mediawiki/templates/NOTES.txt index 5dd529089c..306ec85872 100644 --- a/upstreamed/mediawiki/templates/NOTES.txt +++ b/upstreamed/mediawiki/templates/NOTES.txt @@ -27,12 +27,14 @@ Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "mediawiki.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "mediawiki.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "Mediawiki URL: http://$SERVICE_IP/" + +{{- $port:=.Values.service.port | toString }} + echo "Mediawiki URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" {{- else if contains "ClusterIP" .Values.service.type }} echo "Mediawiki URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mediawiki.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mediawiki.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} {{- end }} diff --git a/upstreamed/mediawiki/templates/svc.yaml b/upstreamed/mediawiki/templates/svc.yaml index a301366e38..f060d455c2 100644 --- a/upstreamed/mediawiki/templates/svc.yaml +++ b/upstreamed/mediawiki/templates/svc.yaml @@ -17,13 +17,13 @@ spec: {{- end }} ports: - name: http - port: 80 + port: {{ .Values.service.port }} targetPort: http {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} nodePort: {{ .Values.service.nodePorts.http }} {{- end }} - name: https - port: 443 + port: {{ .Values.service.httpsPort }} targetPort: https {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} nodePort: {{ .Values.service.nodePorts.https }} diff --git a/upstreamed/mediawiki/values.yaml b/upstreamed/mediawiki/values.yaml index dfbb1ad763..66706b5ec4 100644 --- a/upstreamed/mediawiki/values.yaml +++ b/upstreamed/mediawiki/values.yaml @@ -136,6 +136,10 @@ service: ## otherwise leave blank ## # loadBalancerIP: + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 ## Use nodePorts to requets some specific ports when usin NodePort ## nodePorts: ## http: diff --git a/upstreamed/moodle/Chart.yaml b/upstreamed/moodle/Chart.yaml index 20847a7410..473450d826 100644 --- a/upstreamed/moodle/Chart.yaml +++ b/upstreamed/moodle/Chart.yaml @@ -1,5 +1,5 @@ name: moodle -version: 3.3.1 +version: 4.0.0 appVersion: 3.5.3 description: Moodle is a learning platform designed to provide educators, administrators and learners with a single robust, secure and integrated system to create personalised diff --git a/upstreamed/moodle/README.md b/upstreamed/moodle/README.md index 7b765c3856..030330926c 100644 --- a/upstreamed/moodle/README.md +++ b/upstreamed/moodle/README.md @@ -63,7 +63,12 @@ The following table lists the configurable parameters of the Moodle chart and th | `smtpProtocol` | SMTP Protocol (options: ssl,tls, nil) | `nil` | | `smtpUser` | SMTP user | `nil` | | `smtpPassword` | SMTP password | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.hosts[0].name` | Hostname to your Moodle installation | `moodle.local` | | `ingress.hosts[0].path` | Path within the url structure | `/` | diff --git a/upstreamed/moodle/templates/NOTES.txt b/upstreamed/moodle/templates/NOTES.txt index 42d464300a..7f6f63cc25 100644 --- a/upstreamed/moodle/templates/NOTES.txt +++ b/upstreamed/moodle/templates/NOTES.txt @@ -1,8 +1,8 @@ {{- if or .Values.mariadb.enabled .Values.externalDatabase.host -}} ** Please be patient while the chart is being deployed ** -{{- if and .Values.ingress.enabled (ne .Values.serviceType "ClusterIP") }} -** Notice : Usually with ingress the serviceType should be set to ClusterIP, which is not the case to this deployment! ** +{{- if and .Values.ingress.enabled (ne .Values.service.type "ClusterIP") }} +** Notice : Usually with ingress the service.type should be set to ClusterIP, which is not the case to this deployment! ** {{- end }} 1. Access you Moodle instance with: @@ -17,22 +17,24 @@ - http://{{ . }} {{- end }} {{- end }} -{{- else if contains "NodePort" .Values.serviceType }} +{{- else if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "moodle.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") echo "Moodle URL: http://$NODE_IP:$NODE_PORT/" -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} ** Please ensure an external IP is associated to the {{ template "moodle.fullname" . }} service before proceeding ** ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "moodle.fullname" . }} ** export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "moodle.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "Moodle URL: http://$SERVICE_IP/" -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- $port:=.Values.service.port | toString }} + echo "Moodle URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "moodle.fullname" . }} 8080:80 +{{- else if contains "ClusterIP" .Values.service.type }} + + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "moodle.fullname" . }} 8080:{{ .Values.service.port }} echo "Moodle URL: http://127.0.0.1:8080/" {{- end }} @@ -54,6 +56,6 @@ host. To configure Moodle to use and external database host: 1. Complete your Moodle deployment by running: - helm upgrade {{ .Release.Name }} --set serviceType={{ .Values.serviceType }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/moodle + helm upgrade {{ .Release.Name }} --set service.type={{ .Values.service.type }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/moodle {{- end }} diff --git a/upstreamed/moodle/templates/svc.yaml b/upstreamed/moodle/templates/svc.yaml index 2a69ef447e..247019ee0a 100644 --- a/upstreamed/moodle/templates/svc.yaml +++ b/upstreamed/moodle/templates/svc.yaml @@ -8,13 +8,22 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "moodle.fullname" . }} diff --git a/upstreamed/moodle/values.yaml b/upstreamed/moodle/values.yaml index a1c2df03f3..91e8b63edb 100644 --- a/upstreamed/moodle/values.yaml +++ b/upstreamed/moodle/values.yaml @@ -145,7 +145,24 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, for ingress ClusterIP, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster + ## Configure the ingress resource that allows you to access the ## Moodle installation. Set up the URL diff --git a/upstreamed/odoo/Chart.yaml b/upstreamed/odoo/Chart.yaml index f771376373..fe415d138c 100644 --- a/upstreamed/odoo/Chart.yaml +++ b/upstreamed/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 4.0.2 +version: 5.0.0 appVersion: 11.0.20181115 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/upstreamed/odoo/README.md b/upstreamed/odoo/README.md index aa848d0b12..4965cb2d30 100644 --- a/upstreamed/odoo/README.md +++ b/upstreamed/odoo/README.md @@ -64,6 +64,7 @@ The following table lists the configurable parameters of the Odoo chart and thei | `smtpPassword` | SMTP password | `nil` | | `smtpProtocol` | SMTP protocol [`ssl`, `tls`] | `nil` | | `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | | `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` | | `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | | `service.nodePort` | Kubernetes http node port | `""` | diff --git a/upstreamed/odoo/templates/NOTES.txt b/upstreamed/odoo/templates/NOTES.txt index e99c8ecc8b..c9a711cb19 100644 --- a/upstreamed/odoo/templates/NOTES.txt +++ b/upstreamed/odoo/templates/NOTES.txt @@ -26,11 +26,13 @@ ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "odoo.fullname" . }} ** export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "odoo.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "Odoo URL: http://$SERVICE_IP/" + +{{- $port:=.Values.service.port | toString }} + echo "Odoo URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" {{- else if contains "ClusterIP" .Values.service.type }} echo "Odoo URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "odoo.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "odoo.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} {{- end }} diff --git a/upstreamed/odoo/templates/svc.yaml b/upstreamed/odoo/templates/svc.yaml index 55d5f34931..0e45478417 100644 --- a/upstreamed/odoo/templates/svc.yaml +++ b/upstreamed/odoo/templates/svc.yaml @@ -17,7 +17,7 @@ spec: {{- end }} ports: - name: http - port: 80 + port: {{ .Values.service.port }} targetPort: http {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort)))}} nodePort: {{ .Values.service.nodePort }} diff --git a/upstreamed/odoo/values.yaml b/upstreamed/odoo/values.yaml index e4cee02f92..f3fe532729 100644 --- a/upstreamed/odoo/values.yaml +++ b/upstreamed/odoo/values.yaml @@ -89,7 +89,8 @@ service: ## otherwise leave blank ## # loadBalancerIP: - + # HTTP Port + port: 80 ## Use nodePort to requets some specific port when usin NodePort ## nodePort: "" diff --git a/upstreamed/opencart/Chart.yaml b/upstreamed/opencart/Chart.yaml index 9cfde4545d..e7ee3b96e4 100644 --- a/upstreamed/opencart/Chart.yaml +++ b/upstreamed/opencart/Chart.yaml @@ -1,5 +1,5 @@ name: opencart -version: 3.2.0 +version: 4.0.0 appVersion: 3.0.2-0 description: A free and open source e-commerce platform for online merchants. It provides a professional and reliable foundation for a successful online store. diff --git a/upstreamed/opencart/README.md b/upstreamed/opencart/README.md index d867bc2bdc..e21e2f9acb 100644 --- a/upstreamed/opencart/README.md +++ b/upstreamed/opencart/README.md @@ -56,7 +56,15 @@ The following table lists the configurable parameters of the OpenCart chart and | `image.pullPolicy` | Image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` | | `image.pullSecrets` | Specify image pull secrets | `nil` | | `opencartHost` | OpenCart host to create application URLs | `nil` | -| `opencartLoadBalancerIP` | `loadBalancerIP` for the OpenCart Service | `nil` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `nodePorts.http` | Kubernetes http node port | `""` | +| `service.httpsPort` | Service HTTPS port | `443` | +| `nodePorts.https` | Kubernetes https node port | `""` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | +| `service.loadBalancerIP` | `loadBalancerIP` for the OpenCart Service | `nil` | | `opencartUsername` | User of the application | `user` | | `opencartPassword` | Application password | _random 10 character long alphanumeric string_ | | `opencartEmail` | Admin email | `user@example.com` | diff --git a/upstreamed/opencart/templates/NOTES.txt b/upstreamed/opencart/templates/NOTES.txt index 58c6795b65..a2c81846e8 100644 --- a/upstreamed/opencart/templates/NOTES.txt +++ b/upstreamed/opencart/templates/NOTES.txt @@ -10,12 +10,12 @@ host. To configure OpenCart with the URL of your service: 1. Get the OpenCart URL by running: - {{- if contains "NodePort" .Values.serviceType }} + {{- if contains "NodePort" .Values.service.type }} export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "opencart.fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - {{- else if contains "LoadBalancer" .Values.serviceType }} + {{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "opencart.fullname" . }}' @@ -39,23 +39,23 @@ host. To configure OpenCart with the URL of your service: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/opencart \ - --set opencartPassword=$APP_PASSWORD,opencartHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} + --set opencartPassword=$APP_PASSWORD,opencartHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} {{- end }} {{- else -}} 1. Get the OpenCart URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} echo "URL: http://127.0.0.1:8080/" echo "Administration URL: http://127.0.0.1:8080/admin" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "opencart.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "opencart.fullname" . }} 8080:{{ .Values.service.port }} {{- else }} - echo "URL: http://{{ include "opencart.host" . }}/" - echo "Administration URL: http://{{ include "opencart.host" . }}/admin" - +{{- $port:=.Values.service.port | toString }} + echo "URL: http://{{ include "opencart.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" + echo "Administration URL: http://{{ include "opencart.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/admin" {{- end }} 2. Get your OpenCart login credentials by running: @@ -75,9 +75,9 @@ host. To configure OpenCart to use and external database host: 1. Complete your OpenCart deployment by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "opencart.fullname" . }}' @@ -92,5 +92,5 @@ host. To configure OpenCart to use and external database host: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/opencart \ - --set opencartPassword=$APP_PASSWORD,opencartHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST + --set opencartPassword=$APP_PASSWORD,opencartHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST {{- end }} diff --git a/upstreamed/opencart/templates/_helpers.tpl b/upstreamed/opencart/templates/_helpers.tpl index e1df59dd98..8634e78fe0 100644 --- a/upstreamed/opencart/templates/_helpers.tpl +++ b/upstreamed/opencart/templates/_helpers.tpl @@ -28,7 +28,7 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "opencart.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} {{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} diff --git a/upstreamed/opencart/templates/svc.yaml b/upstreamed/opencart/templates/svc.yaml index b7471b930c..53d0162478 100644 --- a/upstreamed/opencart/templates/svc.yaml +++ b/upstreamed/opencart/templates/svc.yaml @@ -8,16 +8,25 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ default "" .Values.opencartLoadBalancerIP | quote }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} + {{- if eq .Values.service.type "LoadBalancer" }} + loadBalancerIP: {{ default "" .Values.service.loadBalancerIP | quote }} {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "opencart.fullname" . }} diff --git a/upstreamed/opencart/values.yaml b/upstreamed/opencart/values.yaml index 12a00ef77e..ae11859a6a 100644 --- a/upstreamed/opencart/values.yaml +++ b/upstreamed/opencart/values.yaml @@ -28,11 +28,6 @@ image: ## # opencartHost: -## loadBalancerIP for the OpenCart Service (optional, cloud specific) -## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer -## -# opencartLoadBalancerIP: - ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-opencart#configuration ## @@ -129,7 +124,24 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## loadBalancerIP: + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/orangehrm/Chart.yaml b/upstreamed/orangehrm/Chart.yaml index f3ab4a804b..e6fb443efb 100644 --- a/upstreamed/orangehrm/Chart.yaml +++ b/upstreamed/orangehrm/Chart.yaml @@ -1,5 +1,5 @@ name: orangehrm -version: 3.2.2 +version: 4.0.0 appVersion: 4.2.0-1 description: OrangeHRM is a free HR management system that offers a wealth of modules to suit the needs of your business. diff --git a/upstreamed/orangehrm/README.md b/upstreamed/orangehrm/README.md index eafa9b28ce..f85d1360d0 100644 --- a/upstreamed/orangehrm/README.md +++ b/upstreamed/orangehrm/README.md @@ -62,7 +62,12 @@ The following table lists the configurable parameters of the OrangeHRM chart and | `smtpUser` | SMTP user | `nil` | | `smtpPassword` | SMTP password | `nil` | | `smtpProtocol` | SMTP protocol [`ssl`, `none`] | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | | `persistence.enabled` | Enable persistence using PVC | `true` | | `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | diff --git a/upstreamed/orangehrm/templates/NOTES.txt b/upstreamed/orangehrm/templates/NOTES.txt index 5206d8f1a5..5ffc4029a9 100644 --- a/upstreamed/orangehrm/templates/NOTES.txt +++ b/upstreamed/orangehrm/templates/NOTES.txt @@ -4,24 +4,26 @@ 1. Get the OrangeHRM URL by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "orangehrm.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") echo "OrangeHRM URL: http://$NODE_IP:$NODE_PORT/" -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} ** Please ensure an external IP is associated to the {{ template "orangehrm.fullname" . }} service before proceeding ** ** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "orangehrm.fullname" . }} ** export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "orangehrm.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "OrangeHRM URL: http://$SERVICE_IP/" -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- $port:=.Values.service.port | toString }} + echo "OrangeHRM URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" + +{{- else if contains "ClusterIP" .Values.service.type }} echo "OrangeHRM URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "orangehrm.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "orangehrm.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} @@ -42,6 +44,6 @@ host. To configure OrangeHRM to use and external database host: 1. Complete your OrangeHRM deployment by running: - helm upgrade {{ .Release.Name }} --set serviceType={{ .Values.serviceType }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/orangehrm + helm upgrade {{ .Release.Name }} --set service.type={{ .Values.service.type }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/orangehrm {{- end }} diff --git a/upstreamed/orangehrm/templates/svc.yaml b/upstreamed/orangehrm/templates/svc.yaml index 9cb4485e45..291cee6bc6 100644 --- a/upstreamed/orangehrm/templates/svc.yaml +++ b/upstreamed/orangehrm/templates/svc.yaml @@ -8,13 +8,22 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "orangehrm.fullname" . }} diff --git a/upstreamed/orangehrm/values.yaml b/upstreamed/orangehrm/values.yaml index e811c503f3..eb47163aba 100644 --- a/upstreamed/orangehrm/values.yaml +++ b/upstreamed/orangehrm/values.yaml @@ -112,9 +112,25 @@ mariadb: size: 8Gi ## Kubernetes configuration -## For minikube, set this to NodePort, elsewhere use LoadBalancer +## For minikube, set this to NodePort, elsewhere use LoadBalancer or ClusterIP ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/osclass/Chart.yaml b/upstreamed/osclass/Chart.yaml index 421de543c1..073164c274 100644 --- a/upstreamed/osclass/Chart.yaml +++ b/upstreamed/osclass/Chart.yaml @@ -1,5 +1,5 @@ name: osclass -version: 3.2.0 +version: 4.0.0 appVersion: 3.7.4 description: Osclass is a php script that allows you to quickly create and manage your own free classifieds site. diff --git a/upstreamed/osclass/templates/NOTES.txt b/upstreamed/osclass/templates/NOTES.txt index a6e2de0896..389d059064 100644 --- a/upstreamed/osclass/templates/NOTES.txt +++ b/upstreamed/osclass/templates/NOTES.txt @@ -10,12 +10,12 @@ host. To configure Osclass with the URL of your service: 1. Get the Osclass URL by running: - {{- if contains "NodePort" .Values.serviceType }} + {{- if contains "NodePort" .Values.service.type }} export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "osclass.fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - {{- else if contains "LoadBalancer" .Values.serviceType }} + {{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "osclass.fullname" . }}' @@ -39,22 +39,24 @@ host. To configure Osclass with the URL of your service: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/osclass \ - --set osclassPassword=$APP_PASSWORD,osclassHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} + --set osclassPassword=$APP_PASSWORD,osclassHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} {{- end }} {{- else -}} 1. Get the Osclass URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} echo URL : http://127.0.0.1:8080/ echo Admin URL : http://127.0.0.1:8080/oc-admin/ - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "osclass.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "osclass.fullname" . }} 8080:{{ .Values.service.port }} {{- else }} - echo URL : http://{{ include "osclass.host" . }}/ - echo Admin URL : http://{{ include "osclass.host" . }}/oc-admin/ +{{- $port:=.Values.service.port | toString }} + + echo URL : http://{{ include "osclass.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/ + echo Admin URL : http://{{ include "osclass.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/oc-admin/ {{- end }} @@ -76,9 +78,9 @@ host. To configure Osclass to use and external database host: 1. Complete your Osclass deployment by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "osclass.fullname" . }}' @@ -93,5 +95,5 @@ host. To configure Osclass to use and external database host: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/osclass \ - --set osclassPassword=$APP_PASSWORD,osclassHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST + --set osclassPassword=$APP_PASSWORD,osclassHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST {{- end }} diff --git a/upstreamed/osclass/templates/_helpers.tpl b/upstreamed/osclass/templates/_helpers.tpl index 989d7b5f7a..207a67610e 100644 --- a/upstreamed/osclass/templates/_helpers.tpl +++ b/upstreamed/osclass/templates/_helpers.tpl @@ -28,7 +28,7 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "osclass.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} {{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} diff --git a/upstreamed/osclass/templates/deployment.yaml b/upstreamed/osclass/templates/deployment.yaml index 39fae10123..bc3201fd51 100644 --- a/upstreamed/osclass/templates/deployment.yaml +++ b/upstreamed/osclass/templates/deployment.yaml @@ -75,8 +75,9 @@ spec: name: {{ printf "%s-%s" .Release.Name "externaldb" }} key: db-password {{- end }} + {{- $port:=.Values.service.port | toString }} - name: OSCLASS_HOST - value: {{ include "osclass.host" . | quote }} + value: "{{ include "osclass.host" . }}}}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}" - name: OSCLASS_USERNAME value: {{ default "" .Values.osclassUsername | quote }} - name: OSCLASS_PASSWORD diff --git a/upstreamed/osclass/templates/svc.yaml b/upstreamed/osclass/templates/svc.yaml index 6ea898bcf3..80f3c93622 100644 --- a/upstreamed/osclass/templates/svc.yaml +++ b/upstreamed/osclass/templates/svc.yaml @@ -8,16 +8,25 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ default "" .Values.osclassLoadBalancerIP }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} + {{- if eq .Values.service.type "LoadBalancer" }} + loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }} {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "osclass.fullname" . }} diff --git a/upstreamed/osclass/values.yaml b/upstreamed/osclass/values.yaml index b79fcd9089..9b3e61e215 100644 --- a/upstreamed/osclass/values.yaml +++ b/upstreamed/osclass/values.yaml @@ -28,11 +28,6 @@ image: ## # osclassHost: -## loadBalancerIP for the Osclass Service (optional, cloud specific) -## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer -## -# osclassLoadBalancerIP: - ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-osclass#configuration ## @@ -143,7 +138,24 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## loadBalancerIP: + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/owncloud/Chart.yaml b/upstreamed/owncloud/Chart.yaml index 7e4ee01147..b9d00c77d3 100644 --- a/upstreamed/owncloud/Chart.yaml +++ b/upstreamed/owncloud/Chart.yaml @@ -1,5 +1,5 @@ name: owncloud -version: 3.3.1 +version: 4.0.0 appVersion: 10.0.10 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/upstreamed/owncloud/templates/NOTES.txt b/upstreamed/owncloud/templates/NOTES.txt index 04ff1b91a9..d87222fe8c 100644 --- a/upstreamed/owncloud/templates/NOTES.txt +++ b/upstreamed/owncloud/templates/NOTES.txt @@ -10,12 +10,12 @@ host. To configure ownCloud with the URL of your service: 1. Get the ownCloud URL by running: - {{- if contains "NodePort" .Values.serviceType }} + {{- if contains "NodePort" .Values.service.type }} export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "owncloud.fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - {{- else if contains "LoadBalancer" .Values.serviceType }} + {{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "owncloud.fullname" . }}' @@ -39,20 +39,21 @@ host. To configure ownCloud with the URL of your service: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/owncloud \ - --set owncloudPassword=$APP_PASSWORD,owncloudHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} + --set owncloudPassword=$APP_PASSWORD,owncloudHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.host) }},externalDatabase.host={{ .Values.externalDatabase.host }}{{- end }}{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }} {{- end }} {{- else -}} 1. Get the ownCloud URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} echo "ownCloud URL: echo http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "owncloud.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "owncloud.fullname" . }} 8080:{{ .Values.service.port }} {{- else }} - echo "ownCloud URL: http://{{ include "owncloud.host" . }}{{ if .Values.owncloudPort }}:{{ .Values.owncloudPort }}{{ end }}/" +{{- $port:=.Values.service.port | toString }} + echo "ownCloud URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" {{- end }} @@ -74,9 +75,9 @@ host. To configure ownCloud to use and external database host: 1. Complete your ownCloud deployment by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "owncloud.fullname" . }}' @@ -91,5 +92,5 @@ host. To configure ownCloud to use and external database host: ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ## helm upgrade {{ .Release.Name }} stable/owncloud \ - --set owncloudPassword=$APP_PASSWORD,owncloudHost=$APP_HOST,serviceType={{ .Values.serviceType }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST + --set owncloudPassword=$APP_PASSWORD,owncloudHost=$APP_HOST,service.type={{ .Values.service.type }},mariadb.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST {{- end }} diff --git a/upstreamed/owncloud/templates/_helpers.tpl b/upstreamed/owncloud/templates/_helpers.tpl index 7a4b7bbb20..9643573d9b 100644 --- a/upstreamed/owncloud/templates/_helpers.tpl +++ b/upstreamed/owncloud/templates/_helpers.tpl @@ -28,7 +28,7 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "owncloud.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} {{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} diff --git a/upstreamed/owncloud/templates/deployment.yaml b/upstreamed/owncloud/templates/deployment.yaml index 467912bbbf..f6a08d015b 100644 --- a/upstreamed/owncloud/templates/deployment.yaml +++ b/upstreamed/owncloud/templates/deployment.yaml @@ -76,8 +76,9 @@ spec: name: {{ printf "%s-%s" .Release.Name "externaldb" }} key: db-password {{- end }} +{{- $port:=.Values.service.port | toString }} - name: OWNCLOUD_HOST - value: {{ include "owncloud.host" . | quote }} + value: "{{ include "owncloud.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}" - name: OWNCLOUD_USERNAME value: {{ default "" .Values.owncloudUsername | quote }} - name: OWNCLOUD_PASSWORD diff --git a/upstreamed/owncloud/templates/svc.yaml b/upstreamed/owncloud/templates/svc.yaml index 162b31cad8..85dd8c35b9 100644 --- a/upstreamed/owncloud/templates/svc.yaml +++ b/upstreamed/owncloud/templates/svc.yaml @@ -8,13 +8,19 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ default "" .Values.owncloudLoadBalancerIP }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} + {{- if eq .Values.service.type "LoadBalancer" }} + loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }} {{- end }} ports: - - name: http - port: 80 - targetPort: http + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} selector: app: {{ template "owncloud.fullname" . }} diff --git a/upstreamed/owncloud/values.yaml b/upstreamed/owncloud/values.yaml index 4099a30e46..f34a6619f4 100644 --- a/upstreamed/owncloud/values.yaml +++ b/upstreamed/owncloud/values.yaml @@ -78,11 +78,6 @@ ingress: ## # owncloudHost: -## loadBalancerIP for the ownCloud Service (optional, cloud specific) -## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer -## -# owncloudLoadBalancerIP: - ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-owncloud#configuration ## @@ -170,7 +165,23 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + ## loadBalancerIP: + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/parse/Chart.yaml b/upstreamed/parse/Chart.yaml index 088450ce43..7d93231d7b 100644 --- a/upstreamed/parse/Chart.yaml +++ b/upstreamed/parse/Chart.yaml @@ -1,5 +1,5 @@ name: parse -version: 4.0.0 +version: 5.0.0 appVersion: 3.1.1 description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more. keywords: diff --git a/upstreamed/parse/README.md b/upstreamed/parse/README.md index 21037a5949..d8ccae63ae 100644 --- a/upstreamed/parse/README.md +++ b/upstreamed/parse/README.md @@ -48,8 +48,11 @@ The following table lists the configurable parameters of the Parse chart and the | Parameter | Description | Default | |------------------------------------|----------------------------------------|-------------------------------------------------------- | | `global.imageRegistry` | Global Docker image registry | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `loadBalancerIP` | `loadBalancerIP` for the Parse Service | `nil` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port (Dashboard) | `80` | +| `service.loadBalancerIP` | `loadBalancerIP` for the Parse Service | `nil` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | | `server.image.registry` | Parse image registry | `docker.io` | | `server.image.repository` | Parse image name | `bitnami/parse` | | `server.image.tag` | Parse image tag | `{VERSION}` | diff --git a/upstreamed/parse/templates/NOTES.txt b/upstreamed/parse/templates/NOTES.txt index 56de56e32d..90df2cea96 100644 --- a/upstreamed/parse/templates/NOTES.txt +++ b/upstreamed/parse/templates/NOTES.txt @@ -9,20 +9,20 @@ Parse Server 1. Get your Parse Server URL: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" {{ template "parse.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") export SERVICE_IP=$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "parse.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "parse.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}"):{{ .Values.server.port }} -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- else if contains "ClusterIP" .Values.service.type }} kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "parse.fullname" . }} {{ .Values.server.port }}:{{ .Values.server.port }} export SERVICE_IP=127.0.0.1:{{ .Values.server.port }} @@ -64,7 +64,7 @@ service: {{ else }} 1. Get the Parse Dashboard URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} echo "Parse Dashboard URL: http://127.0.0.1:4040/" kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "parse.fullname" . }} 4040:4040 diff --git a/upstreamed/parse/templates/_helpers.tpl b/upstreamed/parse/templates/_helpers.tpl index ee4f1699ae..cb32e1271e 100644 --- a/upstreamed/parse/templates/_helpers.tpl +++ b/upstreamed/parse/templates/_helpers.tpl @@ -28,10 +28,10 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "parse.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} -{{- default "" .Values.loadBalancerIP -}} +{{- default "" .Values.service.loadBalancerIP -}} {{- end -}} {{- end -}} diff --git a/upstreamed/parse/templates/svc.yaml b/upstreamed/parse/templates/svc.yaml index 44d53dfc33..f82c789665 100644 --- a/upstreamed/parse/templates/svc.yaml +++ b/upstreamed/parse/templates/svc.yaml @@ -8,17 +8,23 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ .Values.loadBalancerIP | quote }} + type: {{ .Values.service.type }} + {{- if eq .Values.service.type "LoadBalancer" }} + loadBalancerIP: {{ .Values.service.loadBalancerIP | quote }} + {{- end }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} {{- end }} ports: - name: server-http port: {{ .Values.server.port }} targetPort: server-http - name: dashboard-http - port: 80 + port: {{ .Values.service.port }} targetPort: dashboard-http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} selector: app: {{ template "parse.name" . }} release: "{{ .Release.Name }}" diff --git a/upstreamed/parse/values.yaml b/upstreamed/parse/values.yaml index 92fcdd3347..41694f691e 100644 --- a/upstreamed/parse/values.yaml +++ b/upstreamed/parse/values.yaml @@ -7,12 +7,25 @@ ## Kubernetes serviceType for Parse Deployment ## ref: http://kubernetes.io/docs/user-guide/services/#publishing-services---service-types ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # Parse dashboard HTTP Port + port: 80 + ## loadBalancerIP: + ## + ## nodePorts: + ## http: + nodePorts: + http: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## loadBalancerIP for the Parse Service (optional, cloud specific) ## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer ## -# loadBalancerIP: +# server: ## Bitnami Parse image version diff --git a/upstreamed/phabricator/Chart.yaml b/upstreamed/phabricator/Chart.yaml index 8ddef8a125..149609720c 100644 --- a/upstreamed/phabricator/Chart.yaml +++ b/upstreamed/phabricator/Chart.yaml @@ -1,5 +1,5 @@ name: phabricator -version: 3.3.4 +version: 4.0.0 appVersion: 2018.46.0 description: Collection of open source web applications that help software companies build better software. keywords: diff --git a/upstreamed/phabricator/README.md b/upstreamed/phabricator/README.md index d45e70ee7a..cd43566bdf 100644 --- a/upstreamed/phabricator/README.md +++ b/upstreamed/phabricator/README.md @@ -57,7 +57,6 @@ The following table lists the configurable parameters of the Phabricator chart a | `image.pullSecrets` | Specify image pull secrets | `nil` | | `phabricatorHost` | Phabricator host to create application URLs | `nil` | | `phabricatorAlternateFileDomain` | Phabricator alternate domain to upload files | `nil` | -| `phabricatorLoadBalancerIP` | `loadBalancerIP` for the Phabricator Service | `nil` | | `phabricatorUsername` | User of the application | `user` | | `phabricatorPassword` | Application password | _random 10 character long alphanumeric string_ | | `phabricatorEmail` | Admin email | `user@example.com` | @@ -69,7 +68,13 @@ The following table lists the configurable parameters of the Phabricator chart a | `smtpPassword` | SMTP password | `nil` | | `smtpProtocol` | SMTP protocol [`ssl`, `tls`] | `nil` | | `mariadb.rootUser.password` | MariaDB admin password | `nil` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTP port | `443` | +| `service.loadBalancerIP` | `loadBalancerIP` for the Phabricator Service | `nil` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | | `persistence.enabled` | Enable persistence using PVC | `true` | | `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | | `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | diff --git a/upstreamed/phabricator/templates/NOTES.txt b/upstreamed/phabricator/templates/NOTES.txt index c0b4e402d6..ef2e0283f7 100644 --- a/upstreamed/phabricator/templates/NOTES.txt +++ b/upstreamed/phabricator/templates/NOTES.txt @@ -8,12 +8,12 @@ host. To configure Phabricator with the URL of your service: 1. Get the Phabricator URL by running: - {{- if contains "NodePort" .Values.serviceType }} + {{- if contains "NodePort" .Values.service.type }} export APP_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "phabricator.fullname" . }} -o jsonpath="{.spec.ports[0].nodePort}") export APP_HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - {{- else if contains "LoadBalancer" .Values.serviceType }} + {{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "phabricator.fullname" . }}' @@ -31,14 +31,15 @@ host. To configure Phabricator with the URL of your service: {{- else -}} 1. Get the Phabricator URL by running: -{{- if eq .Values.serviceType "ClusterIP" }} +{{- if eq .Values.service.type "ClusterIP" }} echo "Phabricator URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "phabricator.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "phabricator.fullname" . }} 8080:{{ .Values.service.port }} {{- else }} - echo "Phabricator URL: http://{{ include "phabricator.host" . }}/" +{{- $port:=.Values.service.port | toString }} + echo "Phabricator URL: http://{{ include "phabricator.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" {{- end }} diff --git a/upstreamed/phabricator/templates/_helpers.tpl b/upstreamed/phabricator/templates/_helpers.tpl index 0d5b7de994..40a6c86a6b 100644 --- a/upstreamed/phabricator/templates/_helpers.tpl +++ b/upstreamed/phabricator/templates/_helpers.tpl @@ -28,7 +28,7 @@ Get the user defined LoadBalancerIP for this release. Note, returns 127.0.0.1 if using ClusterIP. */}} {{- define "phabricator.serviceIP" -}} -{{- if eq .Values.serviceType "ClusterIP" -}} +{{- if eq .Values.service.type "ClusterIP" -}} 127.0.0.1 {{- else -}} {{- index .Values (printf "%sLoadBalancerIP" .Chart.Name) | default "" -}} diff --git a/upstreamed/phabricator/templates/deployment.yaml b/upstreamed/phabricator/templates/deployment.yaml index a64a1bd713..cca4e33936 100644 --- a/upstreamed/phabricator/templates/deployment.yaml +++ b/upstreamed/phabricator/templates/deployment.yaml @@ -53,8 +53,9 @@ spec: secretKeyRef: name: {{ template "phabricator.mariadb.fullname" . }} key: mariadb-root-password +{{- $port:=.Values.service.port | toString }} - name: PHABRICATOR_HOST - value: {{ include "phabricator.host" . | quote }} + value: "{{ include "phabricator.host" . }}{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}" {{- if .Values.phabricatorAlternateFileDomain }} - name: PHABRICATOR_ALTERNATE_FILE_DOMAIN value: {{ .Values.phabricatorAlternateFileDomain | quote }} diff --git a/upstreamed/phabricator/templates/svc.yaml b/upstreamed/phabricator/templates/svc.yaml index 8dbc8d6c5e..ff724cf39a 100644 --- a/upstreamed/phabricator/templates/svc.yaml +++ b/upstreamed/phabricator/templates/svc.yaml @@ -8,16 +8,25 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if eq .Values.serviceType "LoadBalancer" }} - loadBalancerIP: {{ default "" .Values.phabricatorLoadBalancerIP }} + type: {{ .Values.service.type }} + {{- if eq .Values.service.type "LoadBalancer" }} + loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }} + {{- end }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "phabricator.fullname" . }} diff --git a/upstreamed/phabricator/values.yaml b/upstreamed/phabricator/values.yaml index 848b9bf560..ed146515c2 100644 --- a/upstreamed/phabricator/values.yaml +++ b/upstreamed/phabricator/values.yaml @@ -33,11 +33,6 @@ image: ## # phabricatorAlternateFileDomain: -## loadBalancerIP for the Phabricator Service (optional, cloud specific) -## ref: http://kubernetes.io/docs/user-guide/services/#type-loadbalancer -## -# phabricatorLoadBalancerIP: - ## User of the application ## ref: https://github.com/bitnami/bitnami-docker-phabricator#configuration ## @@ -111,7 +106,24 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## loadBalancerIP: + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/phpbb/Chart.yaml b/upstreamed/phpbb/Chart.yaml index d680b9b65f..fe86b6f304 100644 --- a/upstreamed/phpbb/Chart.yaml +++ b/upstreamed/phpbb/Chart.yaml @@ -1,6 +1,6 @@ name: phpbb -version: 3.2.0 -appVersion: 3.2.3 +version: 4.0.0 +appVersion: 3.2.4 description: Community forum that supports the notion of users and groups, file attachments, full-text search, notifications and more. keywords: diff --git a/upstreamed/phpbb/README.md b/upstreamed/phpbb/README.md index b1d83a4a1b..cfcc031ead 100644 --- a/upstreamed/phpbb/README.md +++ b/upstreamed/phpbb/README.md @@ -72,7 +72,14 @@ The following table lists the configurable parameters of the phpBB chart and the | `mariadb.db.name` | Database name to create | `bitnami_phpbb` | | `mariadb.db.user` | Database user to create | `bn_phpbb` | | `mariadb.db.password` | Password for the database | _random 10 character long alphanumeric string_ | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port (Dashboard) | `80` | +| `nodePorts.http` | Kubernetes http node port | `""` | +| `nodePorts.https` | Kubernetes https node port | `""` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | +| `service.loadBalancerIP` | LoadBalancer service IP | `""` | | `persistence.enabled` | Enable persistence using PVC | `true` | | `persistence.apache.storageClass` | PVC Storage Class for Apache volume | `nil` (uses alpha storage class annotation) | | `persistence.apache.accessMode` | PVC Access Mode for Apache volume | `ReadWriteOnce` | diff --git a/upstreamed/phpbb/requirements.lock b/upstreamed/phpbb/requirements.lock index 4a8ecdbf77..ca0c6a8911 100644 --- a/upstreamed/phpbb/requirements.lock +++ b/upstreamed/phpbb/requirements.lock @@ -1,6 +1,6 @@ dependencies: - name: mariadb repository: https://kubernetes-charts.storage.googleapis.com/ - version: 5.2.0 + version: 5.2.3 digest: sha256:0593b73b2163fbbbae061de1aa2b8280d43f8a423a91e1c7375c0b6c86784b1c -generated: 2018-10-16T08:50:16.14675+02:00 +generated: 2018-11-20T10:22:49.801551704Z diff --git a/upstreamed/phpbb/templates/NOTES.txt b/upstreamed/phpbb/templates/NOTES.txt index 7e53671cce..d9267ac6a7 100644 --- a/upstreamed/phpbb/templates/NOTES.txt +++ b/upstreamed/phpbb/templates/NOTES.txt @@ -2,24 +2,26 @@ 1. Get the phpBB URL by running: -{{- if contains "NodePort" .Values.serviceType }} +{{- if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "phpbb.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") echo "phpBB URL: http://$NODE_IP:$NODE_PORT/" -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "phpbb.fullname" . }}' export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "phpbb.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "phpBB URL: http://$SERVICE_IP/" -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- $port:=.Values.service.port | toString }} + echo "phpBB URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" + +{{- else if contains "ClusterIP" .Values.service.type }} echo "phpBB URL: http://127.0.0.1:8080/" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "phpbb.fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "phpbb.fullname" . }} 8080:{{ .Values.service.port }} {{- end }} @@ -40,6 +42,6 @@ host. To configure phpBB to use and external database host: 1. Complete your phpBB deployment by running: - helm upgrade {{ .Release.Name }} --set serviceType={{ .Values.serviceType }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/phpbb + helm upgrade {{ .Release.Name }} --set service.type={{ .Values.service.type }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/phpbb {{- end }} diff --git a/upstreamed/phpbb/templates/svc.yaml b/upstreamed/phpbb/templates/svc.yaml index 3692d03ff0..beeeffabe0 100644 --- a/upstreamed/phpbb/templates/svc.yaml +++ b/upstreamed/phpbb/templates/svc.yaml @@ -8,13 +8,25 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} + type: {{ .Values.service.type }} + {{- if eq .Values.service.type "LoadBalancer" }} + loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }} + {{- end }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} ports: - - name: http - port: 80 - targetPort: http - - name: https - port: 443 - targetPort: https + - name: http + port: {{ .Values.service.port }} + targetPort: http + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} + {{- end }} + - name: https + port: {{ .Values.service.httpsPort }} + targetPort: https + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} + {{- end }} selector: app: {{ template "phpbb.fullname" . }} diff --git a/upstreamed/phpbb/values.yaml b/upstreamed/phpbb/values.yaml index e1c2b75dae..9e16d2edb5 100644 --- a/upstreamed/phpbb/values.yaml +++ b/upstreamed/phpbb/values.yaml @@ -10,7 +10,7 @@ image: registry: docker.io repository: bitnami/phpbb - tag: 3.2.3 + tag: 3.2.4 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -118,7 +118,25 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer ## -serviceType: LoadBalancer +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## loadBalancerIP: + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ diff --git a/upstreamed/postgresql/Chart.yaml b/upstreamed/postgresql/Chart.yaml index 72b64dafdb..7e4e208ae6 100644 --- a/upstreamed/postgresql/Chart.yaml +++ b/upstreamed/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 2.6.1 +version: 2.6.3 appVersion: 10.6.0 description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/upstreamed/postgresql/README.md b/upstreamed/postgresql/README.md index 8c3ec77aed..be84efb2c6 100644 --- a/upstreamed/postgresql/README.md +++ b/upstreamed/postgresql/README.md @@ -79,7 +79,6 @@ The following tables lists the configurable parameters of the PostgreSQL chart a | `persistence.accessMode` | PVC Access Mode for PostgreSQL volume | `ReadWriteOnce` | | `persistence.size` | PVC Storage Request for PostgreSQL volume | `8Gi` | | `persistence.annotations` | Annotations for the PVC | `{}` | -| `resources` | CPU/Memory resource requests/limits | `nil` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `affinity` | Affinity labels for pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `[]` | diff --git a/upstreamed/postgresql/templates/statefulset-slaves.yaml b/upstreamed/postgresql/templates/statefulset-slaves.yaml index dea55d2066..450a636f3b 100644 --- a/upstreamed/postgresql/templates/statefulset-slaves.yaml +++ b/upstreamed/postgresql/templates/statefulset-slaves.yaml @@ -50,6 +50,9 @@ spec: {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} + {{- end }} + {{- if .Values.terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- end }} {{- if and .Values.persistence.enabled .Values.securityContext.enabled}} initContainers: @@ -79,9 +82,9 @@ spec: env: {{- if .Values.image.debug}} - name: BASH_DEBUG - value: 1 + value: "1" - name: NAMI_DEBUG - value: 1 + value: "1" {{- end }} - name: POSTGRESQL_REPLICATION_MODE value: "slave" @@ -152,10 +155,12 @@ spec: volumeClaimTemplates: - metadata: name: data + {{- with .Values.persistence.annotations }} annotations: - {{- range $key, $value := .Values.persistence.annotations }} + {{- range $key, $value := . }} {{ $key }}: {{ $value }} {{- end }} + {{- end }} spec: accessModes: {{- range .Values.persistence.accessModes }} diff --git a/upstreamed/postgresql/templates/statefulset.yaml b/upstreamed/postgresql/templates/statefulset.yaml index 3610fbe2ea..4ba233c9ad 100644 --- a/upstreamed/postgresql/templates/statefulset.yaml +++ b/upstreamed/postgresql/templates/statefulset.yaml @@ -79,6 +79,12 @@ spec: resources: {{ toYaml .Values.resources | indent 10 }} env: + {{- if .Values.image.debug}} + - name: BASH_DEBUG + value: "1" + - name: NAMI_DEBUG + value: "1" + {{- end }} {{- if .Values.replication.enabled }} - name: POSTGRESQL_REPLICATION_MODE value: "master" diff --git a/upstreamed/wordpress/Chart.yaml b/upstreamed/wordpress/Chart.yaml index a5a010cc7c..6269db98ed 100644 --- a/upstreamed/wordpress/Chart.yaml +++ b/upstreamed/wordpress/Chart.yaml @@ -1,5 +1,5 @@ name: wordpress -version: 3.3.0 +version: 4.0.0 appVersion: 4.9.8 description: Web publishing platform for building blogs and websites. icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png diff --git a/upstreamed/wordpress/README.md b/upstreamed/wordpress/README.md index d9d05c3f81..8f491cb5e1 100644 --- a/upstreamed/wordpress/README.md +++ b/upstreamed/wordpress/README.md @@ -80,10 +80,12 @@ The following table lists the configurable parameters of the WordPress chart and | `externalDatabase.password` | Password for the above username | `nil` | | `externalDatabase.database` | Name of the existing database | `bitnami_wordpress` | | `externalDatabase.port` | Database port number | `3306` | -| `serviceType` | Kubernetes Service type | `LoadBalancer` | -| `serviceExternalTrafficPolicy` | Enable client source IP preservation | `Cluster` | -| `nodePorts.http` | Kubernetes http node port | `""` | -| `nodePorts.https` | Kubernetes https node port | `""` | +| `service.type` | Kubernetes Service type | `LoadBalancer` | +| `service.port` | Service HTTP port | `80` | +| `service.httpsPort` | Service HTTPS port | `443` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.nodePorts.http` | Kubernetes http node port | `""` | +| `service.nodePorts.https` | Kubernetes https node port | `""` | | `healthcheckHttps` | Use https for liveliness and readiness | `false` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.hosts[0].name` | Hostname to your WordPress installation | `wordpress.local` | diff --git a/upstreamed/wordpress/templates/NOTES.txt b/upstreamed/wordpress/templates/NOTES.txt index 9f520118b5..31937e0a52 100644 --- a/upstreamed/wordpress/templates/NOTES.txt +++ b/upstreamed/wordpress/templates/NOTES.txt @@ -8,22 +8,23 @@ {{ if .tls }}https{{ else }}http{{ end }}://{{ .name }}/admin {{- end }} -{{- else if contains "LoadBalancer" .Values.serviceType }} +{{- else if contains "LoadBalancer" .Values.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "fullname" . }}' +{{- $port:=.Values.service.port | toString }} export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo "WordPress URL: http://$SERVICE_IP/" - echo "WordPress Admin URL: http://$SERVICE_IP/admin" + echo "WordPress URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" + echo "WordPress Admin URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/admin" -{{- else if contains "ClusterIP" .Values.serviceType }} +{{- else if contains "ClusterIP" .Values.service.type }} echo "WordPress URL: http://127.0.0.1:8080/" echo "WordPress Admin URL: http://127.0.0.1:8080/admin" - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "fullname" . }} 8080:80 + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "fullname" . }} 8080:{{ .Values.service.port }} -{{- else if contains "NodePort" .Values.serviceType }} +{{- else if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") diff --git a/upstreamed/wordpress/templates/svc.yaml b/upstreamed/wordpress/templates/svc.yaml index f6c3993130..636f6abf3f 100644 --- a/upstreamed/wordpress/templates/svc.yaml +++ b/upstreamed/wordpress/templates/svc.yaml @@ -8,22 +8,22 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: - type: {{ .Values.serviceType }} - {{- if (or (eq .Values.serviceType "LoadBalancer") (eq .Values.serviceType "NodePort")) }} - externalTrafficPolicy: {{ .Values.serviceExternalTrafficPolicy | quote }} + type: {{ .Values.service.type }} + {{- if (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} {{- end }} ports: - name: http - port: 80 + port: {{ .Values.service.port }} targetPort: http - {{- if (and (eq .Values.serviceType "NodePort") (not (empty .Values.nodePorts.http)))}} - nodePort: {{ .Values.nodePorts.http }} + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}} + nodePort: {{ .Values.service.nodePorts.http }} {{- end }} - name: https - port: 443 + port: {{ .Values.service.httpsPort }} targetPort: https - {{- if (and (eq .Values.serviceType "NodePort") (not (empty .Values.nodePorts.https)))}} - nodePort: {{ .Values.nodePorts.https }} + {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.https)))}} + nodePort: {{ .Values.service.nodePorts.https }} {{- end }} selector: app: {{ template "fullname" . }} diff --git a/upstreamed/wordpress/values-production.yaml b/upstreamed/wordpress/values-production.yaml index c53442aade..13b8436135 100644 --- a/upstreamed/wordpress/values-production.yaml +++ b/upstreamed/wordpress/values-production.yaml @@ -136,23 +136,28 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer or ClusterIP ## -serviceType: ClusterIP -## -## serviceType: NodePort -## nodePorts: -## http: -## https: -nodePorts: - http: "" - https: "" -## Enable client source IP preservation -## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip -## -serviceExternalTrafficPolicy: Local +service: + type: ClusterIP + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Local ## Allow health checks to be pointed at the https port healthcheckHttps: false + ## Configure extra options for liveness and readiness probes ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes) livenessProbe: diff --git a/upstreamed/wordpress/values.yaml b/upstreamed/wordpress/values.yaml index fdd9070cb2..35293f72fb 100644 --- a/upstreamed/wordpress/values.yaml +++ b/upstreamed/wordpress/values.yaml @@ -140,19 +140,23 @@ mariadb: ## Kubernetes configuration ## For minikube, set this to NodePort, elsewhere use LoadBalancer or ClusterIP ## -serviceType: LoadBalancer -## -## serviceType: NodePort -## nodePorts: -## http: -## https: -nodePorts: - http: "" - https: "" -## Enable client source IP preservation -## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip -## -serviceExternalTrafficPolicy: Cluster +service: + type: LoadBalancer + # HTTP Port + port: 80 + # HTTPS Port + httpsPort: 443 + ## + ## nodePorts: + ## http: + ## https: + nodePorts: + http: "" + https: "" + ## Enable client source IP preservation + ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip + ## + externalTrafficPolicy: Cluster ## Allow health checks to be pointed at the https port healthcheckHttps: false