Add Istio destination rule to RBAC

This commit is contained in:
stefanprodan
2019-06-07 13:32:34 +03:00
parent 3fa9f37192
commit cba6e5f811
6 changed files with 20 additions and 2 deletions
+2
View File
@@ -48,6 +48,8 @@ rules:
resources:
- virtualservices
- virtualservices/status
- destinationrules
- destinationrules/status
verbs: ["*"]
- apiGroups:
- appmesh.k8s.aws
@@ -2,5 +2,12 @@ apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: podinfo-canary
namespace: test
spec:
host: podinfo-canary
trafficPolicy:
loadBalancer:
consistentHash:
httpCookie:
name: user
ttl: 0s
+1 -1
View File
@@ -9,7 +9,7 @@ spec:
kind: Deployment
name: podinfo
minReplicas: 2
maxReplicas: 3
maxReplicas: 2
metrics:
- type: Resource
resource:
@@ -2,5 +2,12 @@ apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: podinfo-primary
namespace: test
spec:
host: podinfo-primary
trafficPolicy:
loadBalancer:
consistentHash:
httpCookie:
name: user
ttl: 0s
+1 -1
View File
@@ -9,7 +9,7 @@ spec:
kind: Deployment
name: podinfo-primary
minReplicas: 2
maxReplicas: 4
maxReplicas: 2
metrics:
- type: Resource
resource:
+2
View File
@@ -44,6 +44,8 @@ rules:
resources:
- virtualservices
- virtualservices/status
- destinationrules
- destinationrules/status
verbs: ["*"]
- apiGroups:
- appmesh.k8s.aws