github.com/datadog/cilium@v1.6.12/examples/kubernetes-istio/bookinfo-productpage-v1.yaml (about) 1 # Copyright 2017 Istio Authors 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 ################################################################################################## 16 # Productpage services 17 ################################################################################################## 18 apiVersion: cilium.io/v2 19 kind: CiliumNetworkPolicy 20 metadata: 21 name: productpage-v1 22 namespace: default 23 specs: 24 - endpointSelector: 25 matchLabels: 26 "k8s:app": productpage 27 "k8s:version": v1 28 ingress: 29 - toPorts: 30 - ports: 31 - port: "9080" 32 protocol: TCP 33 rules: 34 http: 35 - method: GET 36 path: "/" 37 - method: GET 38 path: "/index.html" 39 - method: POST 40 path: "/login" 41 - method: GET 42 path: "/logout" 43 - method: GET 44 path: "/productpage" 45 - method: GET 46 path: "/api/v1/products" 47 - method: GET 48 path: "/api/v1/products/[0-9]*" 49 - method: GET 50 path: "/api/v1/products/[0-9]*/reviews" 51 - method: GET 52 path: "/api/v1/products/[0-9]*/ratings" 53 --- 54 apiVersion: apps/v1 55 kind: Deployment 56 metadata: 57 name: productpage-v1 58 spec: 59 selector: 60 matchLabels: 61 app: productpage 62 version: v1 63 replicas: 1 64 template: 65 metadata: 66 annotations: 67 sidecar.istio.io/inject: "true" 68 labels: 69 app: productpage 70 version: v1 71 spec: 72 containers: 73 - name: productpage 74 image: docker.io/istio/examples-bookinfo-productpage-v1:1.10.1 75 imagePullPolicy: IfNotPresent 76 ports: 77 - containerPort: 9080 78 ---