I tried all the options. Let say if i pack the kapacitor in the Influx-grafana controller means
monitoring-influxdb-grafana-v3-3riv1 3/3 The above pod has 3 containers influx,grafana as well my kapacitor . All the three reachable with the same "localhost" and it works for me. If i run the kapacitor in other namespace other than "kube-system". It wont works. Even if i put the kapacitor hostname as "kapacitor.default" and the Influx name as "monitoring-influxdb.kube-system" .It wont produce any Alerts. Even if all the service are accessible from each other. The issue is not with the kapacitor i am using. I am seeing my subscriptions in the influx database. That means kapacitor can reach the influx , even if its in other namesapce. The problem is with influx . It won't push any record to kapacitor . Even if the hostname of kapacitor(kapacitor.default) reachable from influx. On Thursday, October 6, 2016 at 1:34:38 PM UTC+5:30, Cole Mickens wrote: > > I see, you don't want the RC to manage/own the Kapacitor container... you > were trying to put the Kapacitor container into the Pod template that the > ReplicationController uses. > > You might be able to do this after creating the cluster by editing the > ReplicationController object in your cluster (but I'm not sure if it will > be clobbered later by the addon manager). > > But, there's really no need to do that... It would be better to run it as > a separate ReplicationController (or even better Deployment). > > I think you just need to point Kapacitor at Heapster. According to the > docs on Docker Hub, I think you need to put another environment variable > (KAPACITOR_INFLUXDB_0_URLS_0) in your Kapacitor > Pod/ReplicationController/Deployment definition that tells it where to find > Heapster. > > > On Thu, Oct 6, 2016 at 12:46 AM, Vinoth Narasimhan <talk2...@gmail.com > <javascript:>> wrote: > >> Aim is to run send the Kapacitor alerts from reading the InfluxDB metrics. >> >> It works only if it is in the same network. If it packs inside the same >> RC. >> >> What i tried is I unpack the salt.tgz and add my kapacitor to the >> existing influx-grafana-controller yaml and pack it again and run the >> cluster. >> >> Now i can able send the alerts from it. >> >> If i tried from outside it wont works ,even if the kapacitor >> host(kapacitor.defult) is reachable from influxdb container . >> >> I search all in the kapacitor and influxdb forums nothing works for me. >> if the influx and kapacitor are in remote host other that "localhost" . It >> won't works. >> >> On Thursday, October 6, 2016 at 12:21:34 PM UTC+5:30, Cole Mickens wrote: >>> >>> What are you trying to achieve by this "attaching"? >>> >>> You can make Kubernetes count the Pod as part of the >>> ReplicationController by adjusting the labels on the Pods, but I believe >>> that will cause the RC to kill one of the Pods in order to reach the RC's >>> desired replica count. >>> >>> On Wed, Oct 5, 2016 at 11:47 PM, Vinoth Narasimhan <talk2...@gmail.com> >>> wrote: >>> >>>> Kubernetes Version 1.3.6 >>>> >>>> I have rc named "monitoring-influxdb-grafana-v3" in kube-system >>>> namespace. >>>> >>>> In which two containers are running influxdb,grafana. >>>> >>>> Is there a way to attach a 3rd container to it named "kapacitor" in the >>>> same rc "monitoring-influxdb-grafana-v3" in kube-system ? >>>> >>>> i have tried the below yaml file . It is not working . >>>> apiVersion: v1 >>>> kind: Pod >>>> metadata: >>>> name: monitoring-influxdb-grafana-v3 >>>> namespace: kube-system >>>> labels: >>>> k8s-app: influxGrafana >>>> version: v3 >>>> kubernetes.io/cluster-service: "true" >>>> spec: >>>> replicas: 1 >>>> selector: >>>> k8s-app: influxGrafana >>>> version: v3 >>>> template: >>>> metadata: >>>> labels: >>>> k8s-app: influxGrafana >>>> version: v3 >>>> kubernetes.io/cluster-service: "true" >>>> spec: >>>> containers: >>>> - image: dockerhub/kapacitor:v1 >>>> name: kapacitor >>>> env: >>>> - name: EMAIL_TO >>>> value: o...@xyz.com >>>> - name: MAIL_SERVER >>>> value: mailserver.default >>>> resources: >>>> # keep request = limit to keep this container in guaranteed >>>> class >>>> limits: >>>> cpu: 100m >>>> memory: 500Mi >>>> requests: >>>> cpu: 100m >>>> memory: 500Mi >>>> ports: >>>> - containerPort: 9092 >>>> >>>> -- >>>> 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-use...@googlegroups.com <javascript:>. >> To post to this group, send email to kubernet...@googlegroups.com >> <javascript:>. >> 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.