Create Golang application
In this section, you will be deploying a new application that you will be using for both passthrough and re-encrypt routes, then you will create a secret and mount it to the volume so you can create the routes.
Create the deployment config and service using
oc createcommand.
oc create -f https://raw.githubusercontent.com/nerdingitout/oc-route/main/golang-https.yml
Create TLS secret using the same secret you extracted earlier.
oc create secret tls mycert --cert /tmp/tls.crt --key /tmp/tls.key
Mount the secret to your volume.
oc set volume dc/golang-https --add -t secret -m /go/src/app/certs --name cert --secret-name mycert
Last updated
Was this helpful?