Athena

Install Operator

Install athena-operator CRDs and run the controller either locally or in-cluster.

There are two normal ways to run the operator:

  • run it locally with go run against your kubeconfig
  • run it inside the cluster as a Kubernetes Deployment

Install CRDs First

Kubernetes will not accept resources like AthenaGateway until the CRDs are installed.

From the athena-operator repo:

kubectl apply -f config/crd/bases/

Verify:

kubectl get crd | findstr /i athena.xylex.group

Option A: Run Locally

From the athena-operator repo root:

go run ./cmd/athena-operator

Keep that process running while you apply resources.

Option B: Run In-Cluster

1. Build an image

docker build -t athena-operator:dev .

2. Load the image into kind

kind load docker-image athena-operator:dev --name athena

3. Point the deployment manifest at that image

Edit config/deploy/04-deployment.yaml so the operator image is:

image: athena-operator:dev

4. Apply the deployment manifests

kubectl apply -f config/deploy/

Verify:

kubectl get pods -n athena-operator-system
kubectl logs -n athena-operator-system deploy/athena-operator -f