mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
Markdown
61 lines
1.8 KiB
Markdown
---
|
|
title: "flux create alert-provider command"
|
|
---
|
|
## flux create alert-provider
|
|
|
|
Create or update a Provider resource
|
|
|
|
### Synopsis
|
|
|
|
The create alert-provider command generates a Provider resource.
|
|
|
|
```
|
|
flux create alert-provider [name] [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
# Create a Provider for a Slack channel
|
|
flux create alert-provider slack \
|
|
--type slack \
|
|
--channel general \
|
|
--address https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK \
|
|
--secret-ref webhook-url
|
|
|
|
# Create a Provider for a Github repository
|
|
flux create alert-provider github-podinfo \
|
|
--type github \
|
|
--address https://github.com/stefanprodan/podinfo \
|
|
--secret-ref github-token
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--address string path to either the git repository, chat provider or webhook
|
|
--channel string channel to send messages to in the case of a chat provider
|
|
-h, --help help for alert-provider
|
|
--secret-ref string name of secret containing authentication token
|
|
--type string type of provider
|
|
--username string bot username used by the provider
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--context string kubernetes context to use
|
|
--export export in YAML format to stdout
|
|
--interval duration source sync interval (default 1m0s)
|
|
--kubeconfig string absolute path to the kubeconfig file
|
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
|
--timeout duration timeout for this operation (default 5m0s)
|
|
--verbose print generated objects
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [flux create](../flux_create/) - Create or update sources and resources
|
|
|