github.com/replicatedhq/ship@v0.55.0/integration/init/cockroach/expected/base/Service-cockroachdb.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 # This service only exists to create DNS entries for each pod in the stateful 5 # set such that they can resolve each other's IP addresses. It does not 6 # create a load-balanced ClusterIP and should not be used directly by clients 7 # in most circumstances. 8 name: cockroachdb 9 labels: 10 app: cockroachdb 11 annotations: 12 # This is needed to make the peer-finder work properly and to help avoid 13 # edge cases where instance 0 comes up after losing its data and needs to 14 # decide whether it should create a new cluster or try to join an existing 15 # one. If it creates a new cluster when it should have joined an existing 16 # one, we'd end up with two separate clusters listening at the same service 17 # endpoint, which would be very bad. 18 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" 19 # Enable automatic monitoring of all instances when Prometheus is running in the cluster. 20 prometheus.io/scrape: "true" 21 prometheus.io/path: "_status/vars" 22 prometheus.io/port: "8080" 23 spec: 24 ports: 25 - port: 26257 26 targetPort: 26257 27 name: grpc 28 - port: 8080 29 targetPort: 8080 30 name: http 31 clusterIP: None 32 selector: 33 app: cockroachdb