Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39f7ab2

Browse files
Update codefresh-runner.md (codefresh-io#221)
1 parent0c145ab commit39f7ab2

File tree

1 file changed

+42
-44
lines changed

1 file changed

+42
-44
lines changed

‎_docs/administration/codefresh-runner.md‎

Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ toc: true
99

1010

1111

12-
Install the Codefresh Runner on your Kubernetes cluster to run pipelines and access secure internal services without compromising on premise security requirements. These pipelines run on your infrastructure, even behind the firewall, and keep code on your Kubernetes cluster.
12+
Install the Codefresh Runner on your Kubernetes cluster to run pipelines and access secure internal services without compromising on-premises security requirements. These pipelines run on your infrastructure, even behind the firewall, and keep code on your Kubernetes cluster.
1313

1414
[Skip to quick installation→](#installation-with-the-quick-start-wizard)
1515

16-
>Notice thata runner installation is needed for each clusterthat will_run_ Codefresh pipelines. A runner is**not** needed
17-
in clustersthat areused for_deployment_. It is possible to deploy applications ondifferentclusters other than the ones the runner isrunning on.
16+
>***Note:**a runner installation is needed for each cluster_running_ Codefresh pipelines. A runner is**not** needed
17+
in clusters used for_deployment_. It is possible to deploy applications on clusters other than the ones the runner isdeployed on.*
1818

19-
The installation process takes care of allthe componentsof the runner as well as theother resources (config-maps, secrets, volumes) needed by them.
19+
The installation process takes care of allrunner componentsandotherrequiredresources (config-maps, secrets, volumes).
2020

2121
##Prerequisites
2222

23-
In order touse the Codefresh runneryou needthe following:
23+
Touse the Codefresh runner the following is required:
2424

25-
1. A Kubernetes cluster with outgoingInternet access (with version later than 1.10). Each node should have 50GB disk size.
26-
1. A container runtime such as[docker](https://kubernetes.io/blog/2020/12/02/dockershim-faq/),[containerd](https://containerd.io/) or[cri-o](https://cri-o.io/). Note that the runner is**NOT** dependent on any special dockershim features, so any compliant container runtimewill work.
27-
1. A[Codefresh account]({{site.baseurl}}/docs/getting-started/create-a-codefresh-account/) with the Hybrid feature enabled.
28-
1. A[Codefresh CLI token]({{site.baseurl}}/docs/integrations/codefresh-api/#authentication-instructions) that will be used to authenticate your Codefresh account.
25+
1. A Kubernetes cluster with outgoinginternet access (for version later than 1.10). Each node should have 50GB disk size.
26+
2. A container runtime, such as[docker](https://kubernetes.io/blog/2020/12/02/dockershim-faq/),[containerd](https://containerd.io/) or[cri-o](https://cri-o.io/). Note that the runner is**not** dependent on any special dockershim features, so any compliant container runtimeis acceptable.
27+
3. A[Codefresh account]({{site.baseurl}}/docs/getting-started/create-a-codefresh-account/) with the Hybrid feature enabled.
28+
4. A[Codefresh CLI token]({{site.baseurl}}/docs/integrations/codefresh-api/#authentication-instructions) that will be used to authenticate your Codefresh account.
2929

30-
Installationcanhappenfrom any workstation or laptopthat hasaccess (i.e. via`kubectl`) to the Kubernetes clusterthat will run Codefresh builds. The Codefresh runner will authenticate to your Codefresh account by using the Codefresh CLI token.
30+
The runnercanbe installedfrom any workstation or laptopwithaccess (i.e. via`kubectl`) to the Kubernetes clusterrunning Codefresh builds. The Codefresh runner will authenticate to your Codefresh account by using the Codefresh CLI token.
3131

3232
##Installation with the quick-start wizard
3333

@@ -43,7 +43,7 @@ codefresh auth create-context --api-key {API_KEY}
4343
```
4444
You can obtain an API Key from your[user settings page](https://g.codefresh.io/user/settings).
4545

46-
Notice thataccess to the Codefresh CLI is only needed once 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.
46+
***Note:**access to the Codefresh CLI is only needed once 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.*
4747

4848
Then run the wizard with the following command
4949

@@ -57,7 +57,7 @@ or
5757
codefresh runner init --token <my-token>
5858
```
5959

60-
The wizard will askyou some basic questions and proceed with the installation.
60+
Brefore proceeding with installation, the wizard asksyou some basic questions.
6161

6262
{% include image.html
6363
lightbox="true"
@@ -68,7 +68,7 @@ The wizard will ask you some basic questions and proceed with the installation.
6868
max-width="100%"
6969
%}
7070

71-
The wizardwillalsocreate andrun a sample pipeline that you can see in your Codefresh UI
71+
The wizard alsocreates andruns a sample pipeline that you can see in your Codefresh UI.
7272

7373
{% include image.html
7474
lightbox="true"
@@ -81,18 +81,17 @@ The wizard will also create and run a sample pipeline that you can see in your C
8181

8282
That's it! You can now start using the Runner.
8383

84-
You can also verify your installation with
85-
84+
You can also verify your installation with:
8685
```
8786
codefresh runner info
8887
```
8988

90-
During installation youwill alsosee which API token will be used by the runner (if you don't provide one by yourself). The tokenthatisprinted isused by the runner to talk to the Codefresh platformand it carriespermissions thatallows the runner to run pipelines.If younote downthe token, it can later be usedif the deployment is deletedto restore the runner's permissions without creating a new runner installation.
89+
During installation youcansee which API token will be used by the runner (if you don't provide one). Theprintedtoken is used by the runner to talk to the Codefresh platformcarryingpermissions thatallow the runner to run pipelines. If yousavethe token, it can later be used to restore the runner's permissions without creating a new runner installation, if the deployment is deleted.
9190

9291
###Customizing the wizard installation
9392

9493
You can customize the wizard installation by passing your own values in the`init` command.
95-
For example you can specify the runtimethat will be used in advance with:
94+
For example you can specify the runtimeto be used in advance with:
9695

9796
```
9897
codefresh runner init --kube-namespace my-codefresh-namespace
@@ -104,23 +103,23 @@ Here are all the possible installation options
104103
{: .table .table-bordered .table-hover}
105104
| Parameter| Description|
106105
| --------------| ----------------------------|
107-
| name| The name of the agentthat will be created.|
108-
| token| Codefresh account token to be usedto install the Codefresh Runner.|
109-
| url| Codefresh system custom url.|
106+
| name| The name of the agentto be created.|
107+
| token|TheCodefresh account token to be usedfor installing the Codefresh Runner.|
108+
| url|TheCodefresh system custom url.|
110109
| kube-context-name| Name of the Kubernetes context on which the runner should be installed|
111110
| kube-node-selector| The Kubernetes node selector "key=value" to be used by runner resources (default is no node selector)|
112-
| yes|Use installation defaults (don't ask any questions during the installation)|
113-
| set-default-runtime| Set this as the default runtime environment for your Codefresh account|
114-
| exec-demo-pipeline| Run a demo pipeline after the installation completes (true/false)|
115-
| kube-namespace| Name of the namespaceon whichthe runnershould be installed|
116-
| tolerations| The Kubernetes tolerations as path to aJSON file to be used by the runner resources (default is no tolerations)|
117-
| storage-class-name| Set a nameof your custom storage class|
118-
| kube-config-path| Path to kubeconfig file (default is $HOME/.kube/config)|
119-
| set-value| Pass a custom parameter/value pair|
120-
| verbose| Print logs|
121-
| docker-daemon-access| Allows direct Docker daemon access (default true)|
111+
| yes|This enables installation defaults (don't ask any questions during the installation)|
112+
| set-default-runtime| Set this as the default runtime environment for your Codefresh account.|
113+
| exec-demo-pipeline| Run a demo pipeline after the installation completes. (true/false)|
114+
| kube-namespace| Name of the namespacewherethe runnerwill be installed.|
115+
| tolerations| The Kubernetes tolerations asapath to a JSON file to be used by the runner resources. (default: no)|
116+
| storage-class-name| Set a namefor your custom storage class.|
117+
| kube-config-path| Path to kubeconfig file (default is $HOME/.kube/config).|
118+
| set-value| Pass a custom parameter/value pair.|
119+
| verbose| Print logs.|
120+
| docker-daemon-access| Allows direct Docker daemon access. (default: true)|
122121

123-
Alternatively you can pass a values.yml file to the`init` command that includes all installation settings:
122+
Alternatively, you can pass a values.yml file to the`init` command that includes all installation settings:
124123

125124
```
126125
codefresh runner init --values values.yaml
@@ -133,10 +132,9 @@ You can use [this example](https://github.com/codefresh-io/venona/blob/release-1
133132
##Using the Codefresh Runner
134133

135134

136-
Once installed the Runner is fully automated. It polls on its own the Codefresh SAAS (by default every ten seconds) and
137-
creates automatically all resources needed for running pipelines.
135+
Once installed, the Runner is fully automated. It polls the Codefresh SAAS (by default every ten seconds) on its own and automatically creates all resources needed for running pipelines.
138136

139-
Once installation is complete, you should see the cluster of the runner as a new[Runtime environment](https://g.codefresh.io/account-admin/account-conf/runtime-environments) in Codefreshat your*Account Settings*, in the respective tab.
137+
Once installation is complete, you should see the cluster of the runner as a new[Runtime environment](https://g.codefresh.io/account-admin/account-conf/runtime-environments) in Codefreshin your*Account Settings*, in the respective tab.
140138

141139
{% include image.html
142140
lightbox="true"
@@ -147,7 +145,7 @@ Once installation is complete, you should see the cluster of the runner as a new
147145
max-width="60%"
148146
%}
149147

150-
If you have multiple environments available, you can change the defaultone(shown with a thin blue border) by clicking on the 3 dot menu on the right of each environment. The Codefresh runner installer comes withan option`set-default` thatwill automatically setas default the new runtime environment.
148+
If you have multiple environments available, you can change the default (shown with a thin blue border) by clicking on the 3 dot menu on the right of each environment. The Codefresh runner installer comes witha`set-default`optionthatis automatically setby default in the new runtime environment.
151149

152150
You can even override the runtime environment for a specific pipeline by specifying in the respective section in the[pipeline settings]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/).
153151

@@ -185,25 +183,25 @@ In the same manner you can list secrets, config-maps, logs, volumes etc. for the
185183

186184
##Removing the Codefresh runner
187185

188-
You can uninstall the Codefresh runner from your cluster by running
186+
You can uninstall the Codefresh runner from your cluster by running:
189187

190188
```
191189
codefresh runner delete
192190
```
193191

194-
A wizard similar to the installationone, will ask you questions regarding your cluster before finishing with the removal.
192+
A wizard, similar to the installationwizard, will ask you questions regarding your cluster before finishing with the removal.
195193

196-
Like the installation wizard you can pass the following options in advance as command line parameters:
194+
Like the installation wizard, you can pass the following options in advance as command line parameters:
197195

198196
{: .table .table-bordered .table-hover}
199197
| Parameter| Description|
200198
| --------------| ----------------------------|
201-
| name| The name of the agentthat will be created.|
202-
| url| Codefresh system custom url.|
203-
| kube-context-name| Name of the Kubernetes context on which the runner should be installed|
199+
| name| The name of the agentto be created.|
200+
| url|TheCodefresh system custom url.|
201+
| kube-context-name| Name of the Kubernetes context on which the runner should be installed.|
204202
| kube-namespace| Name of the Kubernetes namespace from which the Codefresh agent and runtime will be removed.|
205203
| kube-config-path| Path to kubeconfig file (default is $HOME/.kube/config)|
206-
| verbose| Print logs|
204+
| verbose| Print logs.|
207205

208206
##System requirements
209207

@@ -228,9 +226,9 @@ The following table shows **MINIMUM** resources for each component:
228226
|`dind-volume-provisioner`| 300m| 400Mi| Doesn't need PV| Pod| Yes|
229227
|`dind-lv-monitor`| 300m| 400Mi| Doesn't need PV| DaemonSet| Yes|
230228

231-
Components that are always on consume resources all the time. Components that are not always on only consumeresource when pipelines are running (they are created and destroyed automatically for each pipeline).
229+
Components that are always on consume resources all the time. Components that are not always on only consumeresources when pipelines are running (they are created and destroyed automatically for each pipeline).
232230

233-
Node size and count willentirelydepend on how many pipelines you want to be “ready” for and how many will use “burst” capacity.
231+
Node size and count will depend entirely on how many pipelines you want to be “ready” for and how many will use “burst” capacity.
234232

235233
* Ready (nodes): Lower initialization time and faster build times.
236234
* Burst (nodes): High initialization time and slower build times. (Not recommended)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp