Installing Bolt Kubectl Plugin
The Bolt kubectl plugin
binary is present as part of the ZIP file downloaded from the DataCore Support Portal.
Installation
Add the downloaded Bolt kubectl plugin
under $PATH.
To verify the installation, execute:
Sample Output
Kubectl Plugin (kubectl-bolt) (debug) version 1.0.0, revision 62308a82dfe0 (v1.0.1)
Accessing the plugin commands from outside the cluster
To access the Bolt kubectl plugin
commands from outside the cluster, expose the following services:
Service Type | NodePort | Kubernetes Service |
---|---|---|
api-rest | 30011 | api-rest |
etcd | 31379 | etcd |
loki | 31001 | loki |
Use one of the following methods to expose the services:
Method 1:
If the nodes of the cluster are publicly exposed, add firewall rules to allow traffic only on the above ports.
Method 2:
If the nodes of the cluster are not exposed publicly, deploy the ingress controller & service mapping to the above services. This will allow access from outside the cluster.
Method 3:
The services can also be exposed using kubectl port-forwarding. This will redirect the traffic from a local machine to a specific service running inside the cluster.
-
To forward traffic from the local system to REST service, execute:
Copykubectl port-forward service/rest 8081:8081 -n <bolt_namespace>
-
To forward the traffic from the local system to Loki service, execute:
Copy
kubectl port-forward service/bolt-loki 3100:3100 -n <bolt_namespace>
-
To forward the traffic from the local system to etcd service, execute:
Copy
kubectl port-forward service/bolt-etcd 2379:2379 -n <bolt_namespace>