Skip to content

Commit

Permalink
add https certificate to prombench.prometheus.io
Browse files Browse the repository at this point in the history
Signed-off-by: Vandit Singh <[email protected]>
  • Loading branch information
Vandit1604 committed Nov 3, 2024
1 parent 9e660d4 commit 607b5bf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
12 changes: 12 additions & 0 deletions prombench/manifests/cert-manager/1b_certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: prometheus-meta
namespace: default
spec:
dnsNames:
- prombench.prometheus.io
secretName: prombench-prometheus-tls
issuerRef:
name: letsencrypt-cluster-issuer
kind: ClusterIssuer
15 changes: 15 additions & 0 deletions prombench/manifests/cert-manager/1c_issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-cluster-issuer
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef:
name: letsencrypt-prod
solvers:
- http01:
ingress:
class: nginx

8 changes: 6 additions & 2 deletions prombench/manifests/cluster-infra/3b_prometheus-meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ metadata:
prometheus: meta
app: prometheus-meta
spec:
type: NodePort
type: ClusterIP
ports:
- name: prom-web
port: 80
Expand All @@ -257,9 +257,13 @@ kind: Ingress
metadata:
name: ingress-prometheus-meta
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- prombench.prometheus.io
secretName: prombench-prometheus-tls
rules:
- http:
paths:
Expand Down

0 comments on commit 607b5bf

Please sign in to comment.