/polaris2istio

Polaris2istio watches Polaris registry and synchronize all the matched Polaris services to Istio.

Primary LanguageGo

polaris2istio

Polaris2istio watches Polaris registry and synchronize the Polaris services which match the rules to Istio.

 polaris2istio

Usage

Build

make build

Run

polaris2istio --polarisAddress <polarishost:port>

Config

Method 1. Sync polaris service base on ServiceEntry:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: <polaris-name-for-k8s>
  namespace: polaris
  annotations:
    aeraki.net/polarisNamespace: Test
    aeraki.net/polarisService: test-service
    aeraki.net/external: "false"
  labels:
    manager: aeraki
    registry: polaris
spec:
  hosts:
    - dev.<polaris-name-for-k8s>.polaris
  resolution: NONE # or STATIC

We just watch the ServiceEntrys in the polaris namespae.