Before creating the secret for kong gateway, make sure you have the certificates needed to onboard an IEM. You can either use your own TLS Certificates, which are used to terminate the TLS traffic on the Gateway, or you can create these by using openssl commands.
Create a secret for kong gateway containing the certificates for the gateway
NOTICE
The secret has to be created with the same namespace which was created on previous steps.
kubectl -n $namespace create secret tls kongcert --key "out/myCert.key" --cert "out/myCert.crt"
kubectl -n default create secret tls defaultcert --key "out/myCert.key" --cert "out/myCert.crt"