Add hostNetwork option for Kafka StatefulSet (#9081)

This commit is contained in:
Hayden James
2022-02-22 02:24:30 -05:00
committed by GitHub
parent 1ea6684a73
commit e511753c1a
3 changed files with 6 additions and 1 deletions

View File

@@ -190,6 +190,7 @@ The command removes all the Kubernetes components associated with the chart and
| `containerSecurityContext.runAsUser` | Set Kafka containers' Security Context runAsUser | `1001` |
| `containerSecurityContext.runAsNonRoot` | Set Kafka containers' Security Context runAsNonRoot | `true` |
| `hostAliases` | Kafka pods host aliases | `[]` |
| `hostNetwork` | Specify if host network should be enabled for Kafka pods | `false` |
| `podLabels` | Extra labels for Kafka pods | `{}` |
| `podAnnotations` | Extra annotations for Kafka pods | `{}` |
| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
@@ -944,4 +945,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.

View File

@@ -59,6 +59,7 @@ spec:
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
hostNetwork: {{ .Values.hostNetwork }}
{{- if .Values.schedulerName }}
schedulerName: {{ .Values.schedulerName | quote }}
{{- end }}

View File

@@ -490,6 +490,9 @@ containerSecurityContext:
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## @param hostNetwork Specify if host network should be enabled for Kafka pods
##
hostNetwork: false
## @param podLabels Extra labels for Kafka pods
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##