radosgw: Proper fix for frontend port selection
This commit is contained in:
parent
a7ad50d9a3
commit
d755ebcd0e
4 changed files with 7 additions and 4 deletions
|
@ -4,4 +4,4 @@ appVersion: "14.2"
|
||||||
description: CEPH RadosGW
|
description: CEPH RadosGW
|
||||||
icon: http://ceph.com/wp-content/uploads/2016/07/Ceph_Logo_Stacked_RGB_120411_fa.png
|
icon: http://ceph.com/wp-content/uploads/2016/07/Ceph_Logo_Stacked_RGB_120411_fa.png
|
||||||
name: radosgw
|
name: radosgw
|
||||||
version: 0.3.3
|
version: 0.3.4
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- $port := .Values.frontendPort | default 8008 -}}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -11,9 +12,9 @@ data:
|
||||||
mon_host = {{ include "helm-toolkit.utils.joinListWithComma" .Values.monHosts }}
|
mon_host = {{ include "helm-toolkit.utils.joinListWithComma" .Values.monHosts }}
|
||||||
rgw dns name = {{ .Values.dnsName }}
|
rgw dns name = {{ .Values.dnsName }}
|
||||||
{{- if eq .Values.frontend "beast" }}
|
{{- if eq .Values.frontend "beast" }}
|
||||||
rgw frontends = beast port=80 endpoint=0.0.0.0
|
rgw frontends = beast endpoint=0.0.0.0 port={{ $port }}
|
||||||
{{- else if eq .Values.frontend "civetweb" }}
|
{{- else if eq .Values.frontend "civetweb" }}
|
||||||
rgw frontends = civetweb port=80
|
rgw frontends = civetweb port={{ $port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.extraCephConf }}
|
{{- if .Values.extraCephConf }}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- $port := .Values.frontendPort | default 8008 -}}
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
|
@ -35,7 +36,7 @@ spec:
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 80
|
containerPort: {{ $port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|
|
@ -19,6 +19,7 @@ dnsName: chart-example.local
|
||||||
|
|
||||||
# The RadosGW frontend to use, either beast or civetweb
|
# The RadosGW frontend to use, either beast or civetweb
|
||||||
frontend: beast
|
frontend: beast
|
||||||
|
# frontendPort: 8008
|
||||||
|
|
||||||
# extraCephConf: |-
|
# extraCephConf: |-
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue