MongoDB in cK8s
Confidential Kubernetes
Use the following kubernetes yaml file to deploy a MongoDB SGX instance inside kubernetes:
Save the file as mongodb.yaml
, then we can deploy it using kubectl apply -f mongodb.yaml
If you want to manage your database locally, you can first install mongosh locally by following the instructions here.
Then run kubectl port-forward svc/enclaive-mongodb-sgx 27017:27017
to forward the mongoDB port locally to the host machine.
Finally run mongosh
to manage your database.
Follow the instructions in their README. There are 3 things to note:
When install or upgrade the Community Kubernetes Operator, remember to install using kubectl instead Helm so that you have the chance to configure using our container solution.
You can configure the MongoDB Docker image or container registry with the following value to use our container solution:
When you start to deploy a Replica Set, change the version number in
config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml
into
6.0.0
(our current mongoDB image version number), run the following command so that it can use the right image:
Last updated