Skip to content

Commit

Permalink
Add support for hostNetwork to statefulset
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal committed Jan 18, 2023
1 parent 1d10004 commit 07d1222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
volumeClaimTemplates:
- metadata:
name: zk-data
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ securityContext:
runAsUser: 1000
fsGroup: 1000

hostNetwork: false

# Persistence volume
volume:
storageClassName: standard
Expand Down

0 comments on commit 07d1222

Please sign in to comment.