olicy has the following effects:</p><ul><li><p>Creates a <code>ServiceRole</code> <code>ratings-viewer</code> which allows access to the <code>ratings</code> service.</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: &#34;rbac.istio.io/v1alpha1&#34;
kind: ServiceRole
metadata:
  name: ratings-viewer
  namespace: default
spec:
  rules:
  - services: [&#34;ratings.default.svc.cluster.local&#34;]
    methods: [&#34;GET&#34;]
</code></pre></li><li><p>Creates a <code>ServiceRole