Re: Leader election in Kubernetes control plane
In 3.6 you can look at which master is using the most memory (the passive controllers won’t use much at all). You can also do a GET /controllers against :8444 which returns 200 if this is the active controller, or 404 (iirc) otherwise. That’s been removed though in newer versions in favor of the election annotations. > On Feb 21, 2018, at 12:49 AM, Srinivas Naga Kotaru (skotaru) > wrote: > > Thanks, that make sense. We are using 3.6 currently > > -- > > Srinivas Kotaru > On 2/20/18, 9:46 PM, "Takayoshi Kimura" wrote: > >In 3.7+ "oc get cm openshift-master-controllers -n kube-system -o yaml" > you can see the annotation described in that article. > >Regards, >Takayoshi > >On Wed, 21 Feb 2018 14:37:32 +0900, >"Srinivas Naga Kotaru (skotaru)" wrote: >> >> It has just client-ca-file. We have 3 masters in each cluster. not sure how >> to identify which control manager is active? I usually find which oneʼs is >> writing logs by using journalctl >> atomic-openshift-master-controllers.service. passive oneʼs donʼt write or >> generate >> any logs. >> >> -- >> >> Srinivas Kotaru >> >> From: Clayton Coleman >> Date: Tuesday, February 20, 2018 at 9:29 PM >> To: Srinivas Naga Kotaru >> Cc: dev >> Subject: Re: Leader election in Kubernetes control plane >> >> We use config maps - check in kube-system for that. >> >> On Feb 15, 2018, at 2:48 PM, Srinivas Naga Kotaru (skotaru) >> wrote: >> >>while I was reading below article, I tried to do the same to find out >> which one is active control plane in Openshift. I could see zero end points >> in kube-system name space. Am I missing something or not implemented in >> Openshift? >> >> >> https://blog.heptio.com/leader-election-in-kubernetes-control-plane-heptioprotip-1ed9fb0f3e6d >> >>$oc project >> >>Using project "kube-system" on server >> >>$ oc get ep >> >>No resources found. >> >>$oc get all >> >>No resources found. >> >>-- >> >>Srinivas Kotaru >> >>___ >>dev mailing list >>dev@lists.openshift.redhat.com >>http://lists.openshift.redhat.com/openshiftmm/listinfo/dev >> >> ___ >> dev mailing list >> dev@lists.openshift.redhat.com >> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev > > ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
Re: Leader election in Kubernetes control plane
Thanks, that make sense. We are using 3.6 currently -- Srinivas Kotaru On 2/20/18, 9:46 PM, "Takayoshi Kimura" wrote: In 3.7+ "oc get cm openshift-master-controllers -n kube-system -o yaml" you can see the annotation described in that article. Regards, Takayoshi On Wed, 21 Feb 2018 14:37:32 +0900, "Srinivas Naga Kotaru (skotaru)" wrote: > > It has just client-ca-file. We have 3 masters in each cluster. not sure how to identify which control manager is active? I usually find which oneʼs is writing logs by using journalctl atomic-openshift-master-controllers.service. passive oneʼs donʼt write or generate > any logs. > > -- > > Srinivas Kotaru > > From: Clayton Coleman > Date: Tuesday, February 20, 2018 at 9:29 PM > To: Srinivas Naga Kotaru > Cc: dev > Subject: Re: Leader election in Kubernetes control plane > > We use config maps - check in kube-system for that. > > On Feb 15, 2018, at 2:48 PM, Srinivas Naga Kotaru (skotaru) wrote: > > while I was reading below article, I tried to do the same to find out which one is active control plane in Openshift. I could see zero end points in kube-system name space. Am I missing something or not implemented in Openshift? > > https://blog.heptio.com/leader-election-in-kubernetes-control-plane-heptioprotip-1ed9fb0f3e6d > > $oc project > > Using project "kube-system" on server > > $ oc get ep > > No resources found. > > $oc get all > > No resources found. > > -- > > Srinivas Kotaru > > ___ > dev mailing list > dev@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev > > ___ > dev mailing list > dev@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
Re: Leader election in Kubernetes control plane
In 3.7+ "oc get cm openshift-master-controllers -n kube-system -o yaml" you can see the annotation described in that article. Regards, Takayoshi On Wed, 21 Feb 2018 14:37:32 +0900, "Srinivas Naga Kotaru (skotaru)" wrote: > > It has just client-ca-file. We have 3 masters in each cluster. not sure how > to identify which control manager is active? I usually find which one’s is > writing logs by using journalctl atomic-openshift-master-controllers.service. > passive one’s don’t write or generate > any logs. > > -- > > Srinivas Kotaru > > From: Clayton Coleman > Date: Tuesday, February 20, 2018 at 9:29 PM > To: Srinivas Naga Kotaru > Cc: dev > Subject: Re: Leader election in Kubernetes control plane > > We use config maps - check in kube-system for that. > > On Feb 15, 2018, at 2:48 PM, Srinivas Naga Kotaru (skotaru) > wrote: > > while I was reading below article, I tried to do the same to find out > which one is active control plane in Openshift. I could see zero end points > in kube-system name space. Am I missing something or not implemented in > Openshift? > > > https://blog.heptio.com/leader-election-in-kubernetes-control-plane-heptioprotip-1ed9fb0f3e6d > > $oc project > > Using project "kube-system" on server > > $ oc get ep > > No resources found. > > $oc get all > > No resources found. > > -- > > Srinivas Kotaru > > ___ > dev mailing list > dev@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev > > ___ > dev mailing list > dev@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
Re: Leader election in Kubernetes control plane
It has just client-ca-file. We have 3 masters in each cluster. not sure how to identify which control manager is active? I usually find which one’s is writing logs by using journalctl atomic-openshift-master-controllers.service. passive one’s don’t write or generate any logs. -- Srinivas Kotaru From: Clayton Coleman Date: Tuesday, February 20, 2018 at 9:29 PM To: Srinivas Naga Kotaru Cc: dev Subject: Re: Leader election in Kubernetes control plane We use config maps - check in kube-system for that. On Feb 15, 2018, at 2:48 PM, Srinivas Naga Kotaru (skotaru) mailto:skot...@cisco.com>> wrote: while I was reading below article, I tried to do the same to find out which one is active control plane in Openshift. I could see zero end points in kube-system name space. Am I missing something or not implemented in Openshift? https://blog.heptio.com/leader-election-in-kubernetes-control-plane-heptioprotip-1ed9fb0f3e6d $oc project Using project "kube-system" on server $ oc get ep No resources found. $oc get all No resources found. -- Srinivas Kotaru ___ dev mailing list dev@lists.openshift.redhat.com<mailto:dev@lists.openshift.redhat.com> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
Re: Leader election in Kubernetes control plane
We use config maps - check in kube-system for that. On Feb 15, 2018, at 2:48 PM, Srinivas Naga Kotaru (skotaru) < skot...@cisco.com> wrote: while I was reading below article, I tried to do the same to find out which one is active control plane in Openshift. I could see zero end points in kube-system name space. Am I missing something or not implemented in Openshift? https://blog.heptio.com/leader-election-in-kubernetes-control-plane-heptioprotip-1ed9fb0f3e6d $oc project Using project "kube-system" on server $ oc get ep No resources found. $oc get all No resources found. -- *Srinivas Kotaru* ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
Leader election in Kubernetes control plane
while I was reading below article, I tried to do the same to find out which one is active control plane in Openshift. I could see zero end points in kube-system name space. Am I missing something or not implemented in Openshift? https://blog.heptio.com/leader-election-in-kubernetes-control-plane-heptioprotip-1ed9fb0f3e6d $oc project Using project "kube-system" on server $ oc get ep No resources found. $oc get all No resources found. -- Srinivas Kotaru ___ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev