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

Commita738935

Browse files
committed
Update codefresh-runner.md
1 parent87bb714 commita738935

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

‎_docs/administration/codefresh-runner.md‎

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,14 @@ codefresh get runtime-environments
349349
```shell
350350
codefresh get runtime-environments my-eks-cluster/codefresh -o yaml> runtime.yaml
351351
```
352+
352353
**Step 4:** Modify the YAML:
353354
* In`dockerDaemonScheduler.cluster`, add`nodeSelector: topology.kubernetes.io/zone:<your_az_here>`.
354355
> Make sure you define the same AZ you selected for Runtime Configuration.
355356
* Modify`pvcs.dind` to use the Storage Class you created above (`dind-ebs`).
356357
357358
Here is an example of the`runtime.yaml` including the required updates:
359+
358360
```yaml
359361
version: 1
360362
metadata:
@@ -390,11 +392,15 @@ extends:
390392
description:'...'
391393
accountId: 5f048d85eb107d52b16c53ea
392394
```
395+
393396
**Step 5:** Update your runtime environment with the [patch command](https://codefresh-io.github.io/cli/operate-on-resources/patch/):
397+
394398
```shell
395399
codefresh patch runtime-environment my-eks-cluster/codefresh -f runtime.yaml
396400
```
401+
397402
**Step 6:** If necessary, delete all existing PV (Persistent Volume) and PVC (Persistent Volume Claim ) objects that remain from the default local provisioner:
403+
398404
```
399405
kubectl delete pvc -l codefresh-app=dind -n<your_runner_ns>
400406
kubectl delete pv -l codefresh-app=dind -n<your_runner_ns>
@@ -1232,18 +1238,20 @@ Once the cluster is up and running, install the [cluster autoscaler](https://doc
12321238
12331239
Because we used IAM AddonPolicies`"autoScaler: true"` in the`cluster.yaml` file, everything is done automatically, and there is no need to create a separate IAM policy or add Auto Scaling group tags.
12341240
1235-
{:start="1"}
1236-
8. Deploy the cluster autoscaler:
1241+
1. Deploy the cluster autoscaler:
1242+
12371243
```shell
12381244
kubectl apply -f https://raw.githubusercontent.com/kubernetes/autoscaler/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml
12391245
```
12401246
{:start="2"}
12411247
1. Add the`cluster-autoscaler.kubernetes.io/safe-to-evict` annotation:
1248+
12421249
```shell
12431250
kubectl -n kube-system annotate deployment.apps/cluster-autoscaler cluster-autoscaler.kubernetes.io/safe-to-evict="false"
12441251
```
12451252
{:start="3"}
12461253
1. Edit the`cluster-autoscaler` container command:
1254+
12471255
```shell
12481256
kubectl -n kube-system edit deployment.apps/cluster-autoscaler
12491257
```
@@ -1269,8 +1277,9 @@ spec:
12691277
- --skip-nodes-with-system-pods=false
12701278
```
12711279
{:start="5"}
1272-
1. Set the autoscaler version:
1280+
1. Set the autoscaler version:
12731281
If the version of the EKS cluster 1.15, the corresponding autoscaler version according to [https://github.com/kubernetes/autoscaler/releases](https://github.com/kubernetes/autoscaler/releases){:target="\_blank"} is 1.15.6.
1282+
12741283
```shell
12751284
kubectl -n kube-systemset image deployment.apps/cluster-autoscaler cluster-autoscaler=us.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:v1.15.6
12761285
```
@@ -1284,7 +1293,10 @@ https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#h
12841293
12851294
#### Step 4: Add an EKS cluster as Runner to the Codefresh platform with EBS support
12861295
1296+
**How to**
1297+
12871298
1. Make sure target the correct cluster:
1299+
12881300
```shell
12891301
$ kubectl config current-context
12901302
my-aws-runner
@@ -1309,13 +1321,16 @@ codefresh runner init \
13091321
--set-value=Storage.KmsKeyId=<key id>
13101322
```
13111323
For descriptions of the other options, run`codefresh runner init --help` ([global parameter table](#customizing-the-wizard-installation)).
1324+
13121325
{:start="3"}
13131326
1. When the Wizard completes the installation, modify the runtime environment of`my-aws-runner` to specify the necessary toleration, nodeSelector and disk size:
1314-
* Run:
1327+
* Run:
1328+
13151329
```shell
13161330
codefresh get re --limit=100 my-aws-runner/cf -o yaml> my-runtime.yml
13171331
```
13181332
* Modify the file`my-runtime.yml` as shown below:
1333+
13191334
```yaml
13201335
version: null
13211336
metadata:
@@ -1368,6 +1383,7 @@ extends:
13681383
description:'Runtime environment configure to cluster: my-aws-runner and namespace: cf'
13691384
accountId: 5cb563d0506083262ba1f327
13701385
```
1386+
13711387
{:start="4"}
13721388
1. Apply changes.
13731389
```shell
@@ -1542,12 +1558,14 @@ Once complete, you can go to the Codefresh UI and run a pipeline on the new runt
15421558
Depending on your Rancher configuration, you may need to allow insecure HTTPS/TLS connections, by adding an environment variable to the Runner deployment.
15431559
15441560
* Edit the Runner deployment:
1545-
The example below assumes that you installed the Runner in the`codefresh` namespace.
1561+
The example below assumes that you installed the Runner in the`codefresh` namespace.
1562+
15461563
```shell
15471564
kubectl edit deploy runner -n codefresh
15481565
```
15491566
1550-
* In the editor, add this environment variable below`spec.containers.env[]`:
1567+
* In the editor, add this environment variable below`spec.containers.env[]`:
1568+
15511569
```yaml
15521570
- name: NODE_TLS_REJECT_UNAUTHORIZED
15531571
value:"0"
@@ -1602,6 +1620,7 @@ az role assignment create --assignee $NODE_SERVICE_PRINCIPAL --scope /subscripti
16021620
codefresh runner init --set-value Storage.Backend=azuredisk --set Storage.VolumeProvisioner.MountAzureJson=true
16031621
```
16041622
* [values-example.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/venonactl/example/values-example.yaml){:target="\_blank"}:
1623+
16051624
```
16061625
Storage:
16071626
Backend: azuredisk
@@ -1611,7 +1630,8 @@ Storage:
16111630
```shell
16121631
codefresh runner init --values values-example.yaml
16131632
```
1614-
* Helm chart [values.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/charts/cf-runtime/values.yaml){:target="\_blank"}:
1633+
* Helm chart [values.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/charts/cf-runtime/values.yaml){:target="\_blank"}:
1634+
16151635
```
16161636
storage:
16171637
backend: azuredisk

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp