Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.84 KB

install.md

File metadata and controls

56 lines (36 loc) · 1.84 KB

Installation

There are two parts to this Operator. The CRDs (ChiaCA, ChiaFarmer, ChiaNode, etc.) and the actual operator manager Deployment and related objects. You can install these components in two methods, either by cloning the repository and generating the manifests yourself with kustomize, or with kubectl apply on the generated manifests on releases.

Using the release manifests

Install the latest CRDs:

kubectl apply --server-side -f https://github.com/Chia-Network/chia-operator/releases/latest/download/crd.yaml

NOTE: In 0.12.0 it became necessary to server-side apply the custom resource definitions.

Install the latest controller manager:

kubectl apply -f https://github.com/Chia-Network/chia-operator/releases/latest/download/manager.yaml

Prometheus metrics (Optional)

If you have the Prometheus Operator installed in your cluster and would like to use the bundled ServiceMonitor to scrape chia-operator metrics:

kubectl apply -f https://github.com/Chia-Network/chia-operator/releases/latest/download/monitor.yaml

This ServiceMonitor is installed in the same namespace as chia-operator, so it will only work in Prometheus Operator configurations that can load ServiceMonitors from any namespace, and also don't have any ServiceMonitorSelectors set.

Using kustomize

Clone this repository (and change to its directory):

git clone https://github.com/Chia-Network/chia-operator.git
cd chia-operator

You're currently on the main branch which defaults to the latest versions of this operator, chia, and all sidecars (chia-exporter, chia-healthcheck, etc.) You can switch to the latest release tag for a more stable experience:

git checkout $(git describe --tags `git rev-list --tags --max-count=1`)

Install the CRDs:

make install

Deploy the operator:

make deploy