{{- define "rtsp.affinity" -}}
{{- with .Values.deploy.k8s.affinity }}
nodeAffinity:
  requiredDuringSchedulingIgnoredDuringExecution:
    nodeSelectorTerms:
      - matchExpressions:
        - key: uavcloud.affinity
          operator: In
          values:
            - {{ .node }}
{{- end }}
{{- end }}