You planned an upgrade every weekend when there is no activity on your web service.
There is a service interruption during the upgrade, to apply database migrations.
You donβt want to be notified by your monitoring that your service is down during the upgrade.
Create the following Kubernetes resource:
---
apiVersion: kubirds.com/v1
kind: Inhibitor
metadata:
name: weekly-upgrade
namespace: default
spec:
startDate: "2020-09-19T00:00:00.000Z"
duration: 1 hour
schedule: every week
unitSelector:
app: my-service
The
startDateproperty is mandatory to set a starting point for the schedule.The
durationproperty indicates how long units should be silenced.The
scheduleproperty indicates when units should be silenced.The
unitSelectorproperty selects (by label) which units should be silenced.
For the complete Inhibitor schema, see this page.