Skip to content

Instantly share code, notes, and snippets.

@luszczynski
Created November 1, 2017 11:28
Show Gist options
  • Save luszczynski/39c7c06a57febe3124091182698c5bcc to your computer and use it in GitHub Desktop.
Save luszczynski/39c7c06a57febe3124091182698c5bcc to your computer and use it in GitHub Desktop.
Creating secrets on Openshift CLI
oc new-project test
oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git -n test
oc secrets new mysecret trustore=foo.txt -n test
oc secrets link default mysecret -n test
oc volumes dc/ruby-ex -n test
oc volumes dc/ruby-ex --add --mount-path=/tmp/test --secret-name=mysecret --type=secret -n test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment