Browse Source

update

pull/82/head
brandon 4 years ago
parent
commit
57f72841a3
  1. 2
      helm-guestbook/templates/cluster_analysis.yaml
  2. 4
      helm-guestbook/templates/rollout.yaml
  3. 2
      helm-guestbook/values.yaml

2
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"

4
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

2
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:

Loading…
Cancel
Save