apiversion: v2
name: backend-app-chart
description: some backend app
...
dependencies:
- name: mq-app
conditions: mq-app.anebled
- name: pg-base
condition: pg-base.enabled
mq-app:
enabled: true
image:
repository: ...
pg-base:
enabled: true
[sa@dev-host backend-app-chart]$ tree .
.
├── charts
│ ├── mq-app
│ │ ├── Chart.yaml
│ │ ├── templates
│ │ └── values.yaml
│ └── pg-base
│ ├── Chart.yaml
│ ├── templates
│ └── values.yaml
├── Chart.yaml
└── values.yaml
5 directories, 6 files
[sa@dev-host backend-app-chart]$
docker service update --image helloworld:2.0 --update-delay 30s helloworld
spec:
# modify replicas according to your case
replicas: 3
apiVersion: apps/v1
kind: Deployment
metadata:
name: rolling-nginx
spec:
replicas: 4
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 2
selector:
matchLabels:
app: rolling-nginx
template:
metadata:
labels:
app: rolling-nginx
spec:
containers:
- name: nginx
image: nginx:1.9
Возьмите за основу роли от гирлинга джефа.