docs/cert_manager.md: Update docs for K8s v1.22 (#7877)
This commit is contained in:
parent
79166496f3
commit
dfd35892f2
1 changed files with 6 additions and 3 deletions
|
@ -56,7 +56,7 @@ ingress_nginx_enabled: true
|
||||||
For example, if you're using the Nginx ingress controller, you can secure the Prometheus ingress by adding the annotation `cert-manager.io/cluster-issuer: ca-issuer` and the `spec.tls` section to the `Ingress` resource definition.
|
For example, if you're using the Nginx ingress controller, you can secure the Prometheus ingress by adding the annotation `cert-manager.io/cluster-issuer: ca-issuer` and the `spec.tls` section to the `Ingress` resource definition.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus-k8s
|
name: prometheus-k8s
|
||||||
|
@ -76,9 +76,12 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: prometheus-k8s
|
service:
|
||||||
servicePort: web
|
name: prometheus-k8s
|
||||||
|
port:
|
||||||
|
name: web
|
||||||
```
|
```
|
||||||
|
|
||||||
Once deployed to your K8s cluster, every 3 months cert-manager will automatically rotate the Prometheus `prometheus.example.com` TLS client certificate and key, and store these as the Kubernetes `prometheus-dashboard-certs` secret.
|
Once deployed to your K8s cluster, every 3 months cert-manager will automatically rotate the Prometheus `prometheus.example.com` TLS client certificate and key, and store these as the Kubernetes `prometheus-dashboard-certs` secret.
|
||||||
|
|
Loading…
Reference in a new issue