ngoan98tv / kube-mongodb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB Kubernetes Simple Deployment

Development purpose only, using StatefulSet and local volume strategy.

Usage

  1. Make sure PersistentVolume.spec.local.path exists in your kubelet

  2. Update your hostname at

  • persistent-volume.yaml: spec.nodeAffinity.required.nodeSelectorTerms.matchExpressions.values

  • statefulsets.yaml: spec.template.spec.nodeSelector

  1. Then run ./combine.sh to re-generate all-in-one.yml

  2. Start apply the deployment

kubectl apply -f path/to/all-in-one.yml

About


Languages

Language:Shell 100.0%