Lon Nix
11/03/2021, 5:56 PMjob_template
job_template = '''
apiVersion: batch/v1
kind: Job
spec:
template:
spec:
containers:
- name: flow
volumeMounts:
- name: ssh-key
readOnly: true
mountPath: "/root/.ssh"
volumes:
- name: ssh-key
secret:
secretName: prefect-ssh-key
optional: false
defaultMode: 0600
'''
but what shows up for the job is actually
volumeMounts:
- mountPath: /root/.ssh
name: ssh-key
readOnly: true
volumes:
- name: ssh-key
secret:
defaultMode: 384
optional: false
secretName: prefect-ssh-key
It's not keeping the same permissions for defaultMode
and I think that's why I'm getting an error about Failed to add the RSA host key for IP address '140.82.114.4' to the list of known hosts
It is using the correct secret name though. Why would it not take the correct defaultMode?Lon Nix
11/03/2021, 5:56 PMreadOnly: true
and it didn't make a differenceKevin Kho
Lon Nix
11/03/2021, 6:09 PMflow.run_config = KubernetesRun(job_template=job_template)
Kevin Kho
Lon Nix
11/03/2021, 6:19 PMKevin Kho
Lon Nix
11/03/2021, 6:22 PMXinchi He
11/03/2021, 6:25 PMKevin Kho
Kevin Kho
Lon Nix
11/03/2021, 6:32 PMLon Nix
11/03/2021, 6:32 PMKevin Kho
Kevin Kho
Lon Nix
11/03/2021, 6:36 PMKevin Kho
git clone <ssh repo url>
in the interactive shell. I assume this doesn’t work for you?Lon Nix
11/03/2021, 6:40 PMFailed to load and execute Flow's environment: HangupException("Failed to add the RSA host key for IP address '140.82.112.4' to the list of known hosts (/root/.ssh/known_hosts).\r\<mailto:ngit@github.com|ngit@github.com>: Permission denied (publickey).\r")