Skip to content

Instantly share code, notes, and snippets.

@tirumaraiselvan
Last active February 9, 2018 08:28
Show Gist options
  • Save tirumaraiselvan/05f840063aaefaf2199ab3e0bc1b7338 to your computer and use it in GitHub Desktop.
Save tirumaraiselvan/05f840063aaefaf2199ab3e0bc1b7338 to your computer and use it in GitHub Desktop.
Namenode service
- apiVersion: v1
kind: Service
metadata:
app: namenode
hasuraService: custom
name: namenode
namespace: default
spec:
ports:
- port: 8020 #map service port 8020 to pod port 8020
targetPort: 8020
protocol: TCP
name: nn-rpc
- port: 80 #map service port 80 to pod port 50070
targetPort: 50070
protocol: TCP
name: nn-web
selector:
app: namenode
clusterIP: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment