switch example to use deployments instead of applying config changes directly

Why do we need to do this? There is no wait/while/if, so it doesn't matter if it's alive or not.