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: metrics:
- name: success-rate - name: success-rate
# successCondition: isNaN(result[0]) || result[0] >= 0.10 # successCondition: isNaN(result[0]) || result[0] >= 0.10
successCondition: result[0] >= 0.90 successCondition: result[0] >= 0.90 || isNaN(result[0])
provider: provider:
prometheus: prometheus:
address: "http://52.149.216.245:9090" address: "http://52.149.216.245:9090"

4
helm-guestbook/templates/rollout.yaml

@ -66,10 +66,8 @@ spec:
annotationPrefix: nginx.ingress.kubernetes.io annotationPrefix: nginx.ingress.kubernetes.io
additionalIngressAnnotations: additionalIngressAnnotations:
canary-by-header: tenantID 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: steps:
- setCanaryScale:
weight: 50
- analysis: - analysis:
templates: templates:
- templateName: success-rate - templateName: success-rate

2
helm-guestbook/values.yaml

@ -6,7 +6,7 @@ replicaCount: 3
image: image:
repository: gcr.io/heptio-images/ks-guestbook-demo repository: gcr.io/heptio-images/ks-guestbook-demo
tag: 0.1 tag: 0.2
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
service: service:

Loading…
Cancel
Save