This repository has been archived by the owner on May 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from carlossg/flagger
More Flagger demo work
- Loading branch information
Showing
6 changed files
with
110 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{- if eq .Release.Namespace "jx-production" }} | ||
apiVersion: flagger.app/v1alpha2 | ||
kind: Canary | ||
metadata: | ||
# canary name must match deployment name | ||
name: jx-production-croc-hunter-jenkinsx | ||
spec: | ||
# deployment reference | ||
targetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: jx-production-croc-hunter-jenkinsx | ||
# HPA reference (optional) | ||
# autoscalerRef: | ||
# apiVersion: autoscaling/v2beta1 | ||
# kind: HorizontalPodAutoscaler | ||
# name: jx-production-croc-hunter-jenkinsx | ||
# the maximum time in seconds for the canary deployment | ||
# to make progress before it is rollback (default 600s) | ||
progressDeadlineSeconds: 60 | ||
service: | ||
# container port | ||
port: 8080 | ||
# Istio gateways (optional) | ||
gateways: | ||
- public-gateway.istio-system.svc.cluster.local | ||
# Istio virtual service host names (optional) | ||
hosts: | ||
- croc-hunter.istio.us.g.csanchez.org | ||
- croc-hunter.istio.eu.g.csanchez.org | ||
canaryAnalysis: | ||
# schedule interval (default 60s) | ||
interval: 15s | ||
# max number of failed metric checks before rollback | ||
threshold: 5 | ||
# max traffic percentage routed to canary | ||
# percentage (0-100) | ||
maxWeight: 50 | ||
# canary increment step | ||
# percentage (0-100) | ||
stepWeight: 10 | ||
metrics: | ||
- name: istio_requests_total | ||
# minimum req success rate (non 5xx responses) | ||
# percentage (0-100) | ||
threshold: 99 | ||
interval: 30s | ||
- name: istio_request_duration_seconds_bucket | ||
# maximum req duration P99 | ||
# milliseconds | ||
threshold: 500 | ||
interval: 30s | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters