listenLearning commented on issue #6120:
URL: 
https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914913306


   > @listenLearning You should use 
[ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) or 
[Secret](https://kubernetes.io/docs/concepts/configuration/secret/) 
(recommended) to solve the problem. Specifically,
   > 
   > 1. Create a public and private key pair
   > 2. Create a secret containing the pair in k8s (refer to 
https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys)
   > 3. Mount the secret onto `/home/someTenant/.ssh` by volume (refer to 
https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod)
   
   
不好意思,在执行的过程中遇到过一个问题,就是我现在是3个node,其中worker分布在node-01和node-02这两台机器上,那么如果我要通过secret来进行免密的,就有一个问题了,就是根据提示,在创建secret的时候需要指定私钥和公钥,公钥的话放在一起就好了,但是私钥呢?两个节点的私钥也放在一起吗?
   
![ebdfbd1546ba62eec8bfd5eecf7f90f](https://user-images.githubusercontent.com/25893114/132448799-9ed1fb33-a729-4ecd-bfa7-a895158cb011.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to