# Written by Mutlu Polatcan
# 18.11.2019
apiVersion: v1
kind: Service
metadata:
  name: hadoop
  labels:
    app: hadoop
spec:
  selector:
    app: hadoop
  ports:
    - port: 9000 # Namenode RPC Port
      name: nn-rpc-port
    - port: 9866 # Datanode Port
      name: dn-port
    - port: 9867 # Datanode IPC Port
      name: dn-ipc-port
    - port: 8485 # Journalnode RPC Port
      name: jn-rpc-port
    - port: 8050 # YARN Nodemanager port
      name: nm-port
    - port: 8048 # YARN Nodemanager Collector Port
      name: nm-col-port
    - port: 8040 # YARN Nodemanager Localizer Port
      name: nm-loc-port
    - port: 8049 # YARN Nodemanager AMRM Proxy Port
      name: amrm-prox-port
    - port: 8032 # YARN Resourcemanager Port
      name: rm-port
    - port: 8030 # YARN Resourcemanager Scheduler Port
      name: rm-sched-port
    - port: 8033 # YARN Resourcemanager Admin Port
      name: rm-admin-port
    - port: 8047 # YARN Sharedcache Admin Port
      name: sca-port
    - port: 8788 # YARN Sharedcache Admin HTTP Port
      name: sca-http-port
    - port: 8046 # YARN Sharedcache Uploader Server Port
      name: scus-port
    - port: 8045 # YARN Sharedcache Client Server Port
      name: sccs-port
    - port: 10200 # YARN Timeline Service Port
      name: ts-port
    - port: 8092 # YARN Web Proxy Port
      name: yp-port
    - port: 10020 # MapReduce JobHistory Port
      name: mrjh-port
    - port: 9870 # Namenode HTTP Port
      name: nn-http-port
    - port: 9871 # Namenode HTTPS Port
      name: nn-https-port
    - port: 9868 # Secondary Namenode HTTP Port
      name: snn-http-port
    - port: 9869 # Secondary Namenode HTTPS Port
      name: snn-https-port
    - port: 8088 # YARN Resourcemanager HTTP Port
      name: rm-http-port
    - port: 8090 # YARN Resourcemanager HTTPS Port
      name: rm-https-port
    - port: 9864 # Datanode HTTP Port
      name: dn-http-port
    - port: 9865 # Datanode HTTPS Port
      name: dn-https-port
    - port: 8042 # YARN Nodemanager HTTP Port
      name: nm-http-port
    - port: 8044 # YARN Nodemanager HTTPS Port
      name: nm-https-port
    - port: 8480 # Journalnode HTTP Port
      name: jn-http-port
    - port: 8481 # Journalnode HTTPS Port
      name: jn-https-port
    - port: 8188 # YARN Timeline Service HTTP Port
      name: ts-http-port
    - port: 8190 # YARN Timeline Service HTTPS Port
      name: ts-https-port
    - port: 8089 # YARN Router HTTP Port
      name: rt-http-port
    - port: 8091 # YARN Router HTTPS Port
      name: rt-https-port
    - port: 19888 # MapReduce JobHistory HTTP Port
      name: mrjh-http-port
    - port: 19890 # MapReduce JobHistory HTTPS Port
      name: mrjh-https-port
  clusterIP: None