This guide is going to explain the steps if you have your DNS Domain Certificate with GoDaddy and you want to use it for Okteto.
Get your Certificate Files
First thing to do is to get your certificate files from GoDaddy. To do that:
- Go to www.godaddy.com page and click
My Products
- Then scroll down to
SSL Certificates
βManage
- Download your files (You may need to click
Rekey & Manage
first)
Now we got our files downloaded
GoDaddy downloads 3 files:
- Certificate itself: xxxxxx.cert
- The intermediary bundle: gd_bundle-xxxx.crt
- And the private key: xxxx.key
Create file for k8s secret. The secret is going to need the concatenation of the certificate and the bundle file:
cat xx.crt gd_bundle-xxxx.cert > result.crt
Create k8s secret
Now we add the certificate and the key to a secret:
kubectl create secret tls ${SECRET_NAME} --key xxxx.key --cert result.crt --namespace okteto
Okteto Configuration
Letβs tell Okteto to use our new certificate tls secret!
- config.yaml:
subdomain: foo.example.com
wildcardCertificate:
create: false
name: ${SECRET_NAME}
ingress-nginx:
controller:
extraArgs:
default-ssl-certificate: okteto/${SECRET_NAME}
We are now ready to test our secured Dev Environment:
https://okteto.foo.example.com/