porthole/images/calicoctl-utility
Lindsey Durway 7b8f9d6147 Editorial changes to documentation files
Edited and revised formatting to improve readability and
consistency with other docs in this repo.

Change-Id: I8693b85fdbd84e625e774ae0fe4d81dae7d74a57
2019-12-16 09:21:19 -06:00
..
Dockerfile_calicoq_calicoctl.alpine Add support for k8s datastore, allow access to new calico resources 2019-11-06 17:30:32 -06:00
Dockerfile_calicoq_calicoctl.ubuntu_xenial Add support for k8s datastore, allow access to new calico resources 2019-11-06 17:30:32 -06:00
Dockerfile.alpine Add support for k8s datastore, allow access to new calico resources 2019-11-06 17:30:32 -06:00
Dockerfile.ubuntu_xenial Add support for k8s datastore, allow access to new calico resources 2019-11-06 17:30:32 -06:00
Makefile Add xenial-based calicoctl-utility containers 2019-10-28 21:51:50 -07:00
README.md Editorial changes to documentation files 2019-12-16 09:21:19 -06:00

Calicoctl-utility Container

This container shall allow access to the Calico pod running on every node. Operations personnel should be able to get the appropriate data from this utility container by specifying the node and respective service command within the local cluster.

Generic Docker Makefile

This is a generic make and dockerfile for the calicoctl utility container, which can be used to create docker images using different calico releases.

Make Syntax

   make IMAGE_TAG=<calicoctl_version>

Example:

Create a docker image for calicoctl release v3.4.0.

   make IMAGE_TAG=v3.4.0

Using the Utility Container

The utility container for calicoctl shall enable Operations to access the command set for network APIs together from within a single shell with a uniform command structure. The access to network-Calico shall be controlled through an RBAC role assigned to the user.

Usage

Get into the utility pod using kubectl exec. Execute an operation as in the following example.

   kubectl exec -it <POD_NAME> -n utility /bin/bash

Example:

   utilscli calicoctl get nodes
   NAME
   bionic

   utilscli calicoctl version
   Client Version:    v3.4.4
   Git commit:        e3ecd927