I have a Kubernetes service at GKE. Currently it has Session Affinity:ClientIP. and in GCP Load Balancer Console, it is shown as "Client IP"
What value should I set it as so that in GCP Load Balancer Console, it will be shown as "Client IP, Port and Protocol"?
All the documents I saw mention that Session Affinity can be assigned as "ClientIP" or "no" (by default). none of them tell me there is a third option, while if you check GCP Load balancer, it has multiple options for Session Affinity: None; Client IP; Client IP and Protocol; Client IP, Port and Protocol
this is the service file:
---
apiVersion: v1
kind: Service
metadata:
namespace: test
name: test
annotations:
cloud.google.com/load-balancer-type: Internal
spec:
type: LoadBalancer
ports:
- port: XXX
protocol: TCP
targetPort: XXX
name: XXX
selector:
app: XXX
sessionAffinity: ClientIP