Skip to content

Manage Kubernetes Services

Connect a Kubernetes Service

Info

n2xctl will look for the KUBECONFIG env to be able to connect to your Kubernetes cluster. No other configuration is required.

Warning

Only Account Administrators or Admin Users can manage Kubernetes Services.

You only can connect a Kubernetes Service to your subnet using CLI (n2xctl):

Use the following command to connect a Kubernetes Service to your subnet:

n2xctl k8s svc connect

Note

Before connecting any Kubernetes service of your Kubernetes cluster, a Kubernetes Gateway must be deployed in the cluster. The first time we try to connect a service on a Kubernetes cluster, n2xctl will check for the existence of such a gateway, and if it doesn't exist it will offer us the option to create it. We just have to type Y to the question Want to create one?

Connect a Kubernetes Service

List Kubernetes Services

Info

n2xctl will look for the KUBECONFIG env to be able to connect to your Kubernetes cluster. No other configuration is required.

Warning

Only Account Administrators or Admin Users can manage Kubernetes Services.

You only can list Kubernetes Services using CLI (n2xctl):

Use the following command to list Kubernetes Services:

n2xctl k8s svc list

Info

This command will show you all the Services in your K8s cluster. Services connected to n2x.io subnet will be conveniently highlighted in green for easy identification.

List Kubernetes Services

Disconnect a Kubernetes Service

Info

n2xctl will look for the KUBECONFIG env to be able to connect to your Kubernetes cluster. No other configuration is required.

Warning

Only Account Administrators or Admin Users can manage Kubernetes Services.

You only can disconnect a Kubernetes Service from your subnet using CLI (n2xctl):

Use the following command to disconnect a Kubernetes Service from your subnet:

n2xctl k8s svc disconnect

Disconnect a Kubernetes Service

Remove a Kubernetes Gateway from the Kubernetes cluster

Once all Kubernetes ClusterIP Services have been disconnected from the n2x.io subnet, you can safely remove the Kubernetes Gateway from your cluster.

Info

n2xctl will look for the KUBECONFIG env to be able to connect to your Kubernetes cluster. No other configuration is required.

Warning

Only Account Administrators or Admin Users can remove the Kubernetes Gateways from Kubernetes clusters.

You only can remove a Kubernetes Gateway using CLI (n2xctl):

Use the following command to remove a Kubernetes Gateway from Kubernetes clusters:

n2xctl k8s delete-gw

Remove a Kubernetes Gateway