2020-03-20 22:31:19 +00:00
|
|
|
---
|
2020-04-07 21:09:33 +00:00
|
|
|
title: Set up Konnectivity service
|
2020-03-20 22:31:19 +00:00
|
|
|
content_template: templates/task
|
2020-04-07 21:09:33 +00:00
|
|
|
weight: 70
|
2020-03-20 22:31:19 +00:00
|
|
|
---
|
|
|
|
|
2020-04-07 21:09:33 +00:00
|
|
|
{{% capture overview %}}
|
|
|
|
|
2020-03-20 22:31:19 +00:00
|
|
|
The Konnectivity service provides TCP level proxy for the Master → Cluster
|
|
|
|
communication.
|
|
|
|
|
2020-04-07 21:09:33 +00:00
|
|
|
{{% /capture %}}
|
|
|
|
|
|
|
|
{{% capture prerequisites %}}
|
|
|
|
|
|
|
|
{{< include "task-tutorial-prereqs.md" >}}
|
|
|
|
|
|
|
|
{{% /capture %}}
|
|
|
|
|
|
|
|
{{% capture steps %}}
|
|
|
|
|
|
|
|
## Configure the Konnectivity service
|
2020-03-20 22:31:19 +00:00
|
|
|
|
|
|
|
First, you need to configure the API Server to use the Konnectivity service
|
|
|
|
to direct its network traffic to cluster nodes:
|
2020-04-07 21:09:33 +00:00
|
|
|
|
2020-03-20 22:31:19 +00:00
|
|
|
1. Set the `--egress-selector-config-file` flag of the API Server, it is the
|
|
|
|
path to the API Server egress configuration file.
|
2020-04-07 21:09:33 +00:00
|
|
|
1. At the path, create a configuration file. For example,
|
2020-03-20 22:31:19 +00:00
|
|
|
|
|
|
|
{{< codenew file="admin/konnectivity/egress-selector-configuration.yaml" >}}
|
|
|
|
|
2020-04-07 21:09:33 +00:00
|
|
|
Next, you need to deploy the Konnectivity server and agents.
|
2020-03-20 22:31:19 +00:00
|
|
|
[kubernetes-sigs/apiserver-network-proxy](https://github.com/kubernetes-sigs/apiserver-network-proxy)
|
|
|
|
is a reference implementation.
|
|
|
|
|
2020-04-07 21:09:33 +00:00
|
|
|
Deploy the Konnectivity server on your master node. The provided yaml assumes
|
|
|
|
that the Kubernetes components are deployed as a {{< glossary_tooltip text="static Pod"
|
|
|
|
term_id="static-pod" >}} in your cluster. If not, you can deploy the Konnectivity
|
|
|
|
server as a DaemonSet.
|
2020-03-20 22:31:19 +00:00
|
|
|
|
|
|
|
{{< codenew file="admin/konnectivity/konnectivity-server.yaml" >}}
|
|
|
|
|
|
|
|
Then deploy the Konnectivity agents in your cluster:
|
|
|
|
|
|
|
|
{{< codenew file="admin/konnectivity/konnectivity-agent.yaml" >}}
|
|
|
|
|
|
|
|
Last, if RBAC is enabled in your cluster, create the relevant RBAC rules:
|
|
|
|
|
|
|
|
{{< codenew file="admin/konnectivity/konnectivity-rbac.yaml" >}}
|
2020-04-07 21:09:33 +00:00
|
|
|
|
|
|
|
{{% /capture %}}
|