πMinikube + HTTPS
Terrakube can be installed in minikube as a sandbox environment with HTTPS, using terrakube with HTTPS will allow to use the Terraform registry and the Terraform remote state backend to be used locally without any issue.
Please follow these instructions:
Requirements:
Install mkcert to generate the local certificates.
We will be using following domains in our test installation:
terrakube-api.minikube.net
terrakube-ui.minikube.net
terrakube-reg.minikube.netGenerate local CA certificate
mkcert -install
Created a new local CA π₯
The local CA is now installed in the system trust store! β‘οΈ
The local CA is now installed in the Firefox trust store (requires browser restart)! π¦Local CA certificate path
mkcert -CAROOT
/home/myuser/.local/share/mkcertLocal CA certificate content
Generate certificate for *.minikube.net
These command will generate two files key.pem and cert.pem that we will be using later.
Now we have all the necessary to install Terrakube with HTTPS
Setup Helm Repository
Setup Minikube
Create Kubernetes secret with local certificate
Setup Terrakube namespace
Setup DNS records
Setup Ingress Certificates
Helm Values.
We need to generate a file called value.yaml with the following using the content of our rootCa.pem from the previous step:
Install Terrakube with local HTTPS support
Using Terrakube
The environment has some users, groups and sample data so you can test it quickly.
Visit https://terrakube-ui.minikube.net and login using [email protected] with password admin
We should be able to use the UI using a valid certificate.

Connect to Terrakube
Using terraform we can connect to the terrakube api and the private registry using the following command with the same credentials that we used to login to the UI.
Terraform Remote State.
Lets create a simple Terraform file.
Execute Terraform Remotely
Terraform Init:
Terraform apply:
Checking the UI will show:
