You need to create a custom Kong image including your custom plugin and enable it when running as container using environment params. I have solved this sometime earlier in this post. (Use one of the latest image from kong to build your custom image)
FROM kong/kong-gateway:3.1.1.2-alpine
USER root
RUN apk update
RUN apk add lua5.1 lua5.1-dev luarocks5.1
RUN apk add gcc expat expat-dev expat-static musl-dev
RUN luarocks install xml2lua 1.5-2
USER kong
WORKDIR /usr/local/share/lua/5.1/kong/plugins
COPY ./kong/plugins/ /usr/local/share/lua/5.1/kong/plugins
after created Dockerfile, i ran docker build command docker build -t kong-custom-plugin --no-cache .
FROM kong/kong-gateway:3.1.1.2-alpine
USER root
RUN apk update
RUN apk add lua5.1 lua5.1-dev luarocks5.1
RUN apk add gcc expat expat-dev expat-static musl-dev
RUN luarocks install xml2lua 1.5-2
USER kong
WORKDIR /usr/local/share/lua/5.1/kong/plugins
COPY ./kong/plugins/ /usr/local/share/lua/5.1/kong/plugins
after created Dockerfile, i ran docker build command docker build -t kong-custom-plugin --no-cache .
i was resolve issue bootstrap database but i don’t find my custom plugin in kong manager
i was check api localhost:8001 and plugin was setting correct (image below)
Yes, for some reason It does not show up in Kong Manager. But once you enable it via API and configure it for a route or service, it should. This may be a limitation with Free mode I guess. I havent really gotten to root cause on it.
i was resolve issue bootstrap database but i don’t find my custom plugin in kong manager
i was check api localhost:8001 and plugin was setting correct (image below)
What should I do fix it?
Do I need a license because I am using Kong Manager is running in Free Mode.