I
Size: a a a
I
SW
IB
helm install nginx —namespace kube-system nginx-stable/nginx-ingress
—set controller.healthStatus=true
—set controller.healthStatusURI=/nginx-health
—set controller.reportIngressStatus.enableLeaderElection=false
—set controller.reportIngressStatus.enableLeaderElection=false,
но все равно работает только на 1-й ноде. Подскажите куда копать?SS
IB
AK
A
ВК
ВК
MS
ВК
MS
kubelet:
image: ""
extra_args:
max-pods: 255
--max-pods=250
E
location = /trade_ws {Использую также регулярные выражения через аннотацию
proxy_pass http://service-2;
location ~ ^/(orders|trade) {
proxy_pass http://service-1;
}
nginx.ingress.kubernetes.io/use-regex: trueКонфигурация Ingess имеет вид
# kubectl describe ing ingress-service-1В результате nginx-ingress генерирует свой конфиг (файл /etc/nginx/nginx.conf)
Name: ingress-service-1
Namespace: default
Address: 10.97.2.244
Default backend: default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
Host Path Backends
---- ---- --------
stage2.mydomain.com
/(orders|trade) service-1:80 (10.20.23.54:9999)
/trade_ws$ service-2:80 (10.20.146.33:80,10.20.16.138:80,10.20.23.80:80)
Annotations: meta.helm.sh/release-name: service-1
meta.helm.sh/release-namespace: default
nginx.ingress.kubernetes.io/use-regex: true
Events: <none>
location ~* "^/(orders|trade)"что соотвественно приводит к тому, что все запросы
location ~* "^/trade_ws$"
When this annotation is set to true, the case insensitive regular expression location modifier will be enforced on ALL paths for a given host regardless of what Ingress they are defined on.Прочтение официальной доки от nginx-ingress не позволило мне найти решение моего вопроса
ВК
--max-pods=250- deprecated
ВК
kubelet:
image: ""
extra_args:
max-pods: 255
--max-pods=250
DS
location = /trade_ws {Использую также регулярные выражения через аннотацию
proxy_pass http://service-2;
location ~ ^/(orders|trade) {
proxy_pass http://service-1;
}
nginx.ingress.kubernetes.io/use-regex: trueКонфигурация Ingess имеет вид
# kubectl describe ing ingress-service-1В результате nginx-ingress генерирует свой конфиг (файл /etc/nginx/nginx.conf)
Name: ingress-service-1
Namespace: default
Address: 10.97.2.244
Default backend: default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
Host Path Backends
---- ---- --------
stage2.mydomain.com
/(orders|trade) service-1:80 (10.20.23.54:9999)
/trade_ws$ service-2:80 (10.20.146.33:80,10.20.16.138:80,10.20.23.80:80)
Annotations: meta.helm.sh/release-name: service-1
meta.helm.sh/release-namespace: default
nginx.ingress.kubernetes.io/use-regex: true
Events: <none>
location ~* "^/(orders|trade)"что соотвественно приводит к тому, что все запросы
location ~* "^/trade_ws$"
When this annotation is set to true, the case insensitive regular expression location modifier will be enforced on ALL paths for a given host regardless of what Ingress they are defined on.Прочтение официальной доки от nginx-ingress не позволило мне найти решение моего вопроса
ing
ress.spec.rules.http.paths.pathType
AL
location = /trade_ws {Использую также регулярные выражения через аннотацию
proxy_pass http://service-2;
location ~ ^/(orders|trade) {
proxy_pass http://service-1;
}
nginx.ingress.kubernetes.io/use-regex: trueКонфигурация Ingess имеет вид
# kubectl describe ing ingress-service-1В результате nginx-ingress генерирует свой конфиг (файл /etc/nginx/nginx.conf)
Name: ingress-service-1
Namespace: default
Address: 10.97.2.244
Default backend: default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
Host Path Backends
---- ---- --------
stage2.mydomain.com
/(orders|trade) service-1:80 (10.20.23.54:9999)
/trade_ws$ service-2:80 (10.20.146.33:80,10.20.16.138:80,10.20.23.80:80)
Annotations: meta.helm.sh/release-name: service-1
meta.helm.sh/release-namespace: default
nginx.ingress.kubernetes.io/use-regex: true
Events: <none>
location ~* "^/(orders|trade)"что соотвественно приводит к тому, что все запросы
location ~* "^/trade_ws$"
When this annotation is set to true, the case insensitive regular expression location modifier will be enforced on ALL paths for a given host regardless of what Ingress they are defined on.Прочтение официальной доки от nginx-ingress не позволило мне найти решение моего вопроса
AL
DS
location = /trade_ws {Использую также регулярные выражения через аннотацию
proxy_pass http://service-2;
location ~ ^/(orders|trade) {
proxy_pass http://service-1;
}
nginx.ingress.kubernetes.io/use-regex: trueКонфигурация Ingess имеет вид
# kubectl describe ing ingress-service-1В результате nginx-ingress генерирует свой конфиг (файл /etc/nginx/nginx.conf)
Name: ingress-service-1
Namespace: default
Address: 10.97.2.244
Default backend: default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
Host Path Backends
---- ---- --------
stage2.mydomain.com
/(orders|trade) service-1:80 (10.20.23.54:9999)
/trade_ws$ service-2:80 (10.20.146.33:80,10.20.16.138:80,10.20.23.80:80)
Annotations: meta.helm.sh/release-name: service-1
meta.helm.sh/release-namespace: default
nginx.ingress.kubernetes.io/use-regex: true
Events: <none>
location ~* "^/(orders|trade)"что соотвественно приводит к тому, что все запросы
location ~* "^/trade_ws$"
When this annotation is set to true, the case insensitive regular expression location modifier will be enforced on ALL paths for a given host regardless of what Ingress they are defined on.Прочтение официальной доки от nginx-ingress не позволило мне найти решение моего вопроса
^/(orders|trade)
сделать строже