I have created the custom plugin “https://medium.com/swlh/creating-and-installing-custom-lua-plugins-in-kong-ce7fd64d33bf” using this reference, and we are successfully able to build and deploy the plugin in KONG 2.0 using docker image.
Reference : How enable Kong Ingress CUSTOM PLUGIN on k8s (AKS)
Now we are trying to deploy the same plugin in the KONG as ingress controller (we are using AKS) but i am facing issue
what we had did till now
- Created the configMap and successfully able to describe it by following above steps
*Now we are trying to deploy the same plugin but facing if we follow the above steps and deployment file looks like
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kong-ingress-custom-plugin
namespace: konga-test
spec:
selector:
matchLabels:
app: konga-test
template:
metadata:
name: kong-ingress-custom-plugin
labels:
app: kong-ingress-custom-plugin
spec:
containers:
- name: proxy
env:
- name: KONG_PLUGINS
value: ‘bundled,cutom-auth’
- name: KONG_LUA_PACKAGE_PATH
value: /opt/?.lua;;
volumeMounts:
- name: kong-plugin-cutom-auth
mountPath: /opt/kong/plugins/cutom-auth
volumes:
- defaultMode: 755
- name: kong-plugin-cutom-auth
configMap:
name: kong-plugin-cutom-auth
we are executing the same below command to apply the change
kubectl apply -f miniorange-auth-deployment.yaml --validate=false
and error we got
The Deployment “kong-plugin-miniorange-auth” is invalid: spec.template.spec.containers[0].image: Required value
Here i don’t understand, if we created the ConfigMap for same plugin then why its asking for docker image.
Kindly assist.
Thanks & Regards
Jaiswar Vipin Kumar R.