Skip to content

Commit

Permalink
Merge pull request 'feat: Add middleware and ingress tcp route' (#367…
Browse files Browse the repository at this point in the history
…) from puppetdb into master

Reviewed-on: https://gitea.obmondo.com/EnableIT/KubeAid/pulls/367
  • Loading branch information
ashish1099 committed Aug 23, 2024
2 parents 0cff28f + a329313 commit 8b22008
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: puppetdb-{{ .Values.customerid }}
spec:
entryPoints:
- websecure
routes:
- match: HostSNI(`{{ .Values.customerid }}.puppetdb.obmondo.com`)
priority: 10
services:
- name: puppetserver-{{ .Values.customerid }}-puppetdb
port: pdb-https
middlewares:
- name: middleware-{{ .Values.customerid }}
tls:
passthrough: true
options:
name: prometheus-puppet-agent-tls-auth
namespace: traefik
10 changes: 10 additions & 0 deletions argocd-helm-charts/puppetserver/templates/middleware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: middleware-{{ .Values.customerid }}
spec:
ipAllowList:
sourceRange:
{{- range .Values.ipAllowedList }}
- "{{ . }}"
{{- end }}

0 comments on commit 8b22008

Please sign in to comment.