Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pod-culler upgrade - ServiceAccount required before initialized? #619

Closed
consideRatio opened this issue Apr 1, 2018 · 3 comments · Fixed by #620
Closed

pod-culler upgrade - ServiceAccount required before initialized? #619

consideRatio opened this issue Apr 1, 2018 · 3 comments · Fixed by #620

Comments

@consideRatio
Copy link
Member

consideRatio commented Apr 1, 2018

I toss this issue out before I go to bed, got any suggestions I'm happy to hear about them. I'll spend more time figuring things out later.


I just attempted to update to a more recent release of this repo, but got the following error.

Error: UPGRADE FAILED: no ServiceAccount with the name "pod-culler" found

It makes little sense to me, I can see the rbac.yaml definition within pod-culler template directory. I think my deployment is conditioned out by my cull.maxAge being 0.

# my values.yaml
rbac:
  enabled: true

cull:
  enabled: true
  users: false
  timeout: 3600
  every: 600
  maxAge: 0

proxy:
  https:
    enabled: true
    type: letsencrypt
    letsencrypt:
      contactEmail: 'myemail@host.com'
    hosts: [mydomain.se]

{{ if and .Values.cull.enabled .Values.cull.maxAge }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: pod-culler

{{ if .Values.rbac.enabled -}}
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: pod-culler

@consideRatio
Copy link
Member Author

OH! perhaps we need to move the ServiceAccount from the bottom of the rbac.yaml to the top?

@consideRatio
Copy link
Member Author

Notes

  • cull.maxAge: 0, but the conditional {{ if and .Values.cull.enabled .Values.cull.maxAge }} seem to be evaluated to true (ping @choldgraf --- something of relevance? I recall you had issues with the culler.)
  • I had to delete a serviceaccount before it could be recreated again to get rid of the "ServiceAccount not found" trouble.
  • Gaaaah whats going on with the "no .... of the name .... found" ?!?!??!!? I figure I need to cleanup helms release number history or similar...

@consideRatio
Copy link
Member Author

Resolved --- By using helm 2.8.2 with a clean slate. To learn more see #620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant