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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
NodeSelector: # dind and engine pods node-selector (--build-node-selector)
cloud.google.com/gke-local-ssd: "true"
...
{% endraw %}
{% endhighlight %}
To configure existing Runner with Local SSDs follow this article:
[How-to: Configuring an existing Runtime Environment with Local SSDs (GKE only)](https://support.codefresh.io/hc/en-us/articles/360016652920-How-to-Configuring-an-existing-Runtime-Environment-with-Local-SSDs-GKE-only-)
##### GCE Disks
If you want to use *GCE Disks*:
*Prerequisite:* volume provisioner (dind-volume-provisioner) should have permissions to create/delete/getof Google disks
*Prerequisites:* volume provisioner (dind-volume-provisioner) should have permissions to create/delete/getGCE disks
There are 3 options to provide cloud credentials on GCE:
* run `dind-volume-provisioner-runner` on node withiam role which is allowed to create/delete/getof Google disks
* create Google Service Account with `ComputeEngine.StorageAdmin`, download its key and pass it tovenona installed with `--set-file=Storage.GooogleServiceAccount=/path/to/google-service-account.json`
* use [Google Workload Identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) to assigniam role to `volume-provisioner-venona` service account
* run `dind-volume-provisioner-runner`podonanode withIAM role which is allowed to create/delete/getGCE disks
* create Google Service Account with `ComputeEngine.StorageAdmin` role, download its keyin JSON formatand pass it to`codefresh runner init` with `--set-file=Storage.GooogleServiceAccount=/path/to/google-service-account.json`
* use [Google Workload Identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) to assignIAM role to `volume-provisioner-runner` service account
Notice that builds will be running in a single availability zone, so you must specify AvailabilityZone parameters.
To configure existing Runner with GCE Disks follow this article:
[How-to: Configuring an existing Runtime Environment with GCE disks](https://support.codefresh.io/hc/en-us/articles/360016652900-How-to-Configuring-an-existing-Runtime-Environment-with-GCE-disks)
#### Using multiple Availability Zones
Currently, to support effective caching with GCE disks, the builds/pods need to be scheduled in a single AZ (this is more related to a GCP limitation than a Codefresh runner issue).
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.