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

Commit76da2e3

Browse files
committed
Update codefresh-runner.md
1 parentbe5bd57 commit76da2e3

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

‎_docs/administration/codefresh-runner.md‎

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Make sure you have [installed the Codefresh Runner](#codefresh-runner-installati
190190

191191
**How to**
192192
1. Run`kubectl edit deployment runner -n codefresh-runtime` and add the proxy variables:
193-
```
193+
```yaml
194194
spec:
195195
containers:
196196
- env:
@@ -400,6 +400,7 @@ codefresh patch runtime-environment my-eks-cluster/codefresh -f runtime.yaml
400400
kubectl delete pvc -l codefresh-app=dind -n<your_runner_ns>
401401
kubectl delete pv -l codefresh-app=dind -n<your_runner_ns>
402402
```
403+
{:start="7"}
403404
1. Restart the volume provisioner pod.
404405
405406
##### Values YAML for configuration
@@ -1137,17 +1138,16 @@ You need to create three files:
11371138
}
11381139
```
11391140
1140-
1141+
**How to**
11411142
1. Create the`cluster.yaml` as in the example below (`my-eks-cluster.yaml`).
1142-
`my-eks-cluster.yaml`
1143+
`my-eks-cluster.yaml`
11431144
```yaml
11441145
apiVersion: eksctl.io/v1alpha5
11451146
kind: ClusterConfig
11461147
metadata:
11471148
name: my-eks
11481149
region: us-west-2
11491150
version:"1.15"
1150-
11511151
nodeGroups:
11521152
- name: dind
11531153
instanceType: m5.2xlarge
@@ -1239,18 +1239,22 @@ Once the cluster is up and running, install the [cluster autoscaler](https://doc
12391239
12401240
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.
12411241
1242+
{:start="1"}
12421243
1. Deploy the cluster autoscaler:
12431244
```shell
12441245
kubectl apply -f https://raw.githubusercontent.com/kubernetes/autoscaler/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml
12451246
```
1247+
{:start="2"}
12461248
1. Add the`cluster-autoscaler.kubernetes.io/safe-to-evict` annotation:
12471249
```shell
12481250
kubectl -n kube-system annotate deployment.apps/cluster-autoscaler cluster-autoscaler.kubernetes.io/safe-to-evict="false"
12491251
```
1252+
{:start="3"}
12501253
1. Edit the`cluster-autoscaler` container command:
12511254
```shell
12521255
kubectl -n kube-system edit deployment.apps/cluster-autoscaler
12531256
```
1257+
{:start="4"}
12541258
1. Do the following as in the example below:
12551259
* Replace`<YOUR CLUSTER NAME>` with the name of the cluster`cluster.yaml`
12561260
* Add the following options:
@@ -1291,7 +1295,6 @@ https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#h
12911295
$ kubectl config current-context
12921296
my-aws-runner
12931297
```
1294-
12951298
1. Install the Runner with additional options:
12961299
* Specify the zone in which to create your volumes, for example:`--set-value=Storage.AvailabilityZone=us-west-2a`.
12971300
* (Optional) To assign the volume-provisioner to a specific node, for example, a specific node group with an IAM role that can create EBS volumes,`--set-value Storage.VolumeProvisioner.NodeSelector=node-type=addons`.
@@ -1383,7 +1386,7 @@ You have completed installing the Codefresh Runner on an EKS cluster. You can tr
13831386
13841387
### Install Codefresh Runner on Rancher RKE 2.X
13851388
1386-
Installing Codefresh Runner on Rancher RKE 2.X includes these steps:
1389+
Installing Codefresh Runner on Rancher RKE 2.X includes these steps:
13871390
[Step 1: Configure kubelet for Runner StorageClass](#step-1-configure-kubelet-for-runner-storageclass)
13881391
[Step 2: Set kubeconfig user permissions](#step-2-set-kubeconfig-user-permissions)
13891392
[Step 3: Install the Runner](#step-3-install-the-runner)
@@ -1584,7 +1587,7 @@ kubectl edit deploy runner -n codefresh
15841587
**How to**
15851588
15861589
1. If you use AKS with managed [identitiesfor node group](https://docs.microsoft.com/en-us/azure/aks/use-managed-identity), you can run the script below to assign`CodefreshDindVolumeProvisioner` role to AKS node identity:
1587-
```shell
1590+
```
15881591
export ROLE_DEFINITIN_FILE=dind-volume-provisioner-role.json
15891592
export SUBSCRIPTION_ID=$(az account show --query"id"| xargsecho)
15901593
export RESOURCE_GROUP=codefresh-rt1
@@ -1598,11 +1601,11 @@ az role assignment create --assignee $NODE_SERVICE_PRINCIPAL --scope /subscripti
15981601
```
15991602
{:start="2"}
16001603
1. Install Codefresh Runner using one of these options:
1601-
* CLI Wizard:
1602-
```shell
1604+
* CLI Wizard:
1605+
```
16031606
codefresh runner init --set-value Storage.Backend=azuredisk --set Storage.VolumeProvisioner.MountAzureJson=true
16041607
```
1605-
* [values-example.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/venonactl/example/values-example.yaml){:target="\_blank"}:
1608+
* [values-example.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/venonactl/example/values-example.yaml){:target="\_blank"}:
16061609
```yaml
16071610
Storage:
16081611
Backend: azuredisk
@@ -1612,7 +1615,7 @@ Storage:
16121615
```shell
16131616
codefresh runner init --values values-example.yaml
16141617
```
1615-
* Helm chart [values.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/charts/cf-runtime/values.yaml){:target="\_blank"}:
1618+
* Helm chart [values.yaml](https://github.com/codefresh-io/venona/blob/release-1.0/charts/cf-runtime/values.yaml){:target="\_blank"}:
16161619
```yaml
16171620
storage:
16181621
backend: azuredisk
@@ -1622,7 +1625,8 @@ storage:
16221625
volumeProvisioner:
16231626
mountAzureJson: true
16241627
```
1625-
```shell
1628+
1629+
```
16261630
helm install cf-runtime cf-runtime/cf-runtime -f ./generated_values.yaml -f values.yaml --create-namespace --namespace codefresh
16271631
```
16281632

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp