|
1 | 1 | ## Codefresh Runner
|
2 | 2 |
|
3 |
| - |
| 3 | + |
4 | 4 |
|
5 | 5 | Helm chart for deploying [Codefresh Runner](https://codefresh.io/docs/docs/installation/codefresh-runner/) to Kubernetes.
|
6 | 6 |
|
@@ -715,14 +715,48 @@ volumeProvisioner:
|
715 | 715 | ### Rootless DinD
|
716 | 716 |
|
717 | 717 | DinD pod runs a `priviliged` container with **rootfull** docker.
|
718 |
| -To run the docker daemon as non-root user (**rootless** mode), change dind image tag: |
719 | 718 |
|
720 |
| -`values.yaml` |
| 719 | +To run the docker daemon as non-root user (**rootless** mode), refer to `values-rootless.yaml`: |
| 720 | + |
721 | 721 | ```yaml
|
| 722 | +volumeProvisioner: |
| 723 | + env: |
| 724 | + IS_ROOTLESS: true |
| 725 | + # -- Only if local volumes are used as backend storage (ignored for ebs/ebs-csi disks) |
| 726 | + dind-lv-monitor: |
| 727 | + image: |
| 728 | + tag: 1.30.0-rootless |
| 729 | + digest: sha256:712e549e6e843b04684647f17e0973f8047e0d60e6e8b38a693ea64dc75b0479 |
| 730 | + containerSecurityContext: |
| 731 | + runAsUser: 1000 |
| 732 | + podSecurityContext: |
| 733 | + fsGroup: 1000 |
| 734 | + # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods |
| 735 | + fsGroupChangePolicy: "OnRootMismatch" |
| 736 | + # -- Enable initContainer to run chmod for /var/lib/codefresh/dind-volumes on host nodes |
| 737 | + volumePermissions: |
| 738 | + enabled: false |
| 739 | +
|
722 | 740 | runtime:
|
723 | 741 | dind:
|
724 | 742 | image:
|
725 |
| - tag: rootless |
| 743 | + tag: 26.1.4-1.28.10-rootless |
| 744 | + digest: sha256:59dfc004eb22a8f09c8a3d585271a055af9df4591ab815bca418c24a2077f5c8 |
| 745 | + userVolumeMounts: |
| 746 | + dind: |
| 747 | + name: dind |
| 748 | + mountPath: /home/rootless/.local/share/docker |
| 749 | + containerSecurityContext: |
| 750 | + privileged: true |
| 751 | + runAsUser: 1000 |
| 752 | + podSecurityContext: |
| 753 | + fsGroup: 1000 |
| 754 | + # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods |
| 755 | + fsGroupChangePolicy: "OnRootMismatch" |
| 756 | + # -- Enable initContainer to run chmod for /home/rootless in DinD pod |
| 757 | + # !!! Will slow down dind pod startup |
| 758 | + volumePermissions: |
| 759 | + enabled: true |
726 | 760 | ```
|
727 | 761 |
|
728 | 762 | ### ARM
|
@@ -1143,13 +1177,15 @@ Go to [https://<YOUR_ONPREM_DOMAIN_HERE>/admin/runtime-environments/system](http
|
1143 | 1177 | | runtime.accounts | list | `[]` | (for On-Premise only) Assign accounts to runtime (list of account ids) |
|
1144 | 1178 | | runtime.agent | bool | `true` | (for On-Premise only) Enable agent |
|
1145 | 1179 | | runtime.description | string | `""` | Runtime description |
|
1146 |
| -| runtime.dind | object | `{"affinity":{},"env":{"DOCKER_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE":true},"image":{"digest":"sha256:ccaf26ab24db0e00760beba79ce1810a12aef5be296f538ceab416af9ec481f7","pullPolicy":"IfNotPresent","registry":"quay.io","repository":"codefresh/dind","tag":"26.1.4-1.28.7"},"nodeSelector":{},"podAnnotations":{},"podLabels":{},"pvcs":{"dind":{"annotations":{},"name":"dind","reuseVolumeSelector":"codefresh-app,io.codefresh.accountName","reuseVolumeSortOrder":"pipeline_id","storageClassName":"{{ include \"dind-volume-provisioner.storageClassName\" . }}","volumeSize":"16Gi"}},"resources":{"limits":{"cpu":"400m","memory":"800Mi"},"requests":null},"schedulerName":"","serviceAccount":"codefresh-engine","terminationGracePeriodSeconds":30,"tolerations":[],"userAccess":true,"userVolumeMounts":{},"userVolumes":{}}` | Parameters for DinD (docker-in-docker) pod (aka "runtime" pod). | |
| 1180 | +| runtime.dind | object | `{"affinity":{},"containerSecurityContext":{},"env":{"DOCKER_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE":true},"image":{"digest":"sha256:ccaf26ab24db0e00760beba79ce1810a12aef5be296f538ceab416af9ec481f7","pullPolicy":"IfNotPresent","registry":"quay.io","repository":"codefresh/dind","tag":"26.1.4-1.28.7"},"nodeSelector":{},"podAnnotations":{},"podLabels":{},"podSecurityContext":{},"pvcs":{"dind":{"annotations":{},"name":"dind","reuseVolumeSelector":"codefresh-app,io.codefresh.accountName","reuseVolumeSortOrder":"pipeline_id","storageClassName":"{{ include \"dind-volume-provisioner.storageClassName\" . }}","volumeSize":"16Gi"}},"resources":{"limits":{"cpu":"400m","memory":"800Mi"},"requests":null},"schedulerName":"","serviceAccount":"codefresh-engine","terminationGracePeriodSeconds":30,"tolerations":[],"userAccess":true,"userVolumeMounts":{},"userVolumes":{},"volumePermissions":{"enabled":false,"image":{"digest":"sha256:2995c82e8e723d9a5c8585cb8e901d1c50e3c2759031027d3bff577449435157","registry":"docker.io","repository":"alpine","tag":3.18},"resources":{},"securityContext":{"runAsUser":0}}}` | Parameters for DinD (docker-in-docker) pod (aka "runtime" pod). | |
1147 | 1181 | | runtime.dind.affinity | object | `{}` | Set affinity |
|
| 1182 | +| runtime.dind.containerSecurityContext | object | `{}` | Set container security context. | |
1148 | 1183 | | runtime.dind.env | object | `{"DOCKER_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE":true}` | Set additional env vars. |
|
1149 | 1184 | | runtime.dind.image | object | `{"digest":"sha256:ccaf26ab24db0e00760beba79ce1810a12aef5be296f538ceab416af9ec481f7","pullPolicy":"IfNotPresent","registry":"quay.io","repository":"codefresh/dind","tag":"26.1.4-1.28.7"}` | Set dind image. |
|
1150 | 1185 | | runtime.dind.nodeSelector | object | `{}` | Set node selector. |
|
1151 | 1186 | | runtime.dind.podAnnotations | object | `{}` | Set pod annotations. |
|
1152 | 1187 | | runtime.dind.podLabels | object | `{}` | Set pod labels. |
|
| 1188 | +| runtime.dind.podSecurityContext | object | `{}` | Set security context for the pod. | |
1153 | 1189 | | runtime.dind.pvcs | object | `{"dind":{"annotations":{},"name":"dind","reuseVolumeSelector":"codefresh-app,io.codefresh.accountName","reuseVolumeSortOrder":"pipeline_id","storageClassName":"{{ include \"dind-volume-provisioner.storageClassName\" . }}","volumeSize":"16Gi"}}` | PV claim spec parametes. |
|
1154 | 1190 | | runtime.dind.pvcs.dind | object | `{"annotations":{},"name":"dind","reuseVolumeSelector":"codefresh-app,io.codefresh.accountName","reuseVolumeSortOrder":"pipeline_id","storageClassName":"{{ include \"dind-volume-provisioner.storageClassName\" . }}","volumeSize":"16Gi"}` | Default dind PVC parameters |
|
1155 | 1191 | | runtime.dind.pvcs.dind.annotations | object | `{}` | PV annotations. |
|
@@ -1234,7 +1270,7 @@ Go to [https://<YOUR_ONPREM_DOMAIN_HERE>/admin/runtime-environments/system](http
|
1234 | 1270 | | volumeProvisioner.dind-lv-monitor | object | See below | `dind-lv-monitor` DaemonSet parameters (local volumes cleaner) |
|
1235 | 1271 | | volumeProvisioner.enabled | bool | `true` | Enable volume-provisioner |
|
1236 | 1272 | | volumeProvisioner.env | object | `{}` | Add additional env vars |
|
1237 |
| -| volumeProvisioner.image | object | `{"digest":"sha256:c036ad717391debdf43f8da337b81b5df0e79de274d2d9af1425c675b0296dda","registry":"quay.io","repository":"codefresh/dind-volume-provisioner","tag":"1.35.0"}` | Set image | |
| 1273 | +| volumeProvisioner.image | object | `{"digest":"sha256:ede6f663c912a08b7d335b5ec5518ccc266b27c431d0854d22971005992adc5d","registry":"quay.io","repository":"codefresh/dind-volume-provisioner","tag":"1.35.2"}` | Set image | |
1238 | 1274 | | volumeProvisioner.nodeSelector | object | `{}` | Set node selector |
|
1239 | 1275 | | volumeProvisioner.podAnnotations | object | `{}` | Set pod annotations |
|
1240 | 1276 | | volumeProvisioner.podSecurityContext | object | See below | Set security context for the pod |
|
|
0 commit comments