Create file terraform/terraform.tfvars
yc_cred = {
token = "<YOUR_CLOUD_API_TOKEN>"
cloud_id = "<YOUR_CLOUD_ID>"
folder_id = "<YOUR_FOLDER_ID>"
}
$ ./up.sh
Get LoadBalancer IP:
$ kubectl -n ingress-apisix get service apisix-gateway
Test API:
$ curl -H 'Host: test.api.org' http://<LOAD_BALANCER_EXTERNAL_IP>/test
$ curl -H 'Host: test.api.org' http://<LOAD_BALANCER_EXTERNAL_IP>/hola/<some_name>
Add LoadBalancer IP to /etc/hosts
$ sudo sh -c 'echo "<LOAD_BALANCER_EXTERNAL_IP> test.prometheus.org" >> /etc/hosts'
Open http://test.prometheus.org in your browser.
$ ./down.sh
Remove test.prometheus.org record from your /etc/hosts