<p>I'm trying to make an ssl based connection to memsql from an openshift pod/container. I have to insert an self-signed ca-certificate inside the pod such that the connection is established between memsql and the pod. I have following ideas but not sure how to implement them:
1. Mount a path in volumeMounts: like /etc/ssl/certs and insert the certificate in that path and give a secret for that file name, but how do I copy that file to the specified path.
2. Copy the contents of the certificate in the deployment config under secrets, but will it be validated and how to achieve that?</p>

Abc
<p>First create TLS secret:</p>

<pre><code>oc create secret tls mycert --cert /tmp/cert.pem --key /tmp/key.pem
</code></pre>

<p>Then mount this secret into your container into /certs directory</p>

<pre><code>oc set volume dc/myapp --add -t secret -m /certs --name cert --secret-name mycert
</code></pre>

<p>You cert will be available inside pod at <strong>/certs/tls.crt</strong> and key will be at <strong>/certs/tls.key</strong></p>
