> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 部署相关

## 如何配置 Nginx Ingress 控制器？

这是 Nginx Ingress 控制器的常见配置。你可以根据你的云服务提供商使用其他 ingress 控制器。你可以执行以下命令在 Kubernetes 集群上安装 Nginx Ingress 控制器：

```bash theme={null}
kubectl apply -f ./ingress-nginx-controller-v1.12.1.yaml
```

更新 `values.yaml` 文件并设置 ingress 配置。

> <a href="https://assets-docs.dify.ai/2025/01/e3d53c6c7d979c77d0a1809670fbf211.yaml" download="values.yaml">点击此处</a>下载 `values.yaml` 文件。

```yaml theme={null}
ingress:
  enabled: true
  className: "nginx"
  annotations: {
    # 设置文件上传大小限制
    nginx.ingress.kubernetes.io/proxy-body-size: "10m"
  }
```

完成所有配置后，你可以执行以下命令在 Kubernetes 集群上升级应用程序：

```bash theme={null}
helm upgrade -i dify -f values.yaml dify/dify
```

## 如何访问 Dify 服务？

安装完成后，如果你想访问服务，应该首先配置 ingress。你可以通过以下命令获取 ingress IP：

```bash theme={null}
kubectl get services -o wide -w -n ingress-nginx
```

然后获取 ingress IP 并在本地 `/etc/hosts` 文件中设置域名。

```
4.152.1.216 console.dify.local
4.152.1.216 app.dify.local
4.152.1.216 enterprise.dify.local
```

## 如何访问 Dify 企业仪表板？

在浏览器中打开 URL `enterprise.dify.local`，并使用默认用户名和密码登录。登录后可以更改密码。

* 用户名：[dashboard@dify.ai](mailto:dashboard@dify.ai)
* 密码：difyai123456

### 显示 helm chart 值

要查看图表上可配置的选项，请使用 helm show values：

```bash theme={null}
helm show values dify/dify
```

### 使用 helm template 生成 Kubernetes YAML

请使用以下命令：

```bash theme={null}
helm template dify -f values.yaml dify/dify > dify-k8s-template.yaml
```

## 如何更新 Dify 企业版版本号？

你可以访问 [Dify Enterprise Release](https://langgenius.github.io/dify-helm/#/)查看最新版本号，并使用 Helm 进行更新。为了确保提供更加稳健的服务，企业版的更新频率会稍晚于社区版更新。
