mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 15:38:00 +08:00
Add hostNetwork option for Kafka StatefulSet (#9081)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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/
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user