Skip to content

GCP activity log pollution when running chart-manager in GKE cluster #293

Closed

Description

@tsutsu

Is this a BUG REPORT or FEATURE REQUEST?: bug report

Uncomment only one, leave it on its own line:
/kind bug

What happened: every ~1s, a pair of configuration events are created in the GCP activity logs representing writes to the cert-manager-controller and ingress-shim-controller endpoints

screen shot 2018-02-05 at 3 53 59 pm

What you expected to happen: events for writes to these resources to appear only when a new leader is elected, or at most once per lease duration (~15s)

How to reproduce it (as minimally and precisely as possible):

Environment:

  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T21:12:46Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.5-gke.0", GitCommit:"2c2a807131fa8708abc92f3513fe167126c8cce5", GitTreeState:"clean", BuildDate:"2017-12-19T20:05:45Z", GoVersion:"go1.8.3b4", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration**: Google Kubernetes Engine
  • Install tools:
$ helm version
Client: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}

Activity

  1. added
    kind/bug
    on Feb 6, 2018
  2. euank commented on Feb 7, 2018

    @euank
    Contributor

    Note that nowadays the leaderelection code allows using configmaps rather than endpoints for reasons discussed here.

    Since this repo hasn't settled on being fully backwards compatible yet, now's the best time to switch over to locking on a configmap instead.

  3. munnerz commented on Feb 9, 2018

    @munnerz
    Member

    Yep, we should turn down the default leader election parameters.

    @euank agreed re configmaps. We should aim to get this in for 0.3.

  4. added a commit that references this issue on Feb 21, 2018
    721a404
  5. munnerz commented on Feb 21, 2018

    @munnerz
    Member

    We should double check this issue is resolved after #327 - we've not reduced the frequency of updates, only the type of resource we use to perform leader election.

  6. Justkant commented on Sep 14, 2018

    @Justkant

    @munnerz I think the issue is still there.
    I'm using cert-manager 0.4.1 with kubernetes 1.10.6.
    capture d ecran 2018-09-14 a 19 36 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions