2019-06-05 16:22:02 +00:00
|
|
|
---
|
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
generateName: upgrade-sql-schema
|
|
|
|
annotations:
|
|
|
|
argocd.argoproj.io/hook: PreSync
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: upgrade-sql-schema
|
|
|
|
image: alpine:latest
|
|
|
|
command: ["sleep", "5"]
|
|
|
|
restartPolicy: Never
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: ReplicaSet
|
|
|
|
metadata:
|
|
|
|
name: backend
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
tier: backend
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
tier: backend
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: main
|
|
|
|
image: nginx:latest
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: backend
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
tier: backend
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 8080
|
|
|
|
targetPort: 8080
|
|
|
|
---
|
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
2019-10-11 16:22:42 +00:00
|
|
|
name: maint-page-up
|
2019-06-05 16:22:02 +00:00
|
|
|
annotations:
|
|
|
|
argocd.argoproj.io/hook: Sync
|
2019-10-11 16:22:42 +00:00
|
|
|
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
|
2019-06-05 16:22:02 +00:00
|
|
|
argocd.argoproj.io/sync-wave: "1"
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: page-up
|
|
|
|
image: alpine:latest
|
|
|
|
command: ["sleep", "2"]
|
|
|
|
restartPolicy: Never
|
|
|
|
backoffLimit: 0
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: ReplicaSet
|
|
|
|
metadata:
|
|
|
|
name: frontend
|
|
|
|
annotations:
|
|
|
|
argocd.argoproj.io/sync-wave: "2"
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
tier: frontend
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
tier: frontend
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: main
|
|
|
|
image: nginx:latest
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: frontend
|
|
|
|
annotations:
|
|
|
|
argocd.argoproj.io/sync-wave: "2"
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
tier: frontend
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 80
|
|
|
|
targetPort: 80
|
|
|
|
---
|
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
2019-10-11 16:22:42 +00:00
|
|
|
name: maint-page-down
|
2019-06-05 16:22:02 +00:00
|
|
|
annotations:
|
|
|
|
argocd.argoproj.io/hook: Sync
|
2019-10-11 16:22:42 +00:00
|
|
|
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
|
2019-06-05 16:22:02 +00:00
|
|
|
argocd.argoproj.io/sync-wave: "3"
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: page-down
|
|
|
|
image: alpine:latest
|
|
|
|
command: ["sleep", "2"]
|
|
|
|
restartPolicy: Never
|