Skip to content

Instantly share code, notes, and snippets.

@sarjarapu
Created July 11, 2018 20:37
Show Gist options
  • Save sarjarapu/12309ac4e346f72d826ff7f8a85cecf9 to your computer and use it in GitHub Desktop.
Save sarjarapu/12309ac4e346f72d826ff7f8a85cecf9 to your computer and use it in GitHub Desktop.
Shell commands to generate and apply the YAML file to create the MongoDB replica set.
# create the YAML file using the template
sh templates/generate-yaml-simple-replicaset.sh
# create the replica set based on the generated YAML
source templates/environment.sh
kubectl apply -f samples/${K8_NAMESPACE}-replicaset.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment