Skip to content

Commit 104bc0e

Browse files
authored
Merge pull request #25472 from daixiang0/patch-1
Update setup-konnectivity.md
2 parents 4b19615 + b445946 commit 104bc0e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

content/en/docs/tasks/extend-kubernetes/setup-konnectivity.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,22 @@ by providing the following flags to the kube-apiserver:
3737
1. Create an egress configuration file such as `admin/konnectivity/egress-selector-configuration.yaml`.
3838
1. Set the `--egress-selector-config-file` flag of the API Server to the path of
3939
your API Server egress configuration file.
40+
1. If you use UDS connection, add volumes config to the kube-apiserver:
41+
```yaml
42+
spec:
43+
containers:
44+
volumeMounts:
45+
- name: konnectivity-uds
46+
mountPath: /etc/kubernetes/konnectivity-server
47+
readOnly: false
48+
volumes:
49+
- name: konnectivity-uds
50+
hostPath:
51+
path: /etc/kubernetes/konnectivity-server
52+
type: DirectoryOrCreate
53+
```
4054
41-
Generate or obtain a certificate and kubeconfig for konnectivity-server.
55+
Generate or obtain a certificate and kubeconfig for konnectivity-server.
4256
For example, you can use the OpenSSL command line tool to issue a X.509 certificate,
4357
using the cluster CA certificate `/etc/kubernetes/pki/ca.crt` from a control-plane host.
4458

0 commit comments

Comments
 (0)