Google Cloud Platform

[GKE] Canary deployments in production - session affinity

nockdoo 2020. 5. 23. 23:51

ClientIP 기준으로 동일한 version 의 app 으로 접속을 유지.

 

Canary 테스트의 경우 다른 버전의 app 이 배포된 상태에서 유저가 다른 버전 app으로 접속하는 것을 방지할 수 있다.

 

kind: Service
apiVersion: v1
metadata:
  name: "hello"
spec:
  sessionAffinity: ClientIP
  selector:
    app: "hello"
  ports:
    - protocol: "TCP"
      port: 80
      targetPort: 80
https://google.qwiklabs.com/focuses/639?parent=catalog