Teams (Office 365 Connectors) 알림 서비스
Argo Rollouts 알림 서비스를 Microsoft Teams와 연동하는 방법을 알아봅니다. Office 365 Connectors(웹훅)를 통해 메시지를 전송하며, recipientUrls를 구성합니다.
출처: Argo Rollouts 문서
본문
⚠️ 폐지 공지 (Deprecation Notice)
Office 365 Connectors는 Microsoft에 의해 퇴역(재정)되고 있습니다. Microsoft는 Teams의 Office 365 Connectors 서비스를 퇴역시키고 있습니다. 이 서비스는 (원래 2025년 12월이던 일정에서 연장된) 2026년 3월 31일까지 완전히 퇴역됩니다.
의미하는 바:
- 기존 Office 365 Connectors(webhook.office.com의 웹훅 URL)는 퇴역 날짜 이후 작동을 멈춥니다
- 새 Power Automate Workflows(api.powerautomate.com, api.powerplatform.com 또는 flow.microsoft.com의 웹훅 URL)가 권장되는 대체方案입니다
마이그레이션 필요:
현재 Office 365 Connectors(Incoming Webhook)를 사용 중이라면, 퇴역 날짜 이전에 Power Automate Workflows로 마이그레이션해야 합니다. notifications-engine은 웹훅 유형을 자동으로 감지하여 두 형식을 모두 처리하지만, 마이그레이션을 계획해야 합니다.
마이그레이션 참고자료:
- Microsoft 폐지 공지
- Microsoft Teams용 Workflows로 incoming webhooks 만들기
파라미터 (Parameters)
Teams 알림 서비스는 Office 365 Connectors를 사용하여 메시지 알림을 보내며, 다음 설정을 지정해야 합니다:
- recipientUrls - 웹훅 url 맵, 예: channelName: https://outlook.office.com/webhook/...
⚠️ 폐지 공지: Office 365 Connectors는 2026년 3월 31일에 Microsoft에 의해 퇴역됩니다. 지속적인 지원과 향상된 기능을 위해 Teams Workflows 서비스로 마이그레이션하는 것을 권장합니다.
구성 (Configuration)
💡 Power Automate Workflows(권장)의 경우: 자세한 구성 지침은 Teams Workflows 문서를 참조하세요.
Office 365 Connectors (폐지 예정 - 2026년 3월 31일 퇴역)
⚠️ 경고: 이 방법은 폐지되었으며 2026년 3월 31일 이후 작동을 멈춥니다. Power Automate Workflows로 마이그레이션하세요.
- Teams를 열고 Apps로 이동합니다
- Incoming Webhook microsoft 앱을 찾아 클릭합니다
- Add to a team을 누르고 -> 팀과 채널을 선택한 다음 -> Set up a connector를 누릅니다
- 웹훅 이름을 입력하고 이미지를 업로드합니다 (선택 사항)
- Create를 누른 다음 웹훅 url을 복사합니다 (webhook.office.com에서 온 것입니다)
- argo-rollouts-notification-secret에 저장하고 argo-rollouts-notification-configmap에 정의합니다
apiVersion: v1
kind: ConfigMap
metadata:
name: argo-rollouts-notification-configmap
data:
service.teams: |
recipientUrls:
channelName: $channel-teams-url
apiVersion: v1
kind: Secret
metadata:
name: <secret-name>
stringData:
channel-teams-url: https://webhook.office.com/webhook/your-webhook-id # Office 365 Connector (deprecated)
참고: Power Automate Workflows 웹훅의 경우 대신 Teams Workflows 서비스를 사용하세요.
웹훅 유형 감지 (Webhook Type Detection)
teams 서비스는 Office 365 Connectors(폐지 예정)를 지원합니다:
- Office 365 Connectors: webhook.office.com의 URL (폐지 예정)
- 성공하려면 응답 본문이 정확히 "1"이어야 합니다
- 2026년 3월 31일 이후 작동을 멈춥니다
- Teams 통합에 대한 구독을 생성합니다:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.teams: channelName
채널 지원 (Channel Support)
- ✅ 표준 Teams 채널만
참고: Office 365 Connectors는 표준 Teams 채널만 지원합니다. 공유 채널 또는 비공개 채널의 경우 Teams Workflows 서비스를 사용하세요.
템플릿 (Templates)
![IMAGE]
알림 템플릿을 사용자 지정하여 teams 메시지의 sections, facts, themeColor, summary 및 potentialAction 기능을 활용할 수 있습니다. Teams 서비스는 Office 365 Connectors와 호환되는 messageCard 형식(MessageCard 스키마)을 사용합니다.
template.app-sync-succeeded: |
teams:
themeColor: "#000080"
sections: |
[{
"facts": [
{
"name": "Sync Status",
"value": "{{.app.status.sync.status}}"
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
}
]
}]
potentialAction: |-
[{
"@type":"OpenUri",
"name":"Operation Details",
"targets":[{
"os":"default",
"uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true"
}]
}]
title: Application {{.app.metadata.name}} has been successfully synced
text: Application {{.app.metadata.name}} has been successfully synced at {{.app.status.operationState.finishedAt}}.
summary: "{{.app.metadata.name}} sync succeeded"
facts 필드
sections 필드 대신 facts 필드를 사용할 수 있습니다.
template.app-sync-succeeded: |
teams:
facts: |
[{
"name": "Sync Status",
"value": "{{.app.status.sync.status}}"
},
{
"name": "Repository",
"value": "{{.app.spec.source.repoURL}}"
}]
theme color 필드
메시지의 테마 색상을 hex 문자열로 설정할 수 있습니다. ![IMAGE]
template.app-sync-succeeded: |
teams:
themeColor: "#000080"
summary 필드
Notification & Activity Feed에 표시될 메시지 요약을 설정할 수 있습니다. ![IMAGE] ![IMAGE]
template.app-sync-succeeded: |
teams:
summary: "Sync Succeeded"
Teams Workflows로 마이그레이션
현재 Office 365 Connectors를 사용 중이라면, 마이그레이션 지침과 향상된 기능을 위해 Teams Workflows 문서를 참조하세요.
더 알아보기 (Learn more)
- 알림 템플릿 보내기 — 알림 발송 명령
- Alertmanager 알림 서비스 — Alertmanager 연동
- New Relic 알림 서비스 — New Relic 연동