Hi everyone… trying to setup the notifications, un...
# flyte-support
r
Hi everyone… trying to setup the notifications, unfortanely flyte is not sending emails. I have setup the SQS, SNS and SES email address. The config need to be under the flyteadmin? Here is what I have so far:
Copy code
flyteadmin:
  replicaCount: 3
  # -- IAM role for SA: <https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html>
  serviceAccount:
    # -- If the service account is created by you, make this false, else a new service account will be created and the iam-role-flyte will be added
    # you can change the name of this role
    create: true
    annotations:
      <http://eks.amazonaws.com/role-arn|eks.amazonaws.com/role-arn>: arn:aws:iam::{{ .Values.userSettings.accountNumber }}:role/flyte.flyteadmin
  service:
    type: NodePort
  resources:
    limits:
      ephemeral-storage: 200Mi
    requests:
      cpu: 50m
      ephemeral-storage: 200Mi
      memory: 200Mi
  affinity:
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchLabels:
              <http://app.kubernetes.io/name|app.kubernetes.io/name>: flyteadmin
          topologyKey: <http://kubernetes.io/hostname|kubernetes.io/hostname>
  initialProjects:
    - flytesnacks
    - ribs
  notifications:
    type: aws
    region: "{{ .Values.userSettings.accountRegion }}"
    publisher:
      topicName: "arn:aws:sns:{{ .Values.userSettings.accountRegion }}:{{ .Values.userSettings.accountNumber }}:flyte_notification"
    processor:
      queueName: "flyte_notification"
      accountId: "{{ .Values.userSettings.accountNumber }}"
    emailer:
      subject: "{{ `{{` }} domain {{ `}}` }}/{{ `{{` }} launch_plan.name {{ `}}` }} has '{{ `{{` }} phase {{ `}}` }}'"
      sender: "<mailto:flyte-notification@mydomain.com|flyte-notification@mydomain.com>"
      body: >
        Execution {{ `{{` }} workflow.project {{ `}}` }}/{{ `{{` }} workflow.domain {{ `}}` }}/{{ `{{` }} workflow.name {{ `}}` }}/{{ `{{` }} name {{ `}}` }} has {{ `{{` }} phase {{ `}}` }}.
        {{ `{{` }} error {{ `}}` }}
Something is missing?
t
can you check for logs in admin?
it should be relatively vocal, esp if you set the log level higher to like 6 or something
f
159 Views