mittwald / kubernetes-secret-generator

Kubernetes controller for automatically generating and updating secrets
Apache License 2.0
330 stars 57 forks source link

Operator pod stuck in CrashLoopBackOff state #31

Closed pandeybk closed 3 years ago

pandeybk commented 3 years ago

Describe the bug Pod rebooted several times.

kubernetes-secret-generator-599bf5594b-kpsmq     0/1     CrashLoopBackOff    5444       10d

Seeing following log,

kubectl logs -n mav-plat kubernetes-secret-generator-599bf5594b-kpsmq -p
{"level":"info","ts":1609194615.0869522,"logger":"cmd","msg":"Operator Version: 0.0.1"}
{"level":"info","ts":1609194615.0871677,"logger":"cmd","msg":"Go Version: go1.15"}
{"level":"info","ts":1609194615.0871954,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1609194615.0872138,"logger":"cmd","msg":"Version of operator-sdk: v0.16.0"}
{"level":"info","ts":1609194615.087869,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1609194619.8139384,"logger":"leader","msg":"Found existing lock with my name. I was likely restarted."}
{"level":"info","ts":1609194619.8140037,"logger":"leader","msg":"Continuing as the leader."}
{"level":"info","ts":1609194624.5210364,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"0.0.0.0:8383"}
{"level":"info","ts":1609194624.5222325,"logger":"cmd","msg":"Registering Components."}

To Reproduce The issue seems intermittent. Not sure what is triggering this. Recreating the pod fixes the issue.

Environment:

kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9", GitCommit:"4fb7ed12476d57b8437ada90b4f93b17ffaeed99", GitTreeState:"clean", BuildDate:"2020-07-15T16:18:16Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9", GitCommit:"4fb7ed12476d57b8437ada90b4f93b17ffaeed99", GitTreeState:"clean", BuildDate:"2020-07-15T16:10:45Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Additional context As per my analysis, It seems like operator-sdk should be upgraded to v.0.18.0

mittwald-machine commented 3 years ago

There has not been any activity to this issue in the last 30 days. It will automatically be closed after 7 more days. Remove the stale label to prevent this.