switch example to use deployments instead of applying config changes directly

Should be consistent - localhost