You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/administration/codefresh-runner.md
+48-21Lines changed: 48 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title:"Codefresh Runner"
3
-
description:"Run Codefresh pipelines on your private Kubernetes cluster"
3
+
description:"Install Runner to run Codefresh pipelines on your private Kubernetes cluster"
4
4
group:administration
5
5
redirect_from:
6
6
-/docs/enterprise/codefresh-runner/
@@ -33,7 +33,7 @@ Install the Runner from any workstation or laptop with access to the Kubernetes
33
33
You_must_ install the Codefresh Runner on_every cluster that runs Codefresh pipelines_.
34
34
The Runner is**not** needed in clusters used for_deployment_, as you can deploy applications on clusters without the Runner.
35
35
<br />
36
-
Access to the Codefresh CLI is only needed when installing the Codefresh Runner. After installation, the Runnerthenauthenticates onit own using the details provided. You don't need to install the Codefresh CLI on the cluster running Codefresh pipelines.
36
+
Access to the Codefresh CLI is only needed when installing the Codefresh Runner. After installation, the Runner authenticates onits own using the details provided. You don't need to install the Codefresh CLI on the cluster running Codefresh pipelines.
37
37
38
38
Use any of the following options to install the Codefresh Runner:
39
39
*[Install Codefresh Runner with CLI Wizard](#install-runner-with-cli-wizard)
@@ -47,8 +47,6 @@ If the Kubernetes cluster with the Codefresh Runner is behind a proxy server, [c
47
47
<!--Questions: Add prereq to authenticate the CLI using the token and everything about the token-->
48
48
49
49
50
-
Access to the Codefresh CLI is only needed during the Runner installation. After that, the Runner will authenticate on it own using the details provided. You do NOT need to install the Codefresh CLI on the cluster that is running Codefresh pipelines.
51
-
52
50
During installation, you can see which API token will be used by the runner (if you don't provide one). The printed token includes the permissions used by the Runner to communicate with the Codefresh platform and run pipelines. If you save the token, even if or when you delete the deployment, you can use the same token to restore the Runner's permissions without having to re-install the Codefresh Runner.
53
51
54
52
>Generate your API Key from your[user settings page](https://g.codefresh.io/user/settings).
* [GCE disk storage configuration](#gce-disk-storage-configuration)
430
430
431
431
#### Local SSD storage configuration
432
432
@@ -509,29 +509,23 @@ The Codefresh Runner does not currently support [Regional Persistent Disks](http
509
509
510
510
### Configure internal registry mirror
511
511
512
-
You can configure your Codefresh Runner to use an internal registry as a mirror for any container images that are mentioned in your pipelines.
513
-
514
-
First set up an internal registry as described in [https://docs.docker.com/registry/recipes/mirror/](https://docs.docker.com/registry/recipes/mirror/).
515
-
516
-
Then locate the`codefresh-dind-config` config map in the namespace that houses the runner and edit it.
512
+
You can configure your Codefresh Runner to use an internal registry as a mirror for any container images that are specified in your pipelines.
517
513
514
+
1. Set up an internal registry as described in [https://docs.docker.com/registry/recipes/mirror/](https://docs.docker.com/registry/recipes/mirror/).
515
+
1. Locate the`codefresh-dind-config` config map in the namespace that houses the Runner.
1. Add the line`\ \"registry-mirrors\": [\"https://<my-docker-mirror-host>\" ],\n` to define the single registry to use as a mirror to`data` after the`tlskey`:
`$RUNTIME_ENVIRONMENT` must be replaced with the name of your RE.
544
572
545
-
This adds the line`\ \"registry-mirrors\": [\"https://<my-docker-mirror-host>\" ],\n` which contains a single registry to use as a mirror. Quit and Save by typing`:wq`.
573
+
Once you have applied the patch, future builds include the label preventing eviction.
546
574
547
-
Now any container image that is used in your pipeline and isn't fully qualified, will be pulled through the Docker registry that is configured as a mirror.
548
575
549
576
## View Codefresh Runner and runtime environments
550
577
@@ -567,7 +594,7 @@ Once installed, the Runner polls Codefresh every three seconds by default to aut
567
594
568
595
### Select a default runtime environment
569
596
570
-
If you have multiple runtime environments, select the one to use as the default environment. The default runtime environment is usedfor all pipelines in the account.
597
+
If you have multiple runtime environments, select the one to use as the default environmentfor all the pipelines in the account.
571
598
572
599
* From the list of [Runtime Environments](https://g.codefresh.io/account-admin/account-conf/runtime-environments){:target="\_blank"}, click the context menu of the runtime to set as the default.
573
600
* Select **Set as Default**.
@@ -665,7 +692,7 @@ Codefresh pipelines require disk space for:
665
692
666
693
Codefresh offers two options to manage disk space and prevent out-of-space errors:
667
694
* Use runtime cleaners on Docker images and volumes
668
-
* [Set the disk space per pipeline build volume]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/#runtime)
695
+
* [Set theminimumdisk space per pipeline build volume]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/#runtime)
669
696
670
697
<!--- not sure where this fits in -->
671
698
To improve performance by using Docker cache and decreasing I/O rate,`volume-provisioner` can provision previously used disks with Docker images and pipeline volumes from previously run builds.