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 > <javascript:>> 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 <javascript:> >> - 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 <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.