Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 878 Bytes

File metadata and controls

28 lines (20 loc) · 878 Bytes

Creating a SSH-based authentication secret with a .gitconfig file

You can combine the different methods for creating source clone secrets for your specific needs, such as a SSH-based authentication secret with a .gitconfig file.

Prerequisites
  • SSH authentication

  • .gitconfig file

Procedure
  • Create a SSH-based authentication secret with a .gitconfig file

$ oc create secret generic <secret_name> \
    --from-file=ssh-privatekey=<path/to/ssh/private/key> \
    --from-file=<path/to/.gitconfig> \
    --type=kubernetes.io/ssh-auth