Hi Jay,

Here is the desired output.

ubuntu@Host3:~$ kubectl get services -n kube-system -o wide
NAME                   CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE
    SELECTOR
heapster               10.43.214.249   <none>        80/TCP          21m
    k8s-app=heapster
kube-dns               10.43.0.10      <none>        53/UDP,53/TCP   21m
    k8s-app=kube-dns
kubernetes-dashboard   10.43.243.36    <none>        9090/TCP        20m
    k8s-app=kubernetes-dashboard
monitoring-grafana     10.43.191.246   <nodes>       80:32498/TCP    21m
    k8s-app=grafana
monitoring-influxdb    10.43.39.172    <none>        8086/TCP        21m
    k8s-app=influxdb
tiller-deploy          10.43.79.214    <none>        44134/TCP       21m
    app=helm,name=tiller

however curl command doesn't give any output.

On Sat, Sep 16, 2017 at 3:48 PM, Jay Vyas <jayunit100.apa...@gmail.com>
wrote:

> Paste the output of the:
>
> get services -o wide and
>
> curl hostip:NodePort
>
> commands.
>
> On Sep 15, 2017, at 10:52 PM, Parth Gandhi <parth6...@gmail.com> wrote:
>
> Hi Jay,
> I did try exposing the NodePort and accessing it using the
> http://hostip:NodePort <http://hostip:nodeport>. But still not able to
> access it.
> On 16-Sep-2017 12:57 AM, "Jay Vyas" <jayunit100.apa...@gmail.com> wrote:
>
>> Hi parth.
>>
>> Can't help with rancher but in general, in this forum.
>>
>> But this is a generic confusion some folks have.
>>
>> End users don't access things through the apiserver proxy endpoint,
>> instead You need to expose the services using kubectl expose on the service
>> and wait for the external ip to come up (kubectl get services -o wide).
>>
>> In GCE or Kops / Kubeadm you'll get this glue for free.
>> In other clouds the loadbalancer will be done in a different way.
>> Worst case scenario use type NodePort and access it anywhere on your
>> cluster.
>>
>> On Sep 15, 2017, at 5:56 AM, Parth Gandhi <parth6...@gmail.com> wrote:
>>
>> Hi Brandon,
>>
>> I did. However i was asked to check with the kubernetes team on this. :(
>>
>> On Saturday, 9 September 2017 04:22:21 UTC+5:30, Brandon Philips wrote:
>>>
>>> Hello Parth-
>>>
>>> This isn't a general Kuberentes question so you might get help on the
>>> Rancher forums: https://forums.rancher.com/
>>>
>>> Brandon
>>>
>>> On Fri, Sep 8, 2017 at 6:21 AM Parth Gandhi <part...@gmail.com> wrote:
>>>
>>>> I have just installed 3 node kubernetes cluster using rancher. I am
>>>> trying to access the grafana dashboard with the url that i get from cluster
>>>> info output. However i am getting unathorized error.
>>>>
>>>>
>>>> monitoring-grafana is running at https://mypublicIP:8080/r/p
>>>> rojects/1a7/kubernetes:6443/api/v1/namespaces/kube-system/se
>>>> rvices/monitoring-grafana/proxy
>>>> <https://mypublicip:8080/r/projects/1a7/kubernetes:6443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy>
>>>>
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Kubernetes user discussion and Q&A" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to kubernetes-use...@googlegroups.com.
>>>> To post to this group, send email to kubernet...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/kubernetes-users.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> CTO, CoreOS, Inc
>>> Tectonic is enterprise Kubernetes
>>> https://coreos.com/tectonic
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q&A" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to kubernetes-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to kubernetes-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/kubernetes-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Kubernetes user discussion and Q&A" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/kubernetes-users/Ier4nOOy5n8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> kubernetes-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to kubernetes-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/kubernetes-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/kubernetes-users/Ier4nOOy5n8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Parth Gandhi

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to