Hi, you should be able to get to your influxdb with something like my-svc.my-namespace.svc.cluster.local where my-svc is the name of the service and my-namespace the name of the namespace.
This documentation might be useful: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/ Have a nice day! David El dimarts, 7 agost de 2018 3:08:48 UTC+2, Stephen Kong va escriure: > > Thanks. It works. But how do I found out the valid name for my influxDB?? > > I just discovered --sink=influxdb:http//*influxdb*:8086 is not valid... > > > On Monday, August 6, 2018 at 12:48:32 PM UTC-4, Daniel Smith wrote: >> >> If you use the standard kube-dns add-on, you can refer to apiserver as >> 'kubernetes.default.svc.cluster.local.' The port is 443. >> >> You could also use the ClusterIP of the service directly, as it is >> predictably going to be the first IP in the Service IP range, unless you've >> done some manual surgery to your backend storage :) >> >> But I would use the name. >> >> On Sun, Aug 5, 2018 at 5:27 PM Stephen Kong <zolle...@gmail.com> wrote: >> >>> In my heapster.yaml, it references the IP of the master cluster host ( >>> https://142.141.33.10:6443). Is there any *built-in name* I could use >>> for referencing the master host IP? I don't want to hard-coded any static >>> IP's... >>> >>> spec: >>> serviceAccountName: heapster >>> containers: >>> - name: heapster >>> image: k8s.gcr.io/heapster-amd64:v1.5.3 >>> imagePullPolicy: IfNotPresent >>> command: >>> - /heapster >>> - --source=kubernetes:https://142.141.33.10:6443 >>> - --sink=influxdb:http://influxdb:8086 >>> >>> >>> -- >>> 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. >>> >> -- 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.