ac.istio.io/v1alpha1&#34;
kind: ServiceRole
metadata:
  name: productpage-viewer
  namespace: default
spec:
  rules:
  - services: [&#34;productpage.default.svc.cluster.local&#34;]
    methods: [&#34;GET&#34;]
</code></pre></li><li><p>Creates a <code>ServiceRoleBinding</code> <code>bind-productpage-viewer</code> which assigns the <code>productpage-viewer</code> role to all
users and services.</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: &#34;rbac.istio.io/v1alpha1&#34;