We are bringing the best of Tectonic to Red Hat OpenShift to build the most secure, hybrid Kubernetes application platform.
Chargeback consists of a few components:
Chargeback requires the following components:
First, set up the namespace by creating it and copying the coreos-pull-secret
into it:
export CHARGEBACK_NAMESPACE=chargeback
kubectl create ns $CHARGEBACK_NAMESPACE
kubectl get secret -n tectonic-system coreos-pull-secret --export -o json | kubectl create -n $CHARGEBACK_NAMESPACE -f -
Before continuing with the installation, please read Configuring Chargeback. Some options may not be changed post-install. Be certain to configure these options, if desired, before installation.
If you do not wish to modify the Chargeback configuration, a minimal configuration example that doesn't override anything can be found in default.yaml.
Installation is a two step process. First, install the Chargeback Helm operator. Then, install the Chargeback
resource that defines the configuration.
To start, download the Chargeback install plan and save it as chargeback.installplan.yaml
, and download your Chargeback
resource and save it as chargeback.yaml
.
The install plan is used by the Tectonic Application Lifecycle Management and Catalog operators to install CRDs and the Chargeback Helm operator.
Install the install plan into the cluster:
kubectl create -n $CHARGEBACK_NAMESPACE -f chargeback.installplan.yaml
Finally, install the Chargeback
resource, which causes the Chargeback Helm operator to install and configure Chargeback and its dependencies.
kubectl create -n $CHARGEBACK_NAMESPACE -f chargeback.yaml
First, wait until the Chargeback Helm operator deploys all of the Chargeback components:
kubectl get pods -n $CHARGEBACK_NAMESPACE -l app=chargeback-helm-operator -o name | cut -d/ -f2 | xargs -I{} kubectl -n $CHARGEBACK_NAMESPACE logs -f {} -c chargeback-helm-operator
When output similar to the following appears, the rest of the Pods should be initializing:
Waiting for Tiller to become ready
Waiting for Tiller to become ready
Getting pod chargeback-helm-operator-b5f86788c-ks4zq owner information
Querying for Deployment chargeback-helm-operator
No values, using default values
Running helm upgrade for release tectonic-chargeback
Release "tectonic-chargeback" has been upgraded. Happy Helming!
LAST DEPLOYED: Fri Jan 26 19:18:34 2018
NAMESPACE: chargeback
STATUS: DEPLOYED
RESOURCES:
... the rest is omitted for brevity ...
Check the logs of the chargeback
deployment for errors:
$ kubectl get pods -n $CHARGEBACK_NAMESPACE -l app=chargeback -o name | cut -d/ -f2 | xargs -I{} kubectl -n $CHARGEBACK_NAMESPACE logs {} -f
For instructions on using Chargeback, please see Using Chargeback.