Skip to content

Commit

Permalink
Add new gcp identity scaler option in docs (kedacore#565)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Maria Alvarez <jose-maria.alvarez@leroymerlin.es>
  • Loading branch information
jmalvarezf-lmes authored Nov 3, 2021
1 parent 5daa8bb commit 161ba4d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions content/docs/2.5/scalers/gcp-pub-sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,33 @@ spec:
metadata:
subscriptionName: "input" # Required
```

**Identity based authentication:**

You can also use `TriggerAuthentication` CRD to configure the authentication using the associated service account of the running machine in Google Cloud. You only need to create a `TriggerAuthentication` as this example, and reference it in the `ScaledObject`. `ClusterTriggerAuthentication` can also be used if you pretend to use it globally in your cluster.

### Example using TriggerAuthentication with GCP Identity

```yaml
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: keda-trigger-auth-gcp-credentials
spec:
podIdentity:
provider: gcp
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: pubsub-scaledobject
spec:
scaleTargetRef:
name: keda-pubsub-go
triggers:
- type: gcp-pubsub
authenticationRef:
name: keda-trigger-auth-gcp-credentials
metadata:
subscriptionName: "input" # Required
```

0 comments on commit 161ba4d

Please sign in to comment.