Deploy Gateway
Deploy Athena Gateway with the AthenaGateway custom resource and the required admin-key secret.
AthenaGateway is cluster-scoped and tells the operator to create the Athena Gateway Deployment and Service in the target namespace.
1) Create The Target Namespace
The sample flow uses athena-system:
kubectl create namespace athena-system2) Create The Admin-Key Secret
Athena admin endpoints need the static admin key (ATHENA_KEY_12).
Important rule:
- the
Secretmust live in the same namespace asspec.targetNamespace
Option A: Edit the sample YAML
Update config/samples/athena_v1alpha1_gateway_admin_secret.yaml and replace REPLACE_ME_BASE64 with the base64-encoded admin key.
Then apply it:
kubectl apply -f config/samples/athena_v1alpha1_gateway_admin_secret.yamlOption B: Create it with kubectl
kubectl create secret generic athena-admin-key -n athena-system --from-literal=apikey='<YOUR_ADMIN_KEY>'3) Apply AthenaGateway
kubectl apply -f config/samples/athena_v1alpha1_athenagateway.yaml4) Verify
Check the custom resource:
kubectl get athenagateway
kubectl get athenagateway default -o yamlYou should see status.serviceEndpoint.
Then verify the workload itself:
kubectl get deploy,svc -n athena-system
kubectl get pods -n athena-system -l app.kubernetes.io/name=athena-gateway