-
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.
Add separate bluegreen-analysis folder so we can include files in wor…
…kshop
- Loading branch information
Showing
6 changed files
with
98 additions
and
24 deletions.
There are no files selected for viewing
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
documentation/modules/ROOT/examples/bluegreen-analysis/base/kustomization.yaml
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,8 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- analysistemplate.yaml | ||
- rollout.yaml | ||
- services.yaml | ||
- routes.yaml |
34 changes: 34 additions & 0 deletions
34
documentation/modules/ROOT/examples/bluegreen-analysis/base/rollout.yaml
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,34 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
name: rollouts-demo | ||
spec: | ||
replicas: 2 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: rollouts-demo | ||
strategy: | ||
blueGreen: | ||
activeService: active | ||
previewService: preview | ||
autoPromotionEnabled: false | ||
prePromotionAnalysis: | ||
args: | ||
- name: query | ||
value: irate%28haproxy_backend_http_responses_total%7Bexported_namespace%3D%27rollouts-demo-prod%27%2C%20route%3D~%22bluegreen-preview%22%2C%20code%3D%225xx%22%7D%5B1m%5D%29%20%3E%205%20or%20on%28%29%20vector%280%29 | ||
- name: route-url | ||
value: bluegreen-preview-rollouts-demo-prod.${SUB_DOMAIN} | ||
templates: | ||
- templateName: smoke-tests | ||
template: | ||
metadata: | ||
labels: | ||
app: rollouts-demo | ||
spec: | ||
containers: | ||
- image: quay.io/openshiftdemos/rollouts-demo:blue | ||
imagePullPolicy: IfNotPresent | ||
name: rollouts-demo | ||
ports: | ||
- containerPort: 8080 |
27 changes: 27 additions & 0 deletions
27
documentation/modules/ROOT/examples/bluegreen-analysis/base/routes.yaml
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,27 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: active | ||
spec: | ||
port: | ||
targetPort: http | ||
tls: | ||
insecureEdgeTerminationPolicy: Redirect | ||
termination: edge | ||
to: | ||
kind: Service | ||
name: active | ||
--- | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: preview | ||
spec: | ||
port: | ||
targetPort: http | ||
tls: | ||
insecureEdgeTerminationPolicy: Redirect | ||
termination: edge | ||
to: | ||
kind: Service | ||
name: preview |
29 changes: 29 additions & 0 deletions
29
documentation/modules/ROOT/examples/bluegreen-analysis/base/services.yaml
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,29 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: rollouts-demo | ||
name: active | ||
spec: | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
name: http | ||
selector: | ||
app: rollouts-demo | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: rollouts-demo | ||
name: preview | ||
spec: | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
name: http | ||
selector: | ||
app: rollouts-demo |
24 changes: 0 additions & 24 deletions
24
documentation/modules/ROOT/examples/bluegreen/overlays/analysistemplate/kustomization.yaml
This file was deleted.
Oops, something went wrong.