porthole/images/calicoctl-utility
astebenkova d6135a000c [images] Optimize docker recipes
* remove deprecated 'apt-key add'
* use a more reliable method for updating pip to the latest version
* remove 'apt clean' step since it's included in official Ubuntu images
+ upgrade K8s to v1.29.7
+ align etcdctl with cluster's version

Change-Id: Ic166b8432b3ff529e0281f8af26b680dc614caeb
2024-08-08 17:01:13 +03:00
..
Dockerfile_calicoq_calicoctl.ubuntu_bionic Restore bionic images 2023-06-07 04:15:14 +00:00
Dockerfile_calicoq_calicoctl.ubuntu_focal Versions updates 2024-03-06 16:45:54 +00:00
Dockerfile_calicoq_calicoctl.ubuntu_jammy [images] Optimize docker recipes 2024-08-08 17:01:13 +03:00
Dockerfile.ubuntu_bionic Restore bionic images 2023-06-07 04:15:14 +00:00
Dockerfile.ubuntu_focal Versions updates 2024-03-06 16:45:54 +00:00
Dockerfile.ubuntu_jammy [images] Optimize docker recipes 2024-08-08 17:01:13 +03:00
Makefile Update porthole project 2023-06-02 16:01:08 +00: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