diff --git a/helm-guestbook/templates/cluster_analysis.yaml b/helm-guestbook/templates/cluster_analysis.yaml index 763d44b..010eaa6 100644 --- a/helm-guestbook/templates/cluster_analysis.yaml +++ b/helm-guestbook/templates/cluster_analysis.yaml @@ -8,7 +8,7 @@ spec: metrics: - name: success-rate # successCondition: isNaN(result[0]) || result[0] >= 0.10 - successCondition: result[0] >= 0.90 + successCondition: result[0] >= 0.90 || isNaN(result[0]) provider: prometheus: address: "http://52.149.216.245:9090" diff --git a/helm-guestbook/templates/rollout.yaml b/helm-guestbook/templates/rollout.yaml index e9789ee..b854336 100644 --- a/helm-guestbook/templates/rollout.yaml +++ b/helm-guestbook/templates/rollout.yaml @@ -66,10 +66,8 @@ spec: annotationPrefix: nginx.ingress.kubernetes.io additionalIngressAnnotations: canary-by-header: tenantID - canary-by-header-value: 10|11|12|13 # tenantID values + canary-by-header-pattern: 10|11|12|13 # tenantID values steps: - - setCanaryScale: - weight: 50 - analysis: templates: - templateName: success-rate diff --git a/helm-guestbook/values.yaml b/helm-guestbook/values.yaml index 6acbedb..59f21c0 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.1 + tag: 0.2 pullPolicy: IfNotPresent service: