Skip to content

Commit

Permalink
Update statsd-monitoring-integration-version-2.mdx
Browse files Browse the repository at this point in the history
To allow integrations with Consul- Hashicorp

The service name registered in Consul will be set to the name of the Kubernetes service associated with the Pod. 
This can be customised with the consul.hashicorp.com/connect-service annotation. 
If using ACLs, this name must be the same as the Pod's ServiceAccount name.

The service account name on the deployment must match the name of the Kubernetes Service or the consul.hashicorp.com/connect-service annotation, default would not match the service name newrelic-statsd.
  • Loading branch information
dpacheconr committed Apr 19, 2022
1 parent bf114b5 commit 406dda1
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Here are examples of Kubernetes manifests for deployment and service objects:
labels:
app: newrelic-statsd
spec:
serviceAccountName: newrelic-statsd
containers:
- name: newrelic-statsd
image: newrelic/nri-statsd:latest
Expand Down Expand Up @@ -128,6 +129,17 @@ Here are examples of Kubernetes manifests for deployment and service objects:
selector:
app: newrelic-statsd
```

**service-account.yml**:

```
apiVersion: v1
kind: ServiceAccount
metadata:
name: newrelic-statsd
namespace: default
```


For configuration details, see [Kubernetes configuration](#k8s-config).
</Collapser>
Expand Down

0 comments on commit 406dda1

Please sign in to comment.