Skip to content

Instantly share code, notes, and snippets.

View zinref's full-sized avatar

Natcha Wattanaarunkij zinref

  • Bangkok, Thailand
View GitHub Profile
@zinref
zinref / avengers-team.yaml
Last active April 2, 2020 17:12
Avengers Team CRD
apiVersion: env.samsahai.io/v1beta1
kind: Team
metadata:
name: avengers
spec:
description: Avengers team
owners:
- avengers@samsahai.io
@zinref
zinref / avengers-config.yaml
Last active April 3, 2020 02:43
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
@zinref
zinref / avengers-config-component.yaml
Last active April 2, 2020 17:10
Avengers Component Config CRD
# 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.*'
@zinref
zinref / avengers-config-env.yaml
Last active April 3, 2020 02:43
Avengers Environment Config CRD
# 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:
@zinref
zinref / avengers-config-report.yaml
Last active April 2, 2020 10:56
Avengers Report Config CRD
# 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
@zinref
zinref / wordpress
Created April 13, 2020 03:22
wordpress temp
ingress:
enabled: true
service:
type: NodePort
persistence:
enabled: false
mariadb:
enabled: true
replication:
enabled: false
image:
repository: bitnami/redis
pullPolicy: IfNotPresent
cluster:
enabled: false
usePassword: false
master:
persistence:
enabled: false
master:
command: "exit 1"