apiVersion: v1
kind: Service
metadata:
  name: elasticsearch
  namespace: bitbucket
  labels:
    app: elasticsearch
spec:
  type: ClusterIP
  selector:
    app: elasticsearch
  ports:
    - name: http
      protocol: TCP
      port: 9200
      targetPort: 9200
