Expose Service using istio #49980
Unanswered
francesco-di-marcantonio
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i applied this helm chart:
https://github.com/PHOENIX-MEDIA/magento2-helm
All the services are up and running. Now i decided to expose everything on 80 so i bought a cloud on hetzner and installed rancher+istio (master on rancher+ 1 worker node).
I'm still learning and reading all docs i thought to put a load balancer and target it to the worker node. but i think i'm missing more configuration.
My idea was: Call domain.com->Load Balancer-> Istio -> ServicePod -> Node
At the moment im having "503,No server is available to handle this request."
This is my virtual service:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
annotations:
meta.helm.sh/release-name: magento
meta.helm.sh/release-namespace: magento
generation: 2
labels:
app.kubernetes.io/managed-by: Helm
name: mg-virtualservice
namespace: magento
spec:
gateways:
hosts:
http:
allowHeaders:
- authorization
- content-type
allowMethods:
- POST
- OPTIONS
- GET
allowOrigins:
- regex: https://.*.DOMAIN.COM
fault:
abort:
httpStatus: 503
percentage: {}
retries:
attempts: 3
retryOn: gateway-error,connect-failure,refused-stream,5xx
route:
host: varnish
port:
number: 80
timeout: 30s
At the moment istio isn't loggin any request. How can i manage this flow?
Thanks for help!
Beta Was this translation helpful? Give feedback.
All reactions