y-method-get
  namespace: foo
spec:
  selector:
    matchLabels:
      app: httpbin
  action: DENY
  rules:
  - to:
    - operation:
        methods: [&#34;GET&#34;]
EOF
</code></pre></li><li><p>Verify that <code>GET</code> requests are denied:</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ kubectl exec &#34;$(kubectl get pod -l app=sleep -n foo -o jsonpath={.items..metadata.name})&#34; -c sleep -n foo -- curl &#34;http://httpbin.foo:8000/get&#34; -X GET -sS -o /dev/null -w &#34;%