Skip to content

Commit 4c8c989

Browse files
committed
waf-multihost
1 parent 33c6fbb commit 4c8c989

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

.vscode/settings.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"sarif-viewer.connectToGithubCodeScanning": "off"
2+
"sarif-viewer.connectToGithubCodeScanning": "off",
3+
"workbench.colorCustomizations": {
4+
"activityBar.background": "#5D0D17",
5+
"titleBar.activeBackground": "#821221",
6+
"titleBar.activeForeground": "#FEFBFC"
7+
}
38
}

charts/waf-multihost/Chart.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v2
2+
name: waf-multihost
3+
description: CloudGuard WAF Deployment for multiple hostnames
4+
version: 0.1.0
5+
appVersion: "1.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- range $host := .Values.certificates.hosts }}
2+
---
3+
apiVersion: cert-manager.io/v1
4+
kind: Certificate
5+
metadata:
6+
name: {{ $.Release.Name }}-{{ $host.hostname | replace "." "-" }}
7+
spec:
8+
secretName: {{ $.Release.Name }}-{{ $host.hostname | replace "." "-" }}-tls
9+
dnsNames:
10+
- {{ $host.hostname }}
11+
issuerRef:
12+
name: {{ $.Values.certificates.issuer }}
13+
kind: ClusterIssuer # or Issuer, depending on your setup
14+
{{- end }}

charts/waf-multihost/values.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
replicaCount: 1
2+
3+
image:
4+
repository: my-app
5+
tag: "latest"
6+
7+
8+
certificates:
9+
issuer: letsencrypt-prod # Your cert-manager issuer
10+
hosts:
11+
- hostname: devv1.klaud.online
12+
- hostname: devv9.klaud.online

0 commit comments

Comments
 (0)