switch example to use deployments instead of applying config changes directly

Shouldn't be necessary