@@ -41,6 +41,23 @@ by providing the following flags to the kube-apiserver:
41
41
--service-account-signing-key-file=/etc/kubernetes/pki/sa.key
42
42
--api-audiences=system:konnectivity-server
43
43
```
44
+ 1. Create an egress configuration file such as `admin/konnectivity/egress-selector-configuration.yaml`.
45
+ 1. Set the `--egress-selector-config-file` flag of the API Server to the path of
46
+ your API Server egress configuration file.
47
+ 1. If you use UDS connection, add volumes config to the kube-apiserver:
48
+ ```yaml
49
+ spec:
50
+ containers:
51
+ volumeMounts:
52
+ - name: konnectivity-uds
53
+ mountPath: /etc/kubernetes/konnectivity-server
54
+ readOnly: false
55
+ volumes:
56
+ - name: konnectivity-uds
57
+ hostPath:
58
+ path: /etc/kubernetes/konnectivity-server
59
+ type: DirectoryOrCreate
60
+ ```
44
61
-->
45
62
你需要配置 API 服务器来使用 Konnectivity 服务,并将网络流量定向到集群节点:
46
63
@@ -55,18 +72,26 @@ by providing the following flags to the kube-apiserver:
55
72
--api-audiences=system:konnectivity-server
56
73
```
57
74
58
- <!--
59
- 1. Create an egress configuration file such as `admin/konnectivity/egress-selector-configuration.yaml`.
60
- 1. Set the `--egress-selector-config-file` flag of the API Server to the path of
61
- your API Server egress configuration file.
62
- -->
63
- {{< codenew file="admin/konnectivity/egress-selector-configuration.yaml" >}}
64
- 2 . 创建一个出口配置文件比如 ` admin/konnectivity/egress-selector-configuration.yaml ` 。
65
- 3 . 将 API 服务器的 ` --egress-selector-config-file ` 参数设置为你的 API 服务器的
75
+ 1 . 创建一个出站流量配置文件,比如 ` admin/konnectivity/egress-selector-configuration.yaml ` 。
76
+ 1 . 将 API 服务器的 ` --egress-selector-config-file ` 参数设置为你的 API 服务器的
66
77
离站流量配置文件路径。
78
+ 1 . 如果你在使用 UDS 连接,须将卷配置添加到 kube-apiserver:
79
+ ``` yaml
80
+ spec :
81
+ containers :
82
+ volumeMounts :
83
+ - name : konnectivity-uds
84
+ mountPath : /etc/kubernetes/konnectivity-server
85
+ readOnly : false
86
+ volumes :
87
+ - name : konnectivity-uds
88
+ hostPath :
89
+ path : /etc/kubernetes/konnectivity-server
90
+ type : DirectoryOrCreate
91
+ ` ` `
67
92
68
93
<!--
69
- Generate or obtain a certificate and kubeconfig for konnectivity-server.
94
+ Generate or obtain a certificate and kubeconfig for konnectivity-server.
70
95
For example, you can use the OpenSSL command line tool to issue a X.509 certificate,
71
96
using the cluster CA certificate ` /etc/kubernetes/pki/ca.crt` from a control-plane host.
72
97
-->
0 commit comments