Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
669fb2c8
提交
669fb2c8
编辑于
1 year ago
作者:
Ashraf Khamis
浏览文件
操作
下载
补丁
差异文件
Improve GitLab agent configuration docs
上级
1635b6b6
No related branches found
No related tags found
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
doc/user/workspace/configuration.md
+1
-6
1 个添加, 6 个删除
doc/user/workspace/configuration.md
doc/user/workspace/gitlab_agent_configuration.md
+9
-8
9 个添加, 8 个删除
doc/user/workspace/gitlab_agent_configuration.md
有
10 个添加
和
14 个删除
doc/user/workspace/configuration.md
+
1
−
6
浏览文件 @
669fb2c8
...
...
@@ -30,12 +30,7 @@ which you can customize to meet the specific needs of each project.
that controller accessible over a domain. For example, point
`*.workspaces.example.dev`
and
`workspaces.example.dev`
to the load balancer exposed by the Ingress controller.
-
[
Install `gitlab-workspaces-proxy`
](
https://gitlab.com/gitlab-org/remote-development/gitlab-workspaces-proxy#installation-instructions
)
.
-
[
Install the GitLab agent
](
../clusters/agent/install/index.md
)
.
-
Configure
[
remote development settings for the GitLab agent
](
gitlab_agent_configuration.md
)
.
You can use any agent defined under the root group of your project,
provided that remote development is properly configured for that agent.
-
[
Install
](
../clusters/agent/install/index.md
)
and
[
configure
](
gitlab_agent_configuration.md
)
the GitLab agent.
-
You must have at least the Developer role in the root group.
-
In each project you want to use this feature for, create a
[
devfile
](
index.md#devfile
)
:
1.
On the left sidebar, select
**Search or go to**
and find your project.
...
...
此差异已折叠。
点击以展开。
doc/user/workspace/gitlab_agent_configuration.md
+
9
−
8
浏览文件 @
669fb2c8
...
...
@@ -7,8 +7,9 @@ info: To determine the technical writer assigned to the Stage/Group associated w
# GitLab agent configuration
When you
[
set up a workspace
](
configuration.md#set-up-a-workspace
)
,
you must configure remote development settings for the GitLab agent.
These settings are available in the agent configuration file under
`remote_development`
.
you must configure remote development for the GitLab agent.
The remote development settings are available in the agent
configuration file under
`remote_development`
.
You can use any agent defined under the root group of your project,
provided that remote development is properly configured for that agent.
...
...
@@ -23,7 +24,7 @@ provided that remote development is properly configured for that agent.
|
[
`network_policy`
](
#network_policy
)
| Firewall rules for workspaces |
NOTE:
If a
ny
setting has an invalid value,
all settings cannot be updated
until you fix that value.
If a setting has an invalid value,
it's not possible to update any setting
until you fix that value.
### `enabled`
...
...
@@ -109,12 +110,12 @@ Use this setting to define a list of IP CIDR ranges to allow as egress destinati
Define egress rules when:
-
The GitLab instance is
available
on a private IP.
-
Workspace users must access a cloud resource
available
on a private IP.
-
The GitLab instance is on a private IP
range
.
-
Workspace users must access a cloud resource on a private IP
range
.
Each element of the list defines an
`allow`
attribute with an optional
`except`
attribute.
The
`allow`
attribute
defines an IP
CIDR
range to allow traffic from.
The
`except`
attribute
lists IP
CIDR
ranges to exclude from the
`allow`
range.
`allow`
defines an IP range to allow traffic from.
`except`
lists IP ranges to exclude from the
`allow`
range.
**Example configuration:**
...
...
@@ -132,5 +133,5 @@ remote_development:
In this example, traffic from the workspace is allowed if:
-
The destination IP is any
IP
except
`10.0.0.0/8`
,
`172.16.0.0/12`
, or
`192.168.0.0/16`
.
-
The destination IP is any
range
except
`10.0.0.0/8`
,
`172.16.0.0/12`
, or
`192.168.0.0/16`
.
-
The destination IP is
`172.16.123.1/32`
.
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录