Skip to content

Commit

Permalink
Merge pull request #13 from akyriako/6-add-umami-chart
Browse files Browse the repository at this point in the history
added tls certificate for umami ingress #6
  • Loading branch information
akyriako authored Sep 6, 2024
2 parents 9b6b3f0 + 691f4c7 commit a1f3905
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/umami/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.1.6
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
16 changes: 16 additions & 0 deletions charts/umami/templates/umami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ spec:
selector:
app: {{ include "umami.fullname" . }}-web
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ include "umami.fullname" . }}-web-certificate
spec:
dnsNames:
- {{ required "ingress.host is required" .Values.ingress.host }}
issuerRef:
kind: ClusterIssuer
name: {{ required "ingress.clusterIssuer is required" .Values.ingress.clusterIssuer }}
secretName: {{ include "umami.fullname" . }}-web-certificate-tls
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -120,6 +132,10 @@ metadata:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: cce
tls:
- hosts:
- {{ required "ingress.host is required" .Values.ingress.host }}
secretName: {{ include "umami.fullname" . }}-web-certificate-tls
rules:
- host: {{ required "ingress.host is required" .Values.ingress.host }}
http:
Expand Down
1 change: 1 addition & 0 deletions charts/umami/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ingress:
elbId:
host:
port: 80
clusterIssuer: opentelekomcloud-letsencrypt-staging

0 comments on commit a1f3905

Please sign in to comment.