Expose ElasticSearch as a LoadBalancer-type service

This commit is contained in:
Haiyan Meng
2019-12-11 15:01:09 -08:00
parent 6b7236a206
commit afd24c6faf

View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
spec:
selector:
custom-resource: v1alpha1.ESCluster
custom-resource-name: esbasic
custom-resource-namespace: default
es/data: "true"
using: escluster.Cluster
ports:
- protocol: "TCP"
port: 9200
type: LoadBalancer
loadBalancerIP: ""