withKeyFile
Method
interface MongoDBServerResource { // ... omitted for brevity withKeyFile( keyValue: IExpressionValue, keyFilePath?: string): MongoDBServerResource;}Signature
method
withKeyFile builderSets up a keyfile for internal authentication between members of a MongoDB replica set, with the specified `keyValue` as the content of the file.
withKeyFile( keyValue: IExpressionValue, keyFilePath?: string): MongoDBServerResourceParameters
keyValue IExpressionValue The content of the keyfile. This is a shared secret: every member of the replica set has to be given the same value, and anything holding it can authenticate as a member of the cluster.keyFilePath stringoptional= /etc/rs.keyThe absolute path the keyfile is mounted at inside the container, which has to include a file name. Defaults to `/etc/rs.key`.Returns
MongoDBServerResource Applies to
This method applies to the following types: