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

Commitc6515d7

Browse files
Merge branch 'master' ofhttps://github.com/codefresh-io/docs.codefresh.io into ftp-scp-examples
2 parents43f80ed +4876c1c commitc6515d7

File tree

7 files changed

+109
-19
lines changed

7 files changed

+109
-19
lines changed

‎_data/nav.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
-title:"Other Registries"
289289
url:"/other-registries"
290290

291-
-title:"Quality Assurance"
291+
-title:"Testing"
292292
url:"/testing"
293293
pages:
294294
-title:"Unit testing"

‎_docs/deploy-your-containers/microsoft-azure.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ For any other Azure deployment you can use the [Azure CLI from a Docker image](h
9090
image: mcr.microsoft.com/azure-cli
9191
commands:
9292
- az vm create --resource-group TutorialResources --name TutorialVM1 --image UbuntuLTS --generate-ssh-keys
93-
environment:
94-
- KUBECONTEXT=my-cluster-name
95-
- KUBERNETES_NAMESPACE=my-namespace
9693
{% endraw %}
9794
{% endhighlight %}
9895

‎_docs/enterprise/codefresh-runner.md‎

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,40 @@ If you are installing Codefresh runner on the Kubernetes cluster on [GKE](https:
184184

185185
```
186186
kubectl create clusterrolebinding NAME --clusterrole cluster-admin --user <YOUR_USER>
187+
188+
```
189+
190+
###Docker cache support for GKE
191+
192+
If you want to use*LocalSSD* in GKE:
193+
194+
*Prerequisite:*[GKE cluster with local SSD](https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/local-ssd)
195+
196+
*Install runner using GKE Local SSD:*
197+
```
198+
venonactl install [options] --set-value=Storage.LocalVolumeParentDir=/mnt/disks/ssd0/codefresh-volumes \
199+
--build-node-selector=cloud.google.com/gke-local-ssd=true
200+
```
201+
202+
If you want to use*GCE Disks*:
203+
204+
*Prerequisite:* volume provisioner (dind-volume-provisioner) should have permissions to create/delete/get of Google disks
205+
206+
There are 3 options to provide cloud credentials on GCE:
207+
208+
* run venona dind-volume-provisioniner on node with iam role which is allowed to create/delete/get of Google disks
209+
* create Google Service Account with`ComputeEngine.StorageAdmin`, download its key and pass it to venona installed with`--set-file=Storage.GooogleServiceAccount=/path/to/google-service-account.json`
210+
* use[Google Workload Identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) to assign iam role to`volume-provisioner-venona` service account
211+
212+
Notice that builds will be running in a single availability zone, so you must specify AvailabilityZone parameters.
213+
214+
Install Runner using GKE Disks:
215+
216+
```
217+
venonactl install [options] --set-value=Storage.Backend=gcedisk \
218+
--set-value=Storage.AvailabilityZone=us-central1-a \
219+
--build-node-selector=failure-domain.beta.kubernetes.io/zone=us-central1-a \
220+
[--set-file=Storage.GoogleServiceAccount=/path/to/google-service-account.json]
187221
```
188222

189223
###Installing on AWS
@@ -391,6 +425,72 @@ Here is a list of the resources that are created during a Runner installation:
391425
*`cluster-role.dind-volume-provisioner.re.yaml` Defines all the permission needed for the controller to operate correctly.
392426
*`cluster-role-binding.dind-volume-provisioner.yaml` - Binds the ClusterRole to`service-account.dind-volume-provisioner.re.yaml`.
393427

428+
##Codefresh Runner Preview release
429+
430+
We are now preparing the next version of Codefresh runner with two major changes:
431+
432+
* Installation happens from the[Codefresh CLI](https://codefresh-io.github.io/cli/) from now on. No need for a separate installer any more
433+
* You can use a single agent to manage multiple installations of the runner (even from other Kubernetes clusters)
434+
435+
>This release is only offered as a preview. Do not use it for production deployments yet.
436+
437+
First follow the[prerequisites](#prerequisites) and make sure that the version of Codefresh CLI is at least 0.45.0
438+
439+
Then to install the runner on a single cluster with both the runtime and the agent:
440+
441+
```
442+
kubectl create namespace codefresh
443+
codefresh install agent --kube-namespace codefresh --install-runtime
444+
445+
```
446+
447+
You can then follow the instruction for[using the runner](#using-the-codefresh-runner).
448+
449+
###Installing multiple runtimes with a single agent
450+
451+
It is also possible, for advanced users to install a single agent that can manage multiple runtime environments.
452+
453+
>NOTE: Please make sure that the cluster where the agent is installed has network access to the other clusters of the runtimes
454+
455+
```
456+
# 1. Create namespace for the agent:
457+
kubectl create namespace codefresh-agent
458+
459+
# 2. Install the agent on the namespace ( give your agent a unique name as $NAME):
460+
# Note down the token and use it in the second command.
461+
codefresh create agent $NAME
462+
codefresh install agent --token $TOKEN --kube-namespace codefresh-agent
463+
codefresh get agents
464+
465+
# 3. Create namespace for the first runtime:
466+
kubectl create namespace codefresh-runtime-1
467+
468+
# 4. Install the first runtime on the namespace
469+
# 5. the runtime name is printed
470+
codefresh install runtime --kube-namespace codefresh-runtime-1
471+
472+
# 6. Attach the first runtime to agent:
473+
codefresh attach runtime --agent-name $AGENT_NAME --agent-kube-namespace codefresh-agent --runtime-name $RUNTIME_NAME --kube-namespace codefresh-runtime-1
474+
475+
# 7. Restart the venona pod in namespace `codefresh-agent`
476+
kubectl delete pods $VENONA_POD
477+
478+
# 8. Create namespace for the second runtime
479+
kubectl create namespace codefresh-runtime-2
480+
481+
# 9. Install the second runtime on the namespace
482+
codefresh install runtime --kube-namespace codefresh-runtime-2
483+
484+
# 10. Attach the second runtime to agent and restart the Venoa pod automatically
485+
codefresh attach runtime --agent-name $AGENT_NAME --agent-kube-namespace codefresh-agent --runtime-name $RUNTIME_NAME --runtime-kube-namespace codefresh-runtime-1 --restart-agent
486+
```
487+
488+
###Migrating to the new Codefresh runner version
489+
490+
Migrating to the new Codefresh runner version is not happening automatically. You need to initiate the migration yourself using our[migration script](https://github.com/codefresh-io/venona/blob/release-1.0/scripts/migration.sh)
491+
492+
>This release is only offered as a preview. Do not use it for production deployments yet.
493+
394494

395495

396496
##Using the Codefresh Runner

‎_docs/getting-started/on-demand-environments.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ these on demand environments as production ones. They were never designed that w
9595

9696
If the environment is not functioning correctly for your own application, make sure that the port exposed by Codefresh in the*Launch settings* is the one that is actually used in your application as an HTTP endpoint.
9797

98-
To find your existing on-demand environments, click*Docker Swarm*`->`*Environments* on the left part of the screen. You will get a list of your active environments. You can see details such as:
98+
To find your existing on-demand environments, click*Compositions*`->`*Running Compositions* on the left part of the screen. You will get a list of your active environments. You can see details such as:
9999

100100
* Which branch is this environment from
101101
* Which Git commit represents this environment

‎_docs/learn-by-example/ruby.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ caption="Launching a demo environment"
145145
max-width="50%"
146146
%}
147147

148-
A new build will start. Once it is complete your new environment will be created. You can inspect it by clicking in the*Docker Swarm* menu on the left sidebar and then clicking*Environments*.
148+
A new build will start. Once it is complete your new environment will be created. You can inspect it by clicking in the*Compositions* menu on the left sidebar and then clicking*Running Compositions*.
149149

150150
{% include image.html
151151
lightbox="true"

‎_docs/testing/automatic-preview-environments.md‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,13 @@ launch_composition_step:
3939
3. Build your service with Codefresh
4040

4141
{:start="4"}
42-
4.Go totheenvironment page
42+
4.Click on*Compositions* ontheleft sidebar and then choose the*Running Compositions* tab.
4343

44-
{% include image.html
45-
lightbox="true"
46-
file="/images/a4054be-Screen_Shot_2017-01-19_at_09.27.53.png"
47-
url="/images/a4054be-Screen_Shot_2017-01-19_at_09.27.53.png"
48-
alt="Screen Shot 2017-01-19 at 09.27.53.png"
49-
max-width="40%"
50-
%}
5144

5245
{:start="5"}
53-
5. Youcan see the new environment on this page
46+
5. Youwill see the new preview environment on this page
5447

55-
##Launching environment only on one branch
48+
##Launchinganenvironment only on one branch
5649

5750
There is a limit to the number environments you can run concurrently. That's why it's a good practice to launch the the composition only on certain condition. Usually the most relevant condition is the branch, since you probably want your environment to be updated by you main branch.
5851

‎_docs/testing/create-composition.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ toc: true
2020
Compositions can be launched as part of a unit test step, integration test step or for running an image for manual testing. You can create compositions from scratch or import an existing`docker-compose.yml` file.
2121

2222
##1. Add a composition
23-
From the left sidebarexpand the*Docker Swarm* menu andclick the**Compositions** sub menu. Then click the**ADD COMPOSITION** button.
23+
From the left sidebar clickonthe*Compositions* menu. Then click the**ADD COMPOSITION** button.
2424

2525
{% include
2626
image.html
@@ -218,7 +218,7 @@ Once you are ready click the small "rocket" button to launch your composition. T
218218
test environment in your Codefresh account that you can use to inspect your application.
219219

220220
{:start="1"}
221-
1. From the left sidebarexpand the*Docker Swarm* menu andclick the**Compositions** sub menu. Then select a composition.
221+
1. From the left sidebar clickonthe*Compositions* menu. Then select a composition.
222222

223223
{% include
224224
image.html
@@ -256,7 +256,7 @@ max-width="70%"
256256

257257
##Sharing the environment URL
258258

259-
After you successfully spin up a composition, click the**Environments**view iconin the left pane, to viewthe record for the running environment and all containers for the environment.
259+
After you successfully spin up a composition, click the**Running compositions**tab from the*Compositions* itemin the left pane, to viewa record for the running environment and all containers for the environment.
260260

261261
{% include
262262
image.html

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp