Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.25 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.25 KB

Requirements

Configuration

Create file terraform/terraform.tfvars

yc_cred = {
  token     = "<YOUR_CLOUD_API_TOKEN>"
  cloud_id  = "<YOUR_CLOUD_ID>"
  folder_id = "<YOUR_FOLDER_ID>"
}

Deploy

$ ./up.sh

Testing

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.

Remove deployment

$ ./down.sh

Remove test.prometheus.org record from your /etc/hosts