istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/extauthz/ext-authz.yaml (about) 1 # Copyright 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 # Example configurations for deploying ext-authz server separately in the mesh. 16 17 apiVersion: v1 18 kind: Service 19 metadata: 20 name: ext-authz 21 labels: 22 app: ext-authz 23 spec: 24 ports: 25 - name: http 26 port: 8000 27 targetPort: 8000 28 - name: grpc 29 port: 9000 30 targetPort: 9000 31 selector: 32 app: ext-authz 33 --- 34 apiVersion: apps/v1 35 kind: Deployment 36 metadata: 37 name: ext-authz 38 spec: 39 replicas: 1 40 selector: 41 matchLabels: 42 app: ext-authz 43 template: 44 metadata: 45 labels: 46 app: ext-authz 47 spec: 48 containers: 49 - image: gcr.io/istio-testing/ext-authz:latest 50 imagePullPolicy: IfNotPresent 51 name: ext-authz 52 ports: 53 - containerPort: 8000 54 - containerPort: 9000 55 ---