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

Commit

Permalink
Merge pull request #139 from kangshung/feature/hostAliases
Browse files Browse the repository at this point in the history
Add hostAliases support for NiFi
  • Loading branch information
banzo authored May 28, 2021
2 parents ea6c0b2 + e9cb611 commit d4e13df
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: nifi
version: 0.7.3
version: 0.7.4
appVersion: 1.12.1
description: Apache NiFi is a software project from the Apache Software Foundation designed to automate the flow of data between software systems.
keywords:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ The following table lists the configurable parameters of the nifi chart and the
| `sts.podManagementPolicy` | Parallel podManagementPolicy | `Parallel` |
| `sts.AntiAffinity` | Affinity for pod assignment | `soft` |
| `sts.pod.annotations` | Pod template annotations | `security.alpha.kubernetes.io/sysctls: net.ipv4.ip_local_port_range=10000 65000` |
| `sts.hostAliases ` | Add entries to Pod /etc/hosts | `[]` |
| **secrets**
| `secrets` | Pass any secrets to the nifi pods. The secret can also be mounted to a specific path if required. | `nil` |
| **configmaps**
Expand Down
4 changes: 4 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
{{- if .Values.sts.useHostNetwork }}
hostNetwork: {{ .Values.sts.useHostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- if .Values.sts.hostAliases }}
hostAliases:
{{ toYaml .Values.sts.hostAliases | indent 8 }}
{{- end }}
serviceAccountName: {{ include "apache-nifi.serviceAccountName" . }}
{{- if eq .Values.sts.AntiAffinity "hard" }}
Expand Down
5 changes: 5 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ sts:
create: false
#name: nifi
annotations: {}
hostAliases: []
# - ip: "1.2.3.4"
# hostnames:
# - example.com
# - example

## Useful if using any custom secrets
## Pass in some secrets to use (if required)
Expand Down

0 comments on commit d4e13df

Please sign in to comment.