...
Step 2: Bring up any controllers (in order)
1.) To bring up a MongoDB controller and pod, run the following command:
kubectl create -f controllers/phase-1
2.) If you wish to use search, run this command next:
kubectl create -f controllers/phase-2-optional/elasticsearch-controller.yaml
3.) If you want to use extractors, run this command as well, followed by commands to start the desired extractors:
kubectl create -f controllers/phase-2-optional/rabbitmq-controller.yaml
kubectl create -f controllers/phase-2-optional/extractors/EXTRACTOR1-controller.yaml
kubectl create -f controllers/phase-2-optional/extractors/EXTRACTOR2-controller.yaml
. . .
kubectl create -f controllers/phase-2-optional/extractors/EXTRACTORN-controller.yaml
4.) Run this command last to bring up Clowder itself:
kubectl create -f controllers/phase-3
Tip and Tricks
Scaling Extractors
...
Using the "Pseudo Pod Restart" technique requires a Replication Controller enforcing a particular pod configuration. Simply take the RC name as CONTROLLER_NAME (clowder-clowder) and the current number of replicas as N and use the command below:
kubectl scale --current-replicas=N --replicas=N rc clowder-clowder
NOTE: In order to avoid needlessly changing the current configuration, we recommend fixing --replicas == --current-replicas, but this need not be true if you intend to scale up the controller anyways.
...