Is SessionAffinity in kubernetes Azure for external clients

1/7/2022

I'm struggling to find documentation on this. I wish to have this service spec:

apiVersion: v1
kind: Service
metadata:
  name: API1
spec:
  type: ClusterIP
  ports:
  - name: port1
    port: 80
  selector:
    app: API1
  sessionAffinityConfig:
    clientIP:
      timeoutSeconds: 30

API1 has 3 replicas.

One of my deployments in the same cluster (API2) uses this API1. Would this config also result in all traffic from API2 to the same pod in API1? That would be undesirable.

-- HansElsen
azure
kubernetes
load-balancing

0 Answers