Skip to main content

Down for Maintenance

When the DOWN_FOR_MAINTENANCE envvar is set to "true", our nextjs jobs will show a down for maintenance page.

Down for Maintenance page

Bring Synthetic down for maintenance

To avoid long build and deploy workflows, use the following kubectl patch command to edit the prod environment variable on the fly.

caution

Always use caution when editing production state directly.

Set DOWN_FOR_MAINTENANCE=true for prod-glhf-nextjs

kubectl patch deployment prod-glhf-nextjs -p '{"spec":{"template":{"spec":{"containers":[{"name":"glhf-nextjs","env":[{"name":"DOWN_FOR_MAINTENANCE","value":"true"}]}]}}}}'

Set DOWN_FOR_MAINTENANCE=false for prod-glhf-nextjs

kubectl patch deployment prod-glhf-nextjs -p '{"spec":{"template":{"spec":{"containers":[{"name":"glhf-nextjs","env":[{"name":"DOWN_FOR_MAINTENANCE","value":"false"}]}]}}}}'