diff --git a/helm-guestbook/templates/cluster_analysis.yaml b/helm-guestbook/templates/cluster_analysis.yaml index a4ff666..763d44b 100644 --- a/helm-guestbook/templates/cluster_analysis.yaml +++ b/helm-guestbook/templates/cluster_analysis.yaml @@ -7,9 +7,10 @@ spec: - name: service-name metrics: - name: success-rate - successCondition: isNaN(result[0]) || result[0] >= 0.10 +# successCondition: isNaN(result[0]) || result[0] >= 0.10 + successCondition: result[0] >= 0.90 provider: prometheus: address: "http://52.149.216.245:9090" query: | - rate(nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook",status!~"[4-5].*"}[1h]) / rate(nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook"}[1h]) \ No newline at end of file + rate(nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook",status=~"[2].*"}[1h]) / rate(nginx_ingress_controller_requests{ingress="aks-guestbook-helm-guestbook", controller_class="nginx",exported_namespace="aks-guestbook-helm-guestbook"}[1h]) \ No newline at end of file diff --git a/helm-guestbook/templates/rollout.yaml b/helm-guestbook/templates/rollout.yaml index 786d062..b52f72d 100644 --- a/helm-guestbook/templates/rollout.yaml +++ b/helm-guestbook/templates/rollout.yaml @@ -75,4 +75,4 @@ spec: additionalIngressAnnotations: # optional canary-by-header: tenantID canary-by-header-value: 10|11|12|13 # tenantID values - # canary-weight: 20 + canary-weight: "20" diff --git a/helm-guestbook/values.yaml b/helm-guestbook/values.yaml index 59f21c0..6acbedb 100644 --- a/helm-guestbook/values.yaml +++ b/helm-guestbook/values.yaml @@ -6,7 +6,7 @@ replicaCount: 3 image: repository: gcr.io/heptio-images/ks-guestbook-demo - tag: 0.2 + tag: 0.1 pullPolicy: IfNotPresent service: