Skip to content

a-shkurenkov/procatt_apisix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published