Development purpose only, using StatefulSet and local volume strategy.
-
Make sure
PersistentVolume.spec.local.path
exists in yourkubelet
-
Update your hostname at
-
persistent-volume.yaml
:spec.nodeAffinity.required.nodeSelectorTerms.matchExpressions.values
-
statefulsets.yaml
:spec.template.spec.nodeSelector
-
Then run
./combine.sh
to re-generateall-in-one.yml
-
Start apply the deployment
kubectl apply -f path/to/all-in-one.yml