Skip to content

Commit

Permalink
Update TLS README
Browse files Browse the repository at this point in the history
Signed-off-by: Jayapriya Pai <[email protected]>
  • Loading branch information
slashpai committed Jun 9, 2023
1 parent 8d635eb commit 0a91b80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tls/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ TLS Example
This example shows how to setup TLS on Service Monitor, so that Prometheus can scrape targets secured by TLS.

Then we apply the manifests in this directory. This snippet is in `run.sh`.

```bash
kubectl apply -f namespace.yaml
kubectl apply -f secret-tls-certs.yaml
Expand All @@ -14,7 +15,11 @@ kubectl apply -f service.yaml
kubectl apply -f service-monitor.yaml
```

It will setup a namespace `example-monitoring-tls`, inside which, there is a service secured by TLS using private key and server certificate, as well as a service monitor using the same pair of key and certificate to access the service endpoint.
```bash
bash run.sh
```

It will setup a namespace `example-monitoring-tls`, inside which there is a service secured by TLS using private key and server certificate, as well as a service monitor using the same pair of key and certificate to access the service endpoint.

In the given example certificate is not validated. For a better approach we need to use cert-manager. More examples to follow on this.

Expand Down

0 comments on commit 0a91b80

Please sign in to comment.