yep i have some tasks now. then ->
yayyyy kubernetes tasks!
yep the search engine ai told me how to setup lua script of ngin alike:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: lua-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite_by_lua_block {
-- Example Lua logic
if ngx.var.http_contains_specific_header == "true" then
ngx.var.proxy_pass = ngx.var.http_specific_header;
end
}
spec:
rules:
- host: example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nodejs-service
port:
number: 8443
Yorumlar
Yorum Gönder