Created
October 13, 2020 12:05
-
-
Save abatilo/e98186261db7e555f962c9657e9abd2c to your computer and use it in GitHub Desktop.
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
--- | |
apiVersion: argoproj.io/v1alpha1 | |
kind: AnalysisTemplate | |
metadata: | |
name: integrationtests | |
spec: | |
metrics: | |
- name: integrationtests | |
failureLimit: 0 | |
provider: | |
job: | |
spec: | |
backoffLimit: 0 | |
template: | |
spec: | |
containers: | |
- name: integrationtests | |
image: busybox:1.28 | |
command: ["sh", "-c"] | |
args: ["exit 2"] | |
restartPolicy: Never | |
--- | |
apiVersion: argoproj.io/v1alpha1 | |
kind: Rollout | |
metadata: | |
name: nginx | |
spec: | |
replicas: 10 | |
strategy: | |
canary: | |
maxUnavailable: 0 | |
steps: | |
- setWeight: 90 | |
- analysis: | |
templates: | |
- templateName: integrationtests | |
selector: | |
matchLabels: | |
app: nginx | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.18 | |
ports: | |
- name: http | |
containerPort: 80 | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: / | |
port: http | |
readinessProbe: | |
httpGet: | |
path: / | |
port: http | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx | |
spec: | |
ports: | |
- port: 80 | |
targetPort: http | |
protocol: TCP | |
name: http | |
selector: | |
app: nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment