[stable/odoo] Add service.type to values.yaml (#9409)

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
This commit is contained in:
Javier J. Salmerón-García
2018-11-21 01:27:12 -08:00
committed by k8s-ci-robot
parent 4b38298e4a
commit 6078b83575
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: odoo
version: 4.0.2
version: 5.0.0
appVersion: 11.0.20181115
description: A suite of web based open source business apps.
home: https://www.odoo.com/
+1
View File
@@ -64,6 +64,7 @@ The following table lists the configurable parameters of the Odoo chart and thei
| `smtpPassword` | SMTP password | `nil` |
| `smtpProtocol` | SMTP protocol [`ssl`, `tls`] | `nil` |
| `service.type` | Kubernetes Service type | `LoadBalancer` |
| `service.port` | Service HTTP port | `80` |
| `service.loadBalancer` | Kubernetes LoadBalancerIP to request | `nil` |
| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` |
| `service.nodePort` | Kubernetes http node port | `""` |
+4 -2
View File
@@ -26,11 +26,13 @@
** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "odoo.fullname" . }} **
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "odoo.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo "Odoo URL: http://$SERVICE_IP/"
{{- $port:=.Values.service.port | toString }}
echo "Odoo URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/"
{{- else if contains "ClusterIP" .Values.service.type }}
echo "Odoo URL: http://127.0.0.1:8080/"
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "odoo.fullname" . }} 8080:80
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "odoo.fullname" . }} 8080:{{ .Values.service.port }}
{{- end }}
{{- end }}
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
{{- end }}
ports:
- name: http
port: 80
port: {{ .Values.service.port }}
targetPort: http
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort)))}}
nodePort: {{ .Values.service.nodePort }}
+2 -1
View File
@@ -89,7 +89,8 @@ service:
## otherwise leave blank
##
# loadBalancerIP:
# HTTP Port
port: 80
## Use nodePort to requets some specific port when usin NodePort
##
nodePort: ""