UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Canary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
runyontr
Canary
Commits
7ae68125
Commit
7ae68125
authored
3 years ago
by
Thomas Runyon
Browse files
Options
Downloads
Patches
Plain Diff
Canary rollout proposal
parent
ffaf5595
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+93
-0
93 additions, 0 deletions
README.md
with
93 additions
and
0 deletions
README.md
0 → 100644
+
93
−
0
View file @
7ae68125
# Canary
## Initial state
In our initial situation, we have a single
`IstioOperator`
object pegged on version 1.1.0 as follows
```
bash
❯ helm template chart
---
# Source: chart/templates/main.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
annotations:
meta.helm.sh/release-name: istio-system-istio
meta.helm.sh/release-namespace: istio-system
labels:
app.kubernetes.io/managed-by: Helm
helm.toolkit.fluxcd.io/name: istio
helm.toolkit.fluxcd.io/namespace: bigbang
name: istiocontrolplane
namespace: istio-system
spec:
revision: 1.1.0
```
## Canary Deployment
As part of our testing of upgrades, we want to deploy a new (additional) version of the
`IstioOperator`
to test version 1.2.0 as follows:
```bash
---
# Source: chart/templates/canary.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
annotations:
meta.helm.sh/release-name: istio-system-istio
meta.helm.sh/release-namespace: istio-system
labels:
app.kubernetes.io/managed-by: Helm
helm.toolkit.fluxcd.io/name: istio
helm.toolkit.fluxcd.io/namespace: bigbang
name: istiocontrolplane-canary
namespace: istio-system
spec:
revision: 1.2
---
# Source: chart/templates/main.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
annotations:
meta.helm.sh/release-name: istio-system-istio
meta.helm.sh/release-namespace: istio-system
labels:
app.kubernetes.io/managed-by: Helm
helm.toolkit.fluxcd.io/name: istio
helm.toolkit.fluxcd.io/namespace: bigbang
name: istiocontrolplane
namespace: istio-system
spec:
revision: 1.1.0
```
## Remove Canary
Once the canary is accepted, we can deploy the new version of the software:
```
bash
❯ helm template chart --set tag=1.2
---
# Source: chart/templates/main.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
annotations:
meta.helm.sh/release-name: istio-system-istio
meta.helm.sh/release-namespace: istio-system
labels:
app.kubernetes.io/managed-by: Helm
helm.toolkit.fluxcd.io/name: istio
helm.toolkit.fluxcd.io/namespace: bigbang
name: istiocontrolplane
namespace: istio-system
spec:
revision: 1.2
```
which updates the initial IstioOperator object with the new version.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment