Fix load balancer with mix protocols issue

This commit is contained in:
Carlos Rodriguez Hernandez
2018-06-06 16:32:39 +02:00
parent 8b8bc15f43
commit 4097536381
3 changed files with 8 additions and 16 deletions

View File

@@ -54,7 +54,6 @@ The following tables lists the configurable parameters of the Consul chart and t
| `image.tag` | Consul image tag | `{VERSION}` |
| `image.pullPolicy` | Image pull policy | `Always` |
| `image.pullSecrets` | Specify image pull secrets | `nil` |
| `serviceType` | Kubernetes Service type | `ClusterIP` |
| `replicas` | Number of replicas | `3` |
| `httpPort` | Consul http listening port | `8500` |
| `rpcPort` | Consul rpc listening port | `8400` |

View File

@@ -10,7 +10,6 @@ metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
type: "{{ .Values.serviceType }}"
ports:
- name: http
port: {{ .Values.httpPort }}
@@ -29,10 +28,7 @@ spec:
- name: consuldns-udp
protocol: "UDP"
port: {{.Values.consulDnsPort}}
{{- if contains "ClusterIP" .Values.serviceType }}
clusterIP: None
{{- end }}
selector:
app: "{{ template "consul.name" . }}"
release: {{ .Release.Name | quote }}

View File

@@ -17,9 +17,6 @@ image:
# pullSecrets:
# - myRegistrKeySecretName
## Kubernetes service type
serviceType: ClusterIP
## Consul replicas
replicas: 3