Created
July 24, 2018 12:26
-
-
Save bechampion/f0442457e4649672a58a1b9378a38bc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: "config.istio.io/v1alpha2" | |
kind: denier | |
metadata: | |
name: denyproductpagehandler | |
namespace: default | |
spec: | |
status: | |
code: 7 | |
message: Not allowed | |
--- | |
apiVersion: "config.istio.io/v1alpha2" | |
kind: checknothing | |
metadata: | |
name: denyproductpagerequest | |
namespace: default | |
spec: | |
--- | |
apiVersion: "config.istio.io/v1alpha2" | |
kind: rule | |
metadata: | |
name: denyproductpage | |
namespace: default | |
spec: | |
match: destination.labels["app"] == "nginx" && source.namespace == "default" | |
actions: | |
- handler: denyproductpagehandler.denier | |
instances: [ denyproductpagerequest.checknothing ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment