Merge pull request #3 from caishunfeng/fix/readme
Fix README and add log
diff --git a/README.md b/README.md
index f673d3c..36e0cf6 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@
If you have pv and pvc, you can config it in `config/sameples`.
-Or you can create it with `config/ds/ds-pv.yaml` and `config/configmap/ds-pvc.yaml`.
+Or you can create it with `config/ds/ds-pv.yaml` and `config/ds/ds-pvc.yaml`.
Notice to replace the `hostPath.path` in `ds-pv.yaml`.
And you can mount the lib in dolphinscheduler `/opt/soft` in config/samples/ds_v1alpha1_dsworker.yaml with paramter named lib_pvc_name
@@ -107,5 +107,5 @@
```shell
cd config/samples
kubectl apply -f ds_v1alpha1_dsalert.yaml
-kubectl apply -f ds_v1alpha1_api.yaml -f ds_v1alpha1_dsmaster.yaml -f ds_v1alpha1_dsworker.yaml
+kubectl apply -f ds_v1alpha1_dsapi.yaml -f ds_v1alpha1_dsmaster.yaml -f ds_v1alpha1_dsworker.yaml
```
diff --git a/controllers/dsworker_controller.go b/controllers/dsworker_controller.go
index 7adf2dc..d0d1a50 100644
--- a/controllers/dsworker_controller.go
+++ b/controllers/dsworker_controller.go
@@ -207,6 +207,8 @@
return true, err
}
+ workerLogger.Info("before scale", "podMemberSet", len(ms), "replicas", cluster.Spec.Replicas)
+
// Scale up
if len(ms) < cluster.Spec.Replicas {
err = r.createMember(ctx, cluster)