Browse Source

update

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

5
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])
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])

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

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

Loading…
Cancel
Save