Skip to content

Commit

Permalink
Add kong configuration scheme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar1202 committed Nov 10, 2024
1 parent 90df759 commit e96714d
Show file tree
Hide file tree
Showing 15 changed files with 144 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/configs/dev/product1/service1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- connect_timeout: 60000
host: service.upstream
name: lounge-backend
port: 443
protocol: https
tags:
- pci
path: "/"
routes:
- hosts:
- https://service.com
name: service-backend
paths:
- "/api"
preserve_host: true
methods:
- "GET"

19 changes: 19 additions & 0 deletions examples/configs/dev/product1/service2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- connect_timeout: 60000
host: service.upstream
name: lounge-backend
port: 443
protocol: https
tags:
- pci
path: "/"
routes:
- hosts:
- https://service.com
name: service-backend
paths:
- "/api"
preserve_host: true
methods:
- "GET"

10 changes: 10 additions & 0 deletions examples/configs/dev/product1/upstreams.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
service.upstream:
- delhi_dc:
- host: service.delhi.dummyorg.com
weight: 100
- mumbai_dc:
- host: service-01.mumbai.dummyorg.com
weight: 50
- host: service-02.mumbai.dummyorg.com
weight: 50

Empty file.
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions examples/configs/production/services/product1/service1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- connect_timeout: 60000
host: service.upstream
name: lounge-backend
port: 443
protocol: https
tags:
- pci
path: "/"
routes:
- hosts:
- https://service.com
name: service-backend
paths:
- "/api"
preserve_host: true
methods:
- "GET"

19 changes: 19 additions & 0 deletions examples/configs/production/services/product1/service2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- connect_timeout: 60000
host: service.upstream
name: lounge-backend
port: 443
protocol: https
tags:
- pci
path: "/"
routes:
- hosts:
- https://service.com
name: service-backend
paths:
- "/api"
preserve_host: true
methods:
- "GET"

10 changes: 10 additions & 0 deletions examples/configs/production/services/product1/upstreams.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
service.upstream:
- delhi_dc:
- host: service.delhi.dummyorg.com
weight: 100
- mumbai_dc:
- host: service-01.mumbai.dummyorg.com
weight: 50
- host: service-02.mumbai.dummyorg.com
weight: 50

19 changes: 19 additions & 0 deletions examples/configs/uat/product1/service1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- connect_timeout: 60000
host: service.upstream
name: lounge-backend
port: 443
protocol: https
tags:
- pci
path: "/"
routes:
- hosts:
- https://service.com
name: service-backend
paths:
- "/api"
preserve_host: true
methods:
- "GET"

19 changes: 19 additions & 0 deletions examples/configs/uat/product1/service2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- connect_timeout: 60000
host: service.upstream
name: lounge-backend
port: 443
protocol: https
tags:
- pci
path: "/"
routes:
- hosts:
- https://service.com
name: service-backend
paths:
- "/api"
preserve_host: true
methods:
- "GET"

10 changes: 10 additions & 0 deletions examples/configs/uat/product1/upstreams.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
service.upstream:
- delhi_dc:
- host: service.delhi.dummyorg.com
weight: 100
- mumbai_dc:
- host: service-01.mumbai.dummyorg.com
weight: 50
- host: service-02.mumbai.dummyorg.com
weight: 50

Empty file.
Empty file.
Empty file.

0 comments on commit e96714d

Please sign in to comment.