You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plan to deploy hadoop on kubernetes,when i deploy successfully,I need create service for ambari agent,so I can accees hdfs port from my external host。So I create endpoint and service like this:
kind: Endpoints
apiVersion: v1
metadata:
name: hdfs
namespace: bigdata
subsets:
This is a help-request, not a bug. StackOverflow is probablybetter for you.
a) Use a selector, rather than manual endpoint creation
b) look at pod hostname and subdomain fields
c) create a headless service (clusterIP: None) with the same name as the pod subdomain
I plan to deploy hadoop on kubernetes,when i deploy successfully,I need create service for ambari agent,so I can accees hdfs port from my external host。So I create endpoint and service like this:
kind: Endpoints
apiVersion: v1
metadata:
name: hdfs
namespace: bigdata
subsets:
ports:
protocol: TCP
kind: Service
apiVersion: v1
metadata:
name: hdfs
namespace: bigdata
spec:
type: NodePort
ports:
port: 50070
targetPort: 50070
nodePort: 31176
I need to get ip of ambari agent pod from kubernetes,can I create endpoint with pod hostname?
The text was updated successfully, but these errors were encountered: