Question: you mean a headless service? or a regular service?

Asked By
Asked At
2018-03-15 06:16:02

Found 15 possible answers.

User Answered At Possible Answer
karthik273 2018-03-15 06:16:08 a headless service… I am trying to expose yb-master service port 7000 (which is the dashboard port) to the external world - I created the db on gke. I want to see the dashboard on a browser I created a stateful set ( )
hubt 2018-03-15 06:18:09 you have to expose it as a NodePort or a LoadBalancer
jiajie313 2018-03-15 06:18:16 hello world
hubt 2018-03-15 06:18:21 a headless service is only visible inside the cluster
karthik273 2018-03-15 06:19:32 Ok so I should create another service in addition to the headless service which is of one of those types? The above did, but I could not browse to that url Also tried the same this as a loadbalancer… but how can I get it to assign a public ip? servicePort: 7000
    serviceName: yb-masters
  name: yb-masters-ui
kind: Ingress
I tried this: 
apiVersion: extensions/v1beta1
hubt 2018-03-15 06:22:26 yes create another service. the load balancer is given a public ip by gke.
karthik273 2018-03-15 06:23:00 Ok so “expose” the above service using a loadbalancer? Let me try error: cannot expose a {extensions Ingress}
Hitting this: 
centos@gke-karthik:~$ kubectl expose ingress yb-masters-ui --port=7000 --target-port=7000
hubt 2018-03-15 06:25:02 you can't expose an ingress. you have to expose a service
karthik273 2018-03-15 06:25:47 Ok… so in the original yaml should I replace ingress with service ? or LoadBalancer ?
hubt 2018-03-15 06:26:34 a service is quite different from an ingress. you need a service. but you may or may not also need an ingress.
anuragnegi 2018-03-15 06:27:11 hi I want to understand difference between port 443 and port 8080 in kubernetes, my understanding is that both are serving kubernetes API and hypothetically if I want to access the cluster by doing port forwarding from my local, I will be able to get API server on both 443 and 8080?, is my understanding correct?
karthik273 2018-03-15 06:27:20 hmm… my pods are:
$ kubectl get pods
These are statefulset pods
I want to browser to any of `yb-master-*` pods on port 7000 from external browser (on my laptop). What resource type should I create?
yb-tserver-2                1/1       Running   0          52m
yb-tserver-1 1/1 Running 0 52m yb-tserver-0 1/1 Running 0 52m yb-master-2 1/1 Running 0 52m yb-master-1 1/1 Running 0 52m yb-master-0 1/1 Running 0 52m NAME READY STATUS RESTARTS AGE
hubt 2018-03-15 06:28:42 you want a Service with type LoadBalancer. you don't need an ingress
karthik273 2018-03-15 06:36:44 Wonderful! Thanks a ton
brando 2018-03-15 06:52:12 Help needed with running “kubefed init” (version:1.8.3) on a 1.8.3 kubernetes cluster. Error received: What am I missing? Production-Grade Container Orchestration Set up Cluster Federation with Kubefed Kubernetes RBAC is not mentioned in F0313 22:00:26.204666 16721 helpers.go:120] error: Couldn’t get clientset to create RBAC roles in the host cluster: Unauthorized I0313 22:00:26.204586 16721 cached_discovery.go:126] skipped caching discovery info due to Unauthorized

Related Questions