MCPcopy Index your code
hub / github.com/apache/apisix-ingress-controller

github.com/apache/apisix-ingress-controller @2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.0 ↗ · + Follow
1,974 symbols 7,151 edges 244 files 755 documented · 38% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

apisix-ingress-controller

Description

The APISIX Ingress Controller allows you to run the APISIX Gateway as a Kubernetes Ingress to handle inbound traffic for a Kubernetes cluster. It dynamically configures and manages the APISIX Gateway using Gateway API resources.

Document

Getting Started

Prerequisites

  • go version v1.22.0+.
  • docker version 17.03+.
  • Kubernetes cluster version 1.26+.
  • kubectl version within one minor version difference of your cluster.

To Deploy on the cluster

Build and push your image to the location specified by IMG:

make build-image

NOTE: This image ought to be published in the personal registry you specified. And it is required to have access to pull the image from the working environment. Make sure you have the proper permission to the registry if the above commands don't work.

Install the CRDs & Gateway API into the cluster:

make install

Deploy the Manager to the cluster with the image specified by IMG:

make deploy #IMG=apache/apisix-ingress-controller:dev

NOTE: If you encounter RBAC errors, you may need to grant yourself cluster-admin privileges or be logged in as admin.

Delete the APIs(CRDs) from the cluster:

make uninstall

UnDeploy the controller from the cluster:

make undeploy

Project Distribution

Following are the steps to build the installer and distribute this project to users.

  1. Build the installer for the image built and published in the registry:
make build-installer # IMG=apache/apisix-ingress-controller:dev

NOTE: The makefile target mentioned above generates an 'install.yaml' file in the dist directory. This file contains all the resources built with Kustomize, which are necessary to install this project without its dependencies.

  1. Using the installer

Users can just run kubectl apply -f with the YAML bundle to install the project, i.e.:

kubectl apply -f dist/install.yaml

Extension points exported contracts — how you extend this code

IngressAnnotationsParser (Interface)
Handler abstracts the behavior so that the apisix-ingress-controller knows [7 implementers]
internal/adc/translator/annotations/types.go
Controller (Interface)
K8s +kubebuilder:rbac:groups="",resources=events,verbs=create;patch +kubebuilder:rbac:groups=coordination.k8s.io,resourc [17 …
internal/manager/controllers.go
RouteResource (Interface)
RouteResource defines the interface for route resources [5 implementers]
test/e2e/scaffold/adc.go
RouteAdapter (Interface)
(no doc) [5 implementers]
internal/types/route_adapter.go
Option (Interface)
(no doc) [4 implementers]
internal/provider/options.go
Updater (Interface)
(no doc) [3 implementers]
internal/controller/status/updater.go
Object (Interface)
(no doc) [1 implementers]
api/adc/types.go
PluginAnnotationsHandler (Interface)
Handler abstracts the behavior so that the apisix-ingress-controller knows how to parse some annotations and convert the [10 …
internal/adc/translator/annotations/plugins/plugins.go

Core symbols most depended-on inside this repo

Namespace
called by 869
test/e2e/scaffold/k8s.go
Error
called by 445
internal/types/error.go
Errorf
called by 291
test/e2e/scaffold/assertion.go
CreateResourceFromString
called by 278
test/e2e/scaffold/k8s.go
WithExpectedStatus
called by 221
test/e2e/scaffold/assertion.go
RequestAssert
called by 200
test/e2e/scaffold/assertion.go
ShouldNot
called by 175
test/e2e/scaffold/assertion.go
Should
called by 172
test/e2e/scaffold/assertion.go

Shape

Method 1,056
Function 547
Struct 313
Interface 27
TypeAlias 27
FuncType 4

Languages

Go100%

Modules by API surface

api/v2/zz_generated.deepcopy.go140 symbols
api/v1alpha1/zz_generated.deepcopy.go90 symbols
api/adc/types.go83 symbols
api/adc/zz_generated.deepcopy.go76 symbols
internal/controller/utils.go63 symbols
test/e2e/scaffold/scaffold.go51 symbols
internal/controller/indexer/indexer.go50 symbols
test/e2e/scaffold/adc.go35 symbols
test/e2e/scaffold/k8s.go29 symbols
internal/adc/cache/memdb.go29 symbols
test/e2e/scaffold/assertion.go27 symbols
internal/types/route_adapter.go26 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add apisix-ingress-controller \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact