diff --git a/CN/modules/ROOT/pages/4.6.2.adoc b/CN/modules/ROOT/pages/4.6.2.adoc index c5ef8be2..eb873e6c 100644 --- a/CN/modules/ROOT/pages/4.6.2.adoc +++ b/CN/modules/ROOT/pages/4.6.2.adoc @@ -981,7 +981,7 @@ kubectl -n edit configmap hippo-init-sql 请务必将所有更改传回您的本地文件。另一个选项是在本地文件中进行更改,并使用 `kubectl --dry-run` 创建模板,并将输出通过管道传输到 `kubectl apply`: ---- -kubectl create configmap hippo-init-sql --from-file=init.sql=/path/to/init.sql --dry-run=client -o yaml | kubectl apply -f - +kubectl create configmap hippo-init-sql --from-file=init.sql=/path/to/init.sql --dry-run=client -o yaml | kubectl -n ivory-operator apply -f - ---- [TIP] diff --git a/EN/modules/ROOT/pages/4.6.2.adoc b/EN/modules/ROOT/pages/4.6.2.adoc index ba207abf..4d7952c5 100644 --- a/EN/modules/ROOT/pages/4.6.2.adoc +++ b/EN/modules/ROOT/pages/4.6.2.adoc @@ -1566,7 +1566,7 @@ Be sure to transfer any changes back over to your local file. Another option is [source,shell] ---- -kubectl create configmap hippo-init-sql --from-file=init.sql=/path/to/init.sql --dry-run=client -o yaml | kubectl apply -f - +kubectl create configmap hippo-init-sql --from-file=init.sql=/path/to/init.sql --dry-run=client -o yaml | kubectl -n ivory-operator apply -f - ---- TIP: If you edit your ConfigMap and your changes aren't showing up, you may be waiting for IVYO to reconcile your cluster. After some time, IVYO will automatically reconcile the cluster or you can trigger reconciliation by applying any change to your cluster (e.g. with `kubectl apply -k examples/kustomize/ivory`).