Skip to content
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
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,26 @@ helm install ai-dashboard charts/ack-ai-dashboard -n kube-ai \
--set 'admin-ui.dashboard.ingress.hosts[0].paths[0]=/' \
--set grafana.adminPassword=<PASSWORD>

# 3. 安装开发控制台
# 3. 安装 Notebook Controller
helm install notebook-controller charts/notebook-controller \
-n notebook-controller-system --create-namespace

# 4. 安装开发控制台(可选)
helm install ai-dev-console charts/ack-ai-dev-console -n kube-ai \
--set 'dev-console.console.ingress.hosts[0].host=<YOUR_DOMAIN>' \
--set 'dev-console.console.ingress.hosts[0].paths[0]=/'
```

详细步骤请参阅 [部署指南](docs/deploy-guide.md)。
详细步骤请分别参阅[运维控制台部署指南](docs/operations-console-deploy-guide.md)和[开发控制台部署指南](docs/development-console-deploy-guide.md)。

## 文档

| 文档 | 说明 |
|------|------|
| [部署指南](docs/deploy-guide.md) | 端到端安装配置(RAM 授权、Secret 创建、Helm 安装、域名配置) |
| [功能使用指南](docs/user-guide.md) | 运维控制台和开发控制台的功能介绍和操作方法 |
| [运维控制台部署指南](docs/operations-console-deploy-guide.md) | 安装运维控制台、Grafana 并配置 Prometheus 数据源 |
| [运维控制台功能使用指南](docs/operations-console-user-guide.md) | 用户、配额、节点和工作负载管理 |
| [开发控制台部署指南](docs/development-console-deploy-guide.md) | 安装开发控制台并配置认证和访问域名 |
| [开发控制台功能使用指南](docs/development-console-user-guide.md) | Notebook、训练任务、模型推理和数据集管理 |
| [运维指南](docs/ops-guide.md) | 升级、扩缩容、故障排查、安全加固、卸载 |

## 项目结构
Expand All @@ -46,7 +52,8 @@ data-on-ack/
├── notebook-controller/ # Notebook CRD Controller
├── charts/ # Helm Charts
│ ├── ack-ai-dashboard/ # 运维控制台 + Grafana
│ └── ack-ai-dev-console/ # 开发控制台 + Notebook Controller
│ ├── ack-ai-dev-console/ # 开发控制台
│ └── notebook-controller/ # 独立 Notebook Controller
└── docs/ # 文档
```

Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions charts/ack-ai-dev-console/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ dependencies:
- name: dev-console
repository: file://./subcharts/dev-console
version: 0.1.0
- name: notebook
repository: file://./subcharts/notebook
version: 0.1.0
18 changes: 0 additions & 18 deletions charts/ack-ai-dev-console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,3 @@ dev-console:
nodeSelector: {}
tolerations: []
affinity: {}

# Notebook Controller
notebook:
replicaCount: 1
image:
repository: registry-cn-hangzhou.ack.aliyuncs.com/acs/notebook-controller
pullPolicy: IfNotPresent
tag: v1.1.0
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
create: true
annotations: {}
name: "notebook-controller-service-account"

labels:
app: notebook-controller
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: notebook
description: A Helm chart for Kubernetes
name: notebook-controller
description: Kubeflow Notebook Controller for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: 1.0.0
appVersion: "1.0.1"
33 changes: 33 additions & 0 deletions charts/notebook-controller/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# notebook-controller

This chart installs the Notebook CRD and the Notebook Controller as a standalone
component. It does not require `ack-ai-dev-console`.

## Install

```bash
helm install notebook-controller ./charts/notebook-controller \
--namespace notebook-controller-system \
--create-namespace
```

## Verify

```bash
kubectl get deployment notebook-controller-deployment \
--namespace notebook-controller-system
kubectl get crd notebooks.kubeflow.org
```

The controller watches `Notebook` resources in all namespaces. Only one release
of this chart should be installed in a cluster because its CRD and ClusterRole
resources are cluster-scoped.

## Uninstall

```bash
helm uninstall notebook-controller --namespace notebook-controller-system
```

Helm does not remove CRDs from a chart's `crds/` directory. Delete the Notebook
CRD separately only when all Notebook resources are no longer needed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "notebook.name" -}}
{{- define "notebook-controller.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

Expand All @@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "notebook.fullname" -}}
{{- define "notebook-controller.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "notebook.chart" -}}
{{- define "notebook-controller.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "notebook.labels" -}}
helm.sh/chart: {{ include "notebook.chart" . }}
{{ include "notebook.selectorLabels" . }}
{{- define "notebook-controller.labels" -}}
helm.sh/chart: {{ include "notebook-controller.chart" . }}
{{ include "notebook-controller.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Expand All @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "notebook.selectorLabels" -}}
app.kubernetes.io/name: {{ include "notebook.name" . }}
{{- define "notebook-controller.selectorLabels" -}}
app.kubernetes.io/name: {{ include "notebook-controller.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "notebook.serviceAccountName" -}}
{{- define "notebook-controller.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "notebook.fullname" .) .Values.serviceAccount.name }}
{{- default (include "notebook-controller.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
Expand Down
54 changes: 54 additions & 0 deletions charts/notebook-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: notebook-controller-deployment
namespace: {{ .Release.Namespace }}
labels:
app: notebook-controller
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: notebook-controller
template:
metadata:
labels:
app: notebook-controller
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "notebook-controller.serviceAccountName" . }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: manager
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
command:
- /manager
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: metrics
containerPort: 8080
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ roleRef:
name: notebook-controller-role
subjects:
- kind: ServiceAccount
name: notebook-controller-service-account
name: {{ include "notebook-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -117,5 +117,5 @@ roleRef:
name: notebook-controller-leader-election-role
subjects:
- kind: ServiceAccount
name: notebook-controller-service-account
namespace: {{ .Release.Namespace }}
name: {{ include "notebook-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ metadata:
app: notebook-controller
spec:
ports:
- port: 8081
- name: metrics
port: 8080
targetPort: metrics
protocol: TCP
selector:
app: notebook-controller

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "notebook.serviceAccountName" . }}
name: {{ include "notebook-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "notebook.labels" . | nindent 4 }}
{{- include "notebook-controller.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
3 changes: 2 additions & 1 deletion docs/404.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ permalink: /404.html
你访问的页面可能已被移动或删除。

- 返回 [首页]({{ '/' | relative_url }})
- 查看 [部署指南]({{ '/deploy-guide.html' | relative_url }})
- 查看[运维控制台部署指南]({{ '/operations-console-deploy-guide.html' | relative_url }})
- 查看[开发控制台部署指南]({{ '/development-console-deploy-guide.html' | relative_url }})
- 浏览 [Ray 最佳实践]({{ '/ray.html' | relative_url }})
4 changes: 2 additions & 2 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
</div>
<nav class="footer-col" aria-label="文档">
<h4>文档</h4>
<a href="{{ '/deploy-guide.html' | relative_url }}">部署指南</a>
<a href="{{ '/user-guide.html' | relative_url }}">功能使用指南</a>
<a href="{{ '/cloud-native-ai-suite.html' | relative_url }}">AI套件控制台</a>
<a href="{{ '/notebook-development.html' | relative_url }}">Notebook开发环境</a>
<a href="{{ '/ops-guide.html' | relative_url }}">运维指南</a>
<a href="{{ '/ray.html' | relative_url }}">Ray 最佳实践</a>
</nav>
Expand Down
8 changes: 4 additions & 4 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</a>
<nav class="header-nav" aria-label="主导航">
<a href="{{ '/' | relative_url }}" {% if page.url == "/" %}aria-current="page"{% endif %}>概览</a>
<a href="{{ '/deploy-guide.html' | relative_url }}" {% if page.url == "/deploy-guide.html" %}aria-current="page"{% endif %}>部署指南</a>
<a href="{{ '/user-guide.html' | relative_url }}" {% if page.url == "/user-guide.html" %}aria-current="page"{% endif %}>功能指南</a>
<a href="{{ '/cloud-native-ai-suite.html' | relative_url }}" {% if page.url == "/cloud-native-ai-suite.html" or page.parent == "AI套件控制台" or page.parent == "运维控制台" or page.parent == "开发控制台" %}aria-current="page"{% endif %}>AI套件控制台</a>
<a href="{{ '/notebook-development.html' | relative_url }}" {% if page.url == "/notebook-development.html" or page.parent == "Notebook开发环境" %}aria-current="page"{% endif %}>Notebook开发环境</a>
<a href="{{ '/ray.html' | relative_url }}" {% if page.url == "/ray.html" %}aria-current="page"{% endif %}>Ray 实践</a>
</nav>
<div class="header-actions">
Expand All @@ -34,8 +34,8 @@
<div class="scroll-progress" aria-hidden="true"><span id="scrollProgress"></span></div>
<nav class="mobile-nav" id="mobileNav" aria-label="移动端导航">
<a href="{{ '/' | relative_url }}">概览</a>
<a href="{{ '/deploy-guide.html' | relative_url }}">部署指南</a>
<a href="{{ '/user-guide.html' | relative_url }}">功能指南</a>
<a href="{{ '/cloud-native-ai-suite.html' | relative_url }}">AI套件控制台</a>
<a href="{{ '/notebook-development.html' | relative_url }}">Notebook开发环境</a>
<a href="{{ '/ray.html' | relative_url }}">Ray 实践</a>
<a href="https://github.com/AliyunContainerService/data-on-ack" target="_blank" rel="noopener">GitHub</a>
</nav>
Expand Down
Loading
Loading