Cluster with Istio

StackGres already uses an Envoy sidecar container. The sidecar injected by Istio (istio-proxy) is not compatible with StackGres pods at the moment. In a Kubernetes cluster with Istio installed, you need to annotate the StackGres cluster to avoid Istio’s sidecar injection.

Annotate StackGres Pods

Before you create a StackGres cluster, make sure you add the annotation sidecar.istio.io/inject: 'false' to the pods, as shown below:

apiVersion: stackgres.io/v1
kind: SGCluster
metadata:
  namespace: demo
  name: cluster
spec:
  metadata:
    annotations:
      pods:
        sidecar.istio.io/inject: 'false'
# [...]

This will avoid that your pods enter a CrashLoopBackOff state.