You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/09/07 11:52:00 UTC
[GitHub] [dolphinscheduler] listenLearning opened a new issue #6120: [Question] 基于k8s安装ds,如何设置ssh免密
listenLearning opened a new issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120
Q1: 我是基于k8s安装的ds,现在有个问题,就是我的cdh是安装在其他服务器上的,那么我如何到其他的机器上去调度我的hive脚本呢?我是基于公共的shell模板脚本进行hive sql调度的,所以我实际上需要的是到其他机器上去调度我这个公共的脚本,所以我想知道该如何在k8s内部去做免密,并且如何在k8s重启后,依然生效
Q2:我创建了一个租户,但是执行ssh的时候,出现了如下问题,请问这个又该怎么解决呢?

--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] listenLearning commented on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
listenLearning commented on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-915009452
我重新用原生的方式安装了
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen commented on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914251212
@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
3. Mount the secret onto `/root/.ssh` by volume
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen edited a comment on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914251212
@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)
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] listenLearning commented on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
listenLearning commented on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914716814
> @listenLearning您应该使用[ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/)或[Secret](https://kubernetes.io/docs/concepts/configuration/secret/)(推荐)来解决问题。具体来说,
>
> 1. 创建公钥和私钥对
> 2. 在 k8s 中创建一个包含该对的 secret(参考https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys)
> 3. `/home/someTenant/.ssh`按卷挂载机密(请参阅https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod)
好的,我先去尝试一下,🙏
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen edited a comment on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914251212
@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
3. Mount the secret onto `/home/someTenant/.ssh` by volume
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] listenLearning closed issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
listenLearning closed issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] listenLearning commented on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
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的时候需要指定私钥和公钥,公钥的话放在一起就好了,但是私钥呢?两个节点的私钥也放在一起吗?

--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914237750
Q1: I installed ds based on k8s, and now I have a problem, that is, my CDH is installed on other servers, then how do I schedule my hive scripts on other machines? I do hive sql scheduling based on a public shell template script, so what I actually need is to schedule my public script on other machines, so I want to know how to do secret-free in k8s, and how to do it in k8s After restarting, it still takes effect
Q2: I created a tenant, but when I execute ssh, the following problems occurred. How can I solve this?

--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] listenLearning removed a comment on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
listenLearning removed a comment on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914716814
> @listenLearning您应该使用[ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/)或[Secret](https://kubernetes.io/docs/concepts/configuration/secret/)(推荐)来解决问题。具体来说,
>
> 1. 创建公钥和私钥对
> 2. 在 k8s 中创建一个包含该对的 secret(参考https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys)
> 3. `/home/someTenant/.ssh`按卷挂载机密(请参阅https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod)
好的,我先去尝试一下,🙏
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #6120: [Question] Install ds based on k8s, how to set ssh to avoid password
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #6120:
URL: https://github.com/apache/dolphinscheduler/issues/6120#issuecomment-914237873
Hi:
* Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
* If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/zh-cn/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org