-
Notifications
You must be signed in to change notification settings - Fork 173
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
Moving leader election inside vault-k8s #271
Changes from 12 commits
1060be0
7eebe89
885d96b
e133800
d12851b
6d837ce
3736c60
3303666
91474cf
4b6837b
719ee63
22ea7fe
fe858b7
cf78476
31df5c8
75258f7
d9ef2ff
30dc9cb
2f0b6ee
e5522cc
e6d0206
0be17c3
b73527f
a45b35e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,13 +48,18 @@ metadata: | |
app.kubernetes.io/instance: vault | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["endpoints", "secrets"] | ||
resources: ["secrets", "configmaps"] | ||
verbs: | ||
- "create" | ||
- "get" | ||
- "watch" | ||
- "list" | ||
- "update" | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: | ||
- "get" | ||
- "patch" | ||
Comment on lines
+61
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't read the whole change set yet, but what uses these permissions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's part of the |
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change on initial delay for readiness and liveness mean that leader election is a bit longer to establish through this method, or is it to make it less flaky in general?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it was just taking a little longer than a second while I was testing it locally to achieve leadership and generate the certs so that the liveness probe would pass.