docs: runner startup delay docs PR #678 (#679)

* docs: runner startup delay docs PR #678

* docs: adding in immutable tag into the docs
This commit is contained in:
toast-gear 2021-07-03 12:02:37 +01:00 committed by GitHub
parent 82d1be7791
commit 9437e164b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 18 deletions

View File

@ -1098,25 +1098,14 @@ configuration script tries to communicate with the network.
**Solution**<br /> **Solution**<br />
> This feature is experimental and will be dropped once maintainers think that > Added originally to help users with older istio instances.
> everyone has already migrated to use Istio's `holdApplicationUntilProxyStarts` ([istio/istio#11130](https://github.com/istio/istio/issues/11130)). > Newer Istio instances can use Istio's `holdApplicationUntilProxyStarts` attribute ([istio/istio#11130](https://github.com/istio/istio/issues/11130)) to avoid having to delay starting up the runner.
> > Please read the discussion in [#592](https://github.com/actions-runner-controller/actions-runner-controller/pull/592) for more information.
> Please read the discussion in #592 for more information.
You can add a delay to the entrypoint script by setting the `STARTUP_DELAY` environment _Note: Prior to the runner immutable tag `82d1be7` or the date `2021-07-03` for the mutable tags, the environment variable referenced below was called `STARTUP_DELAY`. This has been deprecated and will be removed from the codebase later (currently we check for both). If you are using this feature please update to using `STARTUP_DELAY_IN_SECONDS` instead when you next upgrade your runner image to a current release._
variable. This will cause the script to sleep `STARTUP_DELAY` seconds.
*Example `Runner` with a 2 second startup delay:* You can add a delay to the runner's entrypoint script by setting the `STARTUP_DELAY_IN_SECONDS` environment
```yaml variable for the runner pod. This will cause the script to sleep X seconds, this works with any runner kind.
apiVersion: actions.summerwind.dev/v1alpha1
kind: Runner
metadata:
name: example-runner-with-sleep
spec:
env:
- name: STARTUP_DELAY
value: "2" # Remember! env var values must be strings.
```
*Example `RunnerDeployment` with a 2 second startup delay:* *Example `RunnerDeployment` with a 2 second startup delay:*
```yaml ```yaml
@ -1128,7 +1117,7 @@ spec:
template: template:
spec: spec:
env: env:
- name: STARTUP_DELAY - name: STARTUP_DELAY_IN_SECONDS
value: "2" # Remember! env var values must be strings. value: "2" # Remember! env var values must be strings.
``` ```