Telegram
Argo Rollouts에서 Telegram 알림 서비스를 설정하는 방법을 알아봐요. BotFather로 API 토큰을 받고 채널에 봇을 추가한 뒤, 채널 username이나 chatID로 구독을 걸면 돼요.
출처: 문서
본문
-
@Botfather를 사용해 API 토큰을 받아요.
-
토큰을
<secret-name>Secret에 저장하고argo-rollouts-notification-configmapConfigMap에서 telegram 통합을 설정해요:
apiVersion: v1
kind: ConfigMap
metadata:
name: argo-rollouts-notification-configmap
data:
service.telegram: |
token: $telegram-token
-
새 Telegram 채널을 만들어요.
-
봇을 관리자(administrator)로 추가해요.
-
Telegram 통합을 위한 구독에서 이 채널의
username(공개 채널) 또는chatID(비공개 채널)를 사용해요:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: username
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: -1000000000000
비공개 채팅에 스레드가 있다면 |로 구분해 스레드 ID를 선택적으로 지정할 수 있어요:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: -1000000000000|2