-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
30 lines (22 loc) · 870 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# Install all the dependencies for the MacOSX
brew install brew-cask
brew cask install virtualbox minikube
brew install kubernetes-helm bash-completion
# Start the minikube with 8 GB RAM and 2 CPUs
minikube start --memory 8192 --cpus 2
# Install the enterprise operator
# Download the mongodb-enterprise-kubernetes git source
wget -O master.zip https://goo.gl/khJzMu
unzip master.zip
# Initialize the helm and helm chart
helm init --upgrade
sleep 5
helm install mongodb-enterprise-kubernetes-master/helm_chart/ --name mongodb-enterprise
# If helm is not available
# Install the enterprise operator via yaml
# kubectl apply -f mongodb-enterprise-kubernetes-master/mongodb-enterprise.yaml
# Clean up the files and folders
rm -rf master.zip mongodb-enterprise-kubernetes-master/
# display all the resources in mongodb namespace
kubectl -n mongodb get all