I have created "helloworld" application in python and dockerised it and pushed my image in docker hub repository. Then deployed it in kubernetes dashboard.
This is my yaml file
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "helloworld2",
"namespace": "default",
"selfLink": "/api/v1/namespaces/default/services/helloworld2",
"uid": "d522c798-3639-11e9-9694-0800278c22c8",
"resourceVersion": "16642",
"creationTimestamp": "2019-02-22T00:36:02Z",
"labels": {
"k8s-app": "helloworld2"
}
},
"spec": {
"ports": [
{
"name": "tcp-30001-8080-ljs7r",
"protocol": "TCP",
"port": 30001,
"targetPort": 8080,
"nodePort": 30935
}
],
"selector": {
"k8s-app": "helloworld2"
},
"clusterIP": "10.107.196.133",
"type": "NodePort",
"sessionAffinity": "None",
"externalTrafficPolicy": "Cluster"
},
"status": {
"loadBalancer": {}
}
}
When i try to access my service i am getting this
Don't know what I am missing. Please help