Skip to content

Commit

Permalink
Optimize templating with traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Getz committed May 8, 2023
1 parent 1a4a830 commit 9a9872c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/traefik/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ dependencies:
version: 10.22.0
description: traefik
name: traefik
version: 10.22.0-after-proxy-v2
version: 10.22.0-after-proxy-v3
8 changes: 5 additions & 3 deletions charts/traefik/templates/websecure-internal-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{{- $afterProxyPort := index .Values.traefik.ports "after-proxy"}}

apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}-websecure-internal
spec:
type: ClusterIP
ports:
- port: 8444
targetPort: 8444
- port: {{$afterProxyPort.port}}
targetPort: {{$afterProxyPort.port}}
protocol: TCP
name: secure-internal
name: after-proxy
selector:
app.kubernetes.io/name: traefik
app.kubernetes.io/instance: {{ .Release.Name }}

0 comments on commit 9a9872c

Please sign in to comment.