switch example to use deployments instead of applying config changes directly