helm: make image name configurable, make postgres and redis charts optional
This commit is contained in:
parent
a732beb72b
commit
7d321e8aa8
|
@ -5,12 +5,13 @@ For a mid to high-load installation, Kubernetes is recommended. passbook is inst
|
||||||
This installation automatically applies database migrations on startup. After the installation is done, you can use `pbadmin` as username and password.
|
This installation automatically applies database migrations on startup. After the installation is done, you can use `pbadmin` as username and password.
|
||||||
|
|
||||||
```
|
```
|
||||||
# Default values for passbook.
|
###################################
|
||||||
# This is a YAML-formatted file.
|
# Values directly affecting passbook
|
||||||
# Declare variables to be passed into your templates.
|
###################################
|
||||||
# passbook version to use. Defaults to latest stable version
|
image:
|
||||||
# image:
|
name: beryju/passbook
|
||||||
# tag:
|
name_static: beryju/passbook-static
|
||||||
|
tag: 0.9.0-stable
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ config:
|
||||||
# Enable error reporting
|
# Enable error reporting
|
||||||
error_reporting:
|
error_reporting:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
environment: customer
|
||||||
send_pii: false
|
send_pii: false
|
||||||
# Log level used by web and worker
|
# Log level used by web and worker
|
||||||
# Can be either debug, info, warning, error
|
# Can be either debug, info, warning, error
|
||||||
|
@ -32,19 +34,15 @@ config:
|
||||||
# bucket: s3-bucket
|
# bucket: s3-bucket
|
||||||
# host: s3-host
|
# host: s3-host
|
||||||
|
|
||||||
ingress:
|
###################################
|
||||||
annotations: {}
|
# Values controlling dependencies
|
||||||
# kubernetes.io/ingress.class: nginx
|
###################################
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
path: /
|
|
||||||
hosts:
|
|
||||||
- passbook.k8s.local
|
|
||||||
tls: []
|
|
||||||
# - secretName: chart-example-tls
|
|
||||||
# hosts:
|
|
||||||
# - passbook.k8s.local
|
|
||||||
|
|
||||||
# These settings configure the packaged PostgreSQL and Redis chart.
|
install:
|
||||||
|
postgresql: true
|
||||||
|
redis: true
|
||||||
|
|
||||||
|
# These values influence the bundled postgresql and redis charts, but are also used by passbook to connect
|
||||||
postgresql:
|
postgresql:
|
||||||
postgresqlDatabase: passbook
|
postgresqlDatabase: passbook
|
||||||
|
|
||||||
|
@ -56,4 +54,16 @@ redis:
|
||||||
enabled: false
|
enabled: false
|
||||||
# https://stackoverflow.com/a/59189742
|
# https://stackoverflow.com/a/59189742
|
||||||
disableCommands: []
|
disableCommands: []
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
annotations: {}
|
||||||
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
path: /
|
||||||
|
hosts:
|
||||||
|
- passbook.k8s.local
|
||||||
|
tls: []
|
||||||
|
# - secretName: chart-example-tls
|
||||||
|
# hosts:
|
||||||
|
# - passbook.k8s.local
|
||||||
```
|
```
|
||||||
|
|
|
@ -5,9 +5,11 @@ name: passbook
|
||||||
version: "0.9.0-stable"
|
version: "0.9.0-stable"
|
||||||
icon: https://github.com/BeryJu/passbook/blob/master/passbook/static/static/passbook/logo.svg
|
icon: https://github.com/BeryJu/passbook/blob/master/passbook/static/static/passbook/logo.svg
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: 9.3.2
|
version: 9.3.2
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
- name: redis
|
condition: install.postgresql
|
||||||
|
- name: redis
|
||||||
version: 10.7.16
|
version: 10.7.16
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
condition: install.redis
|
||||||
|
|
|
@ -23,7 +23,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}-static
|
- name: {{ .Chart.Name }}-static
|
||||||
image: "beryju/passbook-static:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.name_static }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|
|
@ -24,7 +24,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: passbook-database-migrations
|
- name: passbook-database-migrations
|
||||||
image: "beryju/passbook:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
args:
|
args:
|
||||||
- ./manage.py
|
- ./manage.py
|
||||||
|
@ -51,7 +51,7 @@ spec:
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "beryju/passbook:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
args:
|
args:
|
||||||
- uwsgi
|
- uwsgi
|
||||||
|
|
|
@ -24,7 +24,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "beryju/passbook:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
args:
|
args:
|
||||||
- celery
|
- celery
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# Default values for passbook.
|
###################################
|
||||||
# This is a YAML-formatted file.
|
# Values directly affecting passbook
|
||||||
# Declare variables to be passed into your templates.
|
###################################
|
||||||
image:
|
image:
|
||||||
|
name: beryju/passbook
|
||||||
|
name_static: beryju/passbook-static
|
||||||
tag: 0.9.0-stable
|
tag: 0.9.0-stable
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
@ -25,19 +27,15 @@ config:
|
||||||
# bucket: s3-bucket
|
# bucket: s3-bucket
|
||||||
# host: s3-host
|
# host: s3-host
|
||||||
|
|
||||||
ingress:
|
###################################
|
||||||
annotations: {}
|
# Values controlling dependencies
|
||||||
# kubernetes.io/ingress.class: nginx
|
###################################
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
path: /
|
|
||||||
hosts:
|
|
||||||
- passbook.k8s.local
|
|
||||||
tls: []
|
|
||||||
# - secretName: chart-example-tls
|
|
||||||
# hosts:
|
|
||||||
# - passbook.k8s.local
|
|
||||||
|
|
||||||
# These settings configure the packaged PostgreSQL and Redis chart.
|
install:
|
||||||
|
postgresql: true
|
||||||
|
redis: true
|
||||||
|
|
||||||
|
# These values influence the bundled postgresql and redis charts, but are also used by passbook to connect
|
||||||
postgresql:
|
postgresql:
|
||||||
postgresqlDatabase: passbook
|
postgresqlDatabase: passbook
|
||||||
|
|
||||||
|
@ -49,3 +47,15 @@ redis:
|
||||||
enabled: false
|
enabled: false
|
||||||
# https://stackoverflow.com/a/59189742
|
# https://stackoverflow.com/a/59189742
|
||||||
disableCommands: []
|
disableCommands: []
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
annotations: {}
|
||||||
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
path: /
|
||||||
|
hosts:
|
||||||
|
- passbook.k8s.local
|
||||||
|
tls: []
|
||||||
|
# - secretName: chart-example-tls
|
||||||
|
# hosts:
|
||||||
|
# - passbook.k8s.local
|
||||||
|
|
Reference in New Issue