Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deploy): agent host path takes effect with job cache data #860

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions docker/charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,39 @@ helm delete starwhale
## Parameters

### Common parameters
| Name | Description | Default Value|
|------|-------------|--------------|
|`image.registry`| image registry, you can find starwhale docker images in docker.io or ghcr.io. | `ghcr.io` |
|`image.org` | image registry org, [starwhaleai](https://hub.docker.com/u/starwhaleai)(docker.io) or [star-whale](https://github.com/orgs/star-whale)(ghcr.io) or some custom org name in other registry | `star-whale` |
| Name | Description | Default Value |
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| `image.registry` | image registry, you can find starwhale docker images in docker.io or ghcr.io. | `ghcr.io` |
| `image.org` | image registry org, [starwhaleai](https://hub.docker.com/u/starwhaleai)(docker.io) or [star-whale](https://github.com/orgs/star-whale)(ghcr.io) or some custom org name in other registry | `star-whale` |


### Starwhale parameters
| Name | Description | Default Value|
|------|-------------|--------------|
|`controller.taskSplitSize`|task split size| `2` |
|`controller.auth.username`|admin user name| `starwhale` |
|`controller.auth.password`|admin user password| `abcd1234` |
|`storage.agentHostPathRoot`|agent daemonset persistent host-path| `/mnt/data/starwhale` |
|`mirror.conda.enabled`| conda mirror | `true` |
|`mirror.pypi.enabled`| pypi mirror | `true` |
|`ingress.enabled`| enable ingress for starwhale controller | `true` |
|`ingress.ingressClassName`| ingress class name | `nginx` |
|`ingress.host`| starwhale controller domain | `console.pre.intra.starwhale.ai` |
| Name | Description | Default Value |
|-----------------------------|--------------------------------------------|----------------------------------|
| `controller.taskSplitSize` | task split size | `2` |
| `controller.auth.username` | admin user name | `starwhale` |
| `controller.auth.password` | admin user password | `abcd1234` |
| `storage.agentHostPathRoot` | persistent host-path for cache data of job | `/mnt/data/starwhale` |
| `mirror.conda.enabled` | conda mirror | `true` |
| `mirror.pypi.enabled` | pypi mirror | `true` |
| `ingress.enabled` | enable ingress for starwhale controller | `true` |
| `ingress.ingressClassName` | ingress class name | `nginx` |
| `ingress.host` | starwhale controller domain | `console.pre.intra.starwhale.ai` |

### Infra parameters
| Name | Description | Default Value|
|------|-------------|--------------|
|`mysql.enabled`|Deploy a standalone mysql instance with starwhale chart. If set mysql.enabled=true, you should provide a pv for mysql. |`true`|
|`mysql.persistence.storageClass`| mysql pvc storageClass |`local-storage-mysql`|
|`externalMySQL.host`|When mysql.enabled is false, chart will use external mysql. | `localhost` |
|`minio.enabled`|Deploy a standalone minio instance with starwhale chart. If set minio.enabled=true, you should provide a pv for minio.|`true`|
|`minio.persistence.storageClass`| minio pvc storageClass |`local-storage-minio`|
|`externalS3OSS.host`|When minio.enabled is false, chart will use external s3 service. | `localhost` |
| Name | Description | Default Value |
|----------------------------------|------------------------------------------------------------------------------------------------------------------------|-----------------------|
| `mysql.enabled` | Deploy a standalone mysql instance with starwhale chart. If set mysql.enabled=true, you should provide a pv for mysql. | `true` |
| `mysql.persistence.storageClass` | mysql pvc storageClass | `local-storage-mysql` |
| `externalMySQL.host` | When mysql.enabled is false, chart will use external mysql. | `localhost` |
| `minio.enabled` | Deploy a standalone minio instance with starwhale chart. If set minio.enabled=true, you should provide a pv for minio. | `true` |
| `minio.persistence.storageClass` | minio pvc storageClass | `local-storage-minio` |
| `externalS3OSS.host` | When minio.enabled is false, chart will use external s3 service. | `localhost` |

### minikube parameters
| Name | Description | Default Value|
|------|-------------|--------------|
|`minikube.enabled`|minikube mode for all-in-one test.| `false` |
| Name | Description | Default Value |
|--------------------|------------------------------------|---------------|
| `minikube.enabled` | minikube mode for all-in-one test. | `false` |

In minikube mode, you can easy to build an all-in-one starwhale. Run command example:

Expand All @@ -81,4 +81,4 @@ helm upgrade --install starwhale starwhale/starwhale --namespace starwhale --cre
## Community
- Report a bug or feature request, use [Github Issues](https://github.com/star-whale/starwhale/issues/new/choose).
- Realtime Support, please join us on [Slack](https://join.slack.com/t/starwhale/shared_invite/zt-19b6cwnyo-BxMrZYWKj2J~kly1c32oEA).
- Welcome for your pull request, [Github Repo](https://github.com/star-whale/starwhale).
- Welcome for your pull request, [Github Repo](https://github.com/star-whale/starwhale).
2 changes: 2 additions & 0 deletions docker/charts/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ spec:
fieldPath: status.hostIP
- name: SW_K8S_NAME_SPACE
value: {{ .Release.Namespace }}
- name: SW_K8S_HOST_PATH_FOR_CACHE
value: {{ .Values.storage.agentHostPathRoot }}/job
{{- if .Values.minio.enabled }}
- name: SW_STORAGE_ENDPOINT
value: "http://{{ .Release.Name }}-minio:{{ .Values.minio.containerPorts.api }}"
Expand Down
52 changes: 26 additions & 26 deletions docs/docs/cloud/helm-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,41 +43,41 @@ helm delete starwhale

### Common parameters

| Name | Description | Default Value|
|------|-------------|--------------|
|`image.registry`| image registry, you can find Starwhale docker images in docker.io or ghcr.io. | `ghcr.io` |
|`image.org` | image registry org, [starwhaleai](https://hub.docker.com/u/starwhaleai)(docker.io) or [star-whale](https://github.com/orgs/star-whale)(ghcr.io) or some custom org name in other registries | `star-whale` |
| Name | Description | Default Value |
|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| `image.registry` | image registry, you can find Starwhale docker images in docker.io or ghcr.io. | `ghcr.io` |
| `image.org` | image registry org, [starwhaleai](https://hub.docker.com/u/starwhaleai)(docker.io) or [star-whale](https://github.com/orgs/star-whale)(ghcr.io) or some custom org name in other registries | `star-whale` |

### Starwhale parameters

| Name | Description | Default Value|
|------|-------------|--------------|
|`controller.taskSplitSize`|task split size| `2` |
|`controller.auth.username`|admin user name| `starwhale` |
|`controller.auth.password`|admin user password| `abcd1234` |
|`storage.agentHostPathRoot`|agent daemonset persistent host-path| `/mnt/data/starwhale` |
|`mirror.conda.enabled`| conda mirror | `true` |
|`mirror.pypi.enabled`| pypi mirror | `true` |
|`ingress.enabled`| enable ingress for starwhale controller | `true` |
|`ingress.ingressClassName`| ingress class name | `nginx` |
|`ingress.host`| starwhale controller domain | `console.pre.intra.starwhale.ai` |
| Name | Description | Default Value |
|-----------------------------|--------------------------------------------|----------------------------------|
| `controller.taskSplitSize` | task split size | `2` |
| `controller.auth.username` | admin user name | `starwhale` |
| `controller.auth.password` | admin user password | `abcd1234` |
| `storage.agentHostPathRoot` | persistent host-path for cache data of job | `/mnt/data/starwhale` |
| `mirror.conda.enabled` | conda mirror | `true` |
| `mirror.pypi.enabled` | pypi mirror | `true` |
| `ingress.enabled` | enable ingress for starwhale controller | `true` |
| `ingress.ingressClassName` | ingress class name | `nginx` |
| `ingress.host` | starwhale controller domain | `console.pre.intra.starwhale.ai` |

### Infra parameters

| Name | Description | Default Value|
|------|-------------|--------------|
|`mysql.enabled`|Deploy a standalone mysql instance with starwhale chart. If set mysql.enabled=true, you should provide a pv for mysql. |`true`|
|`mysql.persistence.storageClass`| mysql pvc storageClass |`local-storage-mysql`|
|`externalMySQL.host`|When mysql.enabled is false, chart will use external mysql. | `localhost` |
|`minio.enabled`|Deploy a standalone minio instance with starwhale chart. If set minio.enabled=true, you should provide a pv for minio.|`true`|
|`minio.persistence.storageClass`| minio pvc storageClass |`local-storage-minio`|
|`externalS3OSS.host`|When minio.enabled is false, chart will use external s3 service. | `localhost` |
| Name | Description | Default Value |
|----------------------------------|------------------------------------------------------------------------------------------------------------------------|-----------------------|
| `mysql.enabled` | Deploy a standalone mysql instance with starwhale chart. If set mysql.enabled=true, you should provide a pv for mysql. | `true` |
| `mysql.persistence.storageClass` | mysql pvc storageClass | `local-storage-mysql` |
| `externalMySQL.host` | When mysql.enabled is false, chart will use external mysql. | `localhost` |
| `minio.enabled` | Deploy a standalone minio instance with starwhale chart. If set minio.enabled=true, you should provide a pv for minio. | `true` |
| `minio.persistence.storageClass` | minio pvc storageClass | `local-storage-minio` |
| `externalS3OSS.host` | When minio.enabled is false, chart will use external s3 service. | `localhost` |

### minikube parameters

| Name | Description | Default Value|
|------|-------------|--------------|
|`minikube.enabled`|minikube mode for the all-in-one test.| `false` |
| Name | Description | Default Value |
|--------------------|----------------------------------------|---------------|
| `minikube.enabled` | minikube mode for the all-in-one test. | `false` |

In minikube mode, you can easy to build an all-in-one starwhale. Run command example:

Expand Down