1

I installed Flink Statefun Kubernetes Cluster(3 node) in HA(Zookeeper) mode. This cluster includes statefun 2.0.0 image and embedded jar,module yaml file. Also I installed another Kubernetes cluster for remote function. Offical Example shows in same Kubernetes cluster.(I think just example. Normally deploy remote functions another k8s cluster would be a better idea because of scaling the compute.) Should I define LoadBalancer service for every function? How about single LB with multiple services? How about Ingress with multiple services? https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer#step_6_optional_serve_multiple_applications_on_a_load_balancer

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: fanout-ingress
spec:
  rules:
  - http:
      paths:
      - path: /*
        backend:
          serviceName: web
          servicePort: 8080
      - path: /v2/*
        backend:
          serviceName: web2
          servicePort: 8080

Also I have to restart cluster to update module.yaml so another flink cluster might be the solution. For example embedded functions cluster(include jar) and remote functions cluster(include module.yaml). Can I deploy these cluster to same kubernetes cluster?

Anıl Sevici
  • 214
  • 2
  • 12
  • why do you think its not supported for https – Arghya Sadhu May 21 '20 at 05:56
  • https://ci.apache.org/projects/flink/flink-statefun-docs-release-2.0/sdk/modules.html#remote-module doc says for function.meta.kind Supported Values - http. But I think is about function call so not related endpoint protocol. I edit my question. – Anıl Sevici May 21 '20 at 06:01
  • that should be okay...you can configure the ingress to perform the TLS termination and from the ingress to the backend service it will be http traffic – Arghya Sadhu May 21 '20 at 06:03

0 Answers0