mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-21 13:54:03 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2aabd14ac | ||
|
|
07f1e601ab |
@@ -13,7 +13,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.4.0
|
version: 0.4.2
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
|
|||||||
@@ -236,10 +236,49 @@ The above command sets the number of replicas to 3 for a highly available (HA) s
|
|||||||
|
|
||||||
Alternatively, a YAML file that specifies the values for the parameters can be provided while [installing](https://helm.sh/docs/helm/helm_install/) the chart. For example,
|
Alternatively, a YAML file that specifies the values for the parameters can be provided while [installing](https://helm.sh/docs/helm/helm_install/) the chart. For example,
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# values.yaml
|
||||||
|
appKey: changeit
|
||||||
|
replicaCount: 3
|
||||||
|
nginx:
|
||||||
|
replicaCount: 3
|
||||||
|
redis:
|
||||||
|
cluster:
|
||||||
|
slaveCount: 3
|
||||||
|
password: changeit
|
||||||
|
mariadb:
|
||||||
|
auth:
|
||||||
|
rootPassword: changeit
|
||||||
|
password: changeit
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install invoiceninja -f values.yaml invoiceninja/invoiceninja
|
helm install invoiceninja -f values.yaml invoiceninja/invoiceninja
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Setting Environment Variables
|
||||||
|
|
||||||
|
Should you need to inject any environment variables into the `invoiceninja` container, you can use the `extraEnvVars` option:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# ... values.yaml file
|
||||||
|
# In this example, we are forcing REQUIRE_HTTPS to be false
|
||||||
|
extraEnvVars:
|
||||||
|
- name: REQUIRE_HTTPS
|
||||||
|
value: 'false' # all values must be strings, so other types must be surrounded in quotes
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively you can provide the name of an existing `configmap` or `secret` object:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl create configmap examplemap --from-literal=REQUIRE_HTTPS='false'
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# ... values.yaml file
|
||||||
|
extraEnvVarsCM: examplemap
|
||||||
|
```
|
||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
|
|
||||||
Nothing yet.
|
Nothing yet.
|
||||||
|
|||||||
@@ -59,14 +59,14 @@ Create the name of the service account to use
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "invoiceninja.public.storageClass" -}}
|
{{- define "invoiceninja.public.storageClass" -}}
|
||||||
{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) -}}
|
{{- include "common.storage.class" (dict "persistence" .Values.persistence.public "global" .Values.global) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "invoiceninja.storage.storageClass" -}}
|
{{- define "invoiceninja.storage.storageClass" -}}
|
||||||
{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) -}}
|
{{- include "common.storage.class" (dict "persistence" .Values.persistence.storage "global" .Values.global) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|||||||
@@ -13,7 +13,11 @@ metadata:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
{{- if .Values.nginx.ingress.enabled }}
|
{{- if .Values.nginx.ingress.enabled }}
|
||||||
|
{{- if .Values.nginx.ingress.tls }}
|
||||||
|
APP_URL: "https://{{ .Values.nginx.ingress.hostname }}"
|
||||||
|
{{- else }}
|
||||||
APP_URL: "http://{{ .Values.nginx.ingress.hostname }}"
|
APP_URL: "http://{{ .Values.nginx.ingress.hostname }}"
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
APP_URL: "http://{{ include "common.names.fullname" . }}"
|
APP_URL: "http://{{ include "common.names.fullname" . }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user