Skip to content

Commit e2dd82e

Browse files
committed
istio가 아닌 환경을 위해 추가
1 parent cdc5e5a commit e2dd82e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

k8s/dev/istio-ingress.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: networking.istio.io/v1alpha3
2+
kind: Gateway
3+
metadata:
4+
name: simple-api-gateway
5+
namespace: api
6+
spec:
7+
selector:
8+
istio: ingressgateway # use istio default controller
9+
servers:
10+
- port:
11+
number: 80
12+
name: http
13+
protocol: HTTP
14+
hosts:
15+
- "dev.simple-api.127.0.0.1.sslip.io"
16+
---
17+
apiVersion: networking.istio.io/v1alpha3
18+
kind: VirtualService
19+
metadata:
20+
name: simple-api-vs
21+
namespace: api
22+
spec:
23+
hosts:
24+
- "dev.simple-api.127.0.0.1.sslip.io"
25+
gateways:
26+
- simple-api-gateway
27+
http:
28+
- match:
29+
- uri:
30+
prefix: /
31+
route:
32+
- destination:
33+
host: simple-api-service
34+
port:
35+
number: 80

0 commit comments

Comments
 (0)