Ceph: Update charts to use endpoints section for all port lookups

This PS updates the ceph charts to use endpoints for all port
lookups, and also prunes some unused defaults.

Change-Id: I14c8eff3d4d6290dd98e90029abc21a55713d4e5
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2018-07-09 16:57:36 -05:00
parent b4abb63298
commit 1908352847
4 changed files with 4 additions and 9 deletions

View File

@ -166,9 +166,6 @@ network:
port: 30004
public: 192.168.0.0/16
cluster: 192.168.0.0/16
port:
mon: 6789
mgr: 7000
conf:
features:

View File

@ -31,9 +31,9 @@ metadata:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
ports:
- port: {{ .Values.network.port.mon }}
- port: {{ tuple "ceph_mon" "discovery" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
protocol: TCP
targetPort: {{ .Values.network.port.mon }}
targetPort: {{ tuple "ceph_mon" "discovery" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
selector:
{{ tuple $envAll "ceph" "mon" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
clusterIP: None

View File

@ -23,9 +23,9 @@ metadata:
name: {{ tuple "ceph_mon" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
spec:
ports:
- port: {{ .Values.network.port.mon }}
- port: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
protocol: TCP
targetPort: {{ .Values.network.port.mon }}
targetPort: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
selector:
{{ tuple $envAll "ceph" "mon" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
clusterIP: None

View File

@ -113,8 +113,6 @@ secrets:
network:
public: 192.168.0.0/16
cluster: 192.168.0.0/16
port:
mon: 6789
conf:
templates: