Slack Setup
-
Go to Slack Apps
-
Select the workspace in which you would like to get your notifications and click “Next”.
-
Click on “Create”.
-
Click on “Install to Workspace”.
-
Click on “Allow”
-
On the left side menu click on “OAuth & Permissions”
-
Copy the “Bot User OAuth Token”
ScaleOps Integration
-
Open your ScaleOps system
-
Click the Alerts link on the main left navigation menu
-
Click the Alert Setting button to open the settings dialogue
-
Insert your token and click Save Token
-
Select your preferable Ownership Label, Default Slack channel. You can enabled/disable this feature for selected clusters via the Enable Slack Alerts dropdown menu
-
Optional - verify Slack alert by clicking
Send Test Alert
(Optional) Configure Slack Token as External Secret
Alternatively, it’s possible to configure slack token as an external secret using the following definition:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: scaleops-slack-secret
namespace: scaleops-system
spec:
secretStoreRef:
name: SECRET_STORE_NAME # Replace with your secret store name
kind: ClusterSecretStore # Replace with your secret store kind
target:
name: scaleops-slack-secret
template:
data:
TOKEN: "{{ .slack_token }}"
data:
- secretKey: slack_token
remoteRef:
key: path/to/secret # Replace with your secret path