summaryrefslogtreecommitdiffstats
path: root/samples/scenarios
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2018-08-24 07:56:39 +0000
committerAce Lee <liyin11@huawei.com>2018-08-29 09:16:16 +0000
commit907d2d1b0ab1c82552b9805df8bf39c1a55b5281 (patch)
tree046f13507e95b30c5283765e24186ea282f4dc3a /samples/scenarios
parentc7e0f161092e6affccf50e4faf59d6eef4f4314d (diff)
Bug fix in SDC after istio to 1.0.0
JIRA: CLOVER-84 There will be some Bug in SDC after we upgrade the Istio to 1.0.0 Istio 1.0 have some concept, for example : virtualservice gateway. So we change the yaml file using the 1.0.0 concepts. Add mirror function Change-Id: Id138cfec2c7d94b44eb508a056c91e193ac1b08b Signed-off-by: Ace Lee <liyin11@huawei.com>
Diffstat (limited to 'samples/scenarios')
-rw-r--r--samples/scenarios/service_delivery_controller_opnfv.yaml45
1 files changed, 33 insertions, 12 deletions
diff --git a/samples/scenarios/service_delivery_controller_opnfv.yaml b/samples/scenarios/service_delivery_controller_opnfv.yaml
index 9fee92f..ceba36f 100644
--- a/samples/scenarios/service_delivery_controller_opnfv.yaml
+++ b/samples/scenarios/service_delivery_controller_opnfv.yaml
@@ -344,17 +344,38 @@ spec:
selector:
app: proxy-access-control
---
-apiVersion: extensions/v1beta1
-kind: Ingress
+apiVersion: networking.istio.io/v1alpha3
+kind: Gateway
+metadata:
+ name: sdc-gateway
+spec:
+ selector:
+ istio: ingressgateway # use istio default controller
+ servers:
+ - port:
+ number: 80
+ name: http
+ protocol: HTTP
+ hosts:
+ - "*"
+---
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
metadata:
- name: proxy-gateway
- annotations:
- kubernetes.io/ingress.class: "istio"
+ name: sdcsample
spec:
- rules:
- - http:
- paths:
- - path:
- backend:
- serviceName: proxy-access-control
- servicePort: 9180
+ hosts:
+ - "*"
+ gateways:
+ - sdc-gateway
+ http:
+ - match:
+ - uri:
+ prefix: /
+ route:
+ - destination:
+ host: proxy-access-control
+ port:
+ number: 9180
+ mirror:
+ host: snort-ids