-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 280: Read InfluxDB credentials from a secret (#563)
* Adding support for configuring influxdb secret Signed-off-by: anishakj <[email protected]> * passing influxdb secret mount path as an env variable Signed-off-by: anishakj <[email protected]> * incorporating review comments Signed-off-by: anishakj <[email protected]> * Fixing the unit tests Signed-off-by: anishakj <[email protected]> * updating crd for end to end tests Signed-off-by: anishakj <[email protected]>
- Loading branch information
Showing
12 changed files
with
207 additions
and
6 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,27 @@ | ||
# Enable InfluxDB Authentication | ||
|
||
Operator supports passing influxdb credentials as secret. It is the recommended approach rather than passing username/password as part of Pravega options. | ||
|
||
Steps to configure influxdb authentication are as follows: | ||
|
||
1. Create a secret for basic authentication. Below is the sample yaml file | ||
|
||
``` | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: secret-basic-auth | ||
type: kubernetes.io/basic-auth | ||
stringData: | ||
username: admin | ||
password: t0p-Secret | ||
``` | ||
2. Modify the Pravega manifest to include the secret name for influxdb | ||
|
||
``` | ||
influxDBSecret: | ||
name: "secret-basic-auth" | ||
path: "/etc/secret" | ||
``` | ||
|
||
3. Once Pravega is deployed, secret will be mounted in `/etc/secret` for controller and segment store pods. If the path is not mentioned, `/etc/influxdb-secret-volume` will be used as default path. |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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