Updated result of command
Actually according to the command in example: kubectl create secret generic ssh-key-secret --from-file=ssh-privatekey=/path/to/.ssh/id_rsa --from-file=ssh-publickey=/path/to/.ssh/id_rsa.pub The keys will be available with names ssh-publickey and ssh-privatekey.
This commit is contained in:
committed by
Andrew Chen
parent
960bb03b30
commit
72c93f9b52
@@ -534,8 +534,8 @@ consumes it in a volume:
|
|||||||
When the container's command runs, the pieces of the key will be available in:
|
When the container's command runs, the pieces of the key will be available in:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
/etc/secret-volume/id-rsa.pub
|
/etc/secret-volume/ssh-publickey
|
||||||
/etc/secret-volume/id-rsa
|
/etc/secret-volume/ssh-privatekey
|
||||||
```
|
```
|
||||||
|
|
||||||
The container is then free to use the secret data to establish an ssh connection.
|
The container is then free to use the secret data to establish an ssh connection.
|
||||||
|
|||||||
Reference in New Issue
Block a user