Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Add variable for additional environment variables (#56)
Browse files Browse the repository at this point in the history
* add configurable initContainers
add configurable extraVolumes
add configurable extraVolumeMounts

* updated README

* add configurable initContainers
add configurable extraVolumes
add configurable extraVolumeMounts

Signed-off-by: Michael Stöttinger <[email protected]>

* updated README

Signed-off-by: Michael Stöttinger <[email protected]>

* add additional environmentVariables to values and add them to the server-container of the pod

Signed-off-by: stoetti <[email protected]>

* merge cetic-master

Signed-off-by: stoetti <[email protected]>
  • Loading branch information
stoetti authored Apr 27, 2020
1 parent 84c946c commit 189d781
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ The following table lists the configurable parameters of the nifi chart and the
| `extraVolumes` | Additional Volumes available within the pod (see [spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#volume-v1-core) for format) | `[]` |
| **extraVolumeMounts** |
| `extraVolumeMounts` | VolumeMounts for the nifi-server container (see [spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#volumemount-v1-core) for details) | `[]` |
| **environmentVariables** |
| `environmentVariables` | Additional environment variables for the nifi-container (see [spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#envvar-v1-core) for details) | `[]` |
| **zookeeper** |
|`zookeeper.enabled` | If true, deploy Zookeeper | `true` |
|`zookeeper.url` | If the Zookeeper Chart is disabled a URL and port are required to connect | `nil` |
Expand Down
3 changes: 3 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ spec:
env:
- name: NIFI_ZOOKEEPER_CONNECT_STRING
value: {{ template "zookeeper.url" . }}
{{- if .Values.environmentVariables }}
{{ toYaml .Values.environmentVariables | indent 8 }}
{{- end }}
lifecycle:
preStop:
exec:
Expand Down
17 changes: 16 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,20 @@ service:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24


# Enables additional port/ports to nifi service for internal processors
processors:
enabled: false
ports:
- name: processor01
port: 7001
targetPort: 7001
#nodePort: 30701
- name: processor02
port: 7002
targetPort: 7002
#nodePort: 30702

# Enables additional port/ports to nifi service for internal processors
processors:
enabled: false
Expand Down Expand Up @@ -203,6 +216,8 @@ extraVolumeMounts: []

extraVolumes: []

environmentVariables: []

# ------------------------------------------------------------------------------
# Zookeeper:
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 189d781

Please sign in to comment.