mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat(helm): add hostNetwork, topologySpreadConstraint and clusterIP su… (#3389)
* add(helm): add hostNetwork, topologySpreadConstraint and clusterIP support * parameters hostNetwork and clusterIP shouold not be templated if they are not explicitly used --------- Signed-off-by: Stefan Roman <elegant.frog3113@fastmail.com> Co-authored-by: Stefan Roman <elegant.frog3113@fastmail.com>
This commit is contained in:
parent
d9f8f2553b
commit
69db21db4c
3 changed files with 18 additions and 0 deletions
|
@ -40,6 +40,13 @@ imagePullSecrets:
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | trim | nindent 2 }}
|
{{- toYaml . | trim | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if and (eq (typeOf .Values.hostNetwork) "bool") .Values.hostNetwork }}
|
||||||
|
hostNetwork: true
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.topologySpreadConstraints }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- toYaml . | trim | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.initContainers }}
|
{{- with .Values.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- if eq (typeOf .) "string" }}
|
{{- if eq (typeOf .) "string" }}
|
||||||
|
|
|
@ -17,6 +17,9 @@ spec:
|
||||||
{{- if and (eq .Values.service.type "LoadBalancer") (ne .Values.service.loadBalancerIP "") }}
|
{{- if and (eq .Values.service.type "LoadBalancer") (ne .Values.service.loadBalancerIP "") }}
|
||||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if and (eq .Values.service.type "ClusterIP") (ne .Values.service.clusterIP "") }}
|
||||||
|
clusterIP: {{ .Values.service.clusterIP }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.service.port }}
|
- port: {{ .Values.service.port }}
|
||||||
targetPort: dragonfly
|
targetPort: dragonfly
|
||||||
|
|
|
@ -47,11 +47,16 @@ securityContext: {}
|
||||||
# runAsNonRoot: true
|
# runAsNonRoot: true
|
||||||
# runAsUser: 1000
|
# runAsUser: 1000
|
||||||
|
|
||||||
|
# -- Set hostNetwork for pod
|
||||||
|
hostNetwork: false
|
||||||
|
|
||||||
service:
|
service:
|
||||||
# -- Service type to provision. Can be NodePort, ClusterIP or LoadBalancer
|
# -- Service type to provision. Can be NodePort, ClusterIP or LoadBalancer
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
# -- Load balancer static ip to use when service type is set to LoadBalancer
|
# -- Load balancer static ip to use when service type is set to LoadBalancer
|
||||||
loadBalancerIP: ""
|
loadBalancerIP: ""
|
||||||
|
# -- Cluster IP address to assign to the service. Leave empty to auto-allocate
|
||||||
|
clusterIP: ""
|
||||||
# -- Dragonfly service port
|
# -- Dragonfly service port
|
||||||
port: 6379
|
port: 6379
|
||||||
# -- Extra annotations for the service
|
# -- Extra annotations for the service
|
||||||
|
@ -207,3 +212,6 @@ tolerations: []
|
||||||
|
|
||||||
# -- Affinity for pod assignment
|
# -- Affinity for pod assignment
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
# -- Topology Spread Constraints for pod assignment
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue