forked from hashicorp/vault-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for multiple replicas with auto-tls (hashicorp#198)
Uses a leader-elector sidecar to ensure only one injector replica generates the CA and cert+key. The other replicas pick up the cert+key from a k8s secret for use in their TLS listeners. The leader-elector sidecars coordinate using the annotations of a k8s Endpoint object, which is why those extra permissions were added to the role in the deployment yaml. Added command-line and env option to control leader-elector usage. Using Secrets informer for followers to ensure retrieving timely cert updates without overloading the k8s api. Co-authored-by: Tom Proctor <[email protected]>
- Loading branch information
Showing
14 changed files
with
478 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are created here so they can be cleaned up easily. The endpoints | ||
# especially, since if they're left around the leader won't expire for about a | ||
# minute. | ||
--- | ||
apiVersion: v1 | ||
kind: Endpoints | ||
metadata: | ||
name: vault-agent-injector-leader | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: vault-injector-certs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.