Skip to content

Instantly share code, notes, and snippets.

@zinref
Last active April 3, 2020 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zinref/d8b302f97a833a953ed01e59aa42884d to your computer and use it in GitHub Desktop.
Save zinref/d8b302f97a833a953ed01e59aa42884d to your computer and use it in GitHub Desktop.
Avengers Config CRD
apiVersion: env.samsahai.io/v1beta1
kind: Config
metadata:
name: avengers
spec:
# what components do you want to deploy on K8s namespace?
components:
- name: redis
chart:
repository: https://kubernetes-charts.storage.googleapis.com
name: redis
# source of service version, target version can be specified as regex
image:
repository: bitnami/redis
pattern: '5.*debian-9.*'
source: public-registry
# see the available overriden values from https://github.com/helm/charts/tree/master/stable
values:
image:
repository: bitnami/redis
pullPolicy: IfNotPresent
cluster:
enabled: false
usePassword: false
# staging namespace configuration
staging:
# how many times the component should be tested?
maxRetry: 3
deployment:
# how long of service deployment should be ready?
timeout: 5m
engine: helm3
# testing flow configuration for running against staging namespace
testRunner:
# how long testing flow should take?
timeout: 4m
# polling time to verify finished status in ci
pollingTime: 5s
# ci configuration
# in case that you have your ci, currently we support teamcity
testMock:
result: true
# active namespace configuration
activePromotion:
# how long idle time of old active namespace before destroying?
tearDownDuration: 10s
timeout: 10m
# how many active promotion histories to store in etcd?
maxHistories: 2
deployment:
# same as staging deployment configuration
# report configuration
report:
slack:
channels:
- samsahai
# how often of sending component upgrade notification within a retry cycle
# use 'everytime' for sending slack notification in every component upgrade runs
# use 'retry' for sending slack notification after retry only <default>
componentUpgrade:
interval: retry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment