Skip to content

Commit

Permalink
helm chart fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Place1 committed Mar 31, 2020
1 parent 8f36a04 commit a526a2e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions deploy/helm/wg-access-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "wg-access-server.fullname" . }}
labels:
{{- include "wg-access-server.labels" . | nindent 4 }}
data:
config.yaml: |-
{{- if .Values.config.wireguard }}
{{ toYaml .Values.config.wireguard | indent 4 }}
{{- end }}
2 changes: 1 addition & 1 deletion deploy/helm/wg-access-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
- host: {{ . | quote }}
http:
paths:
- path: /
Expand Down
7 changes: 5 additions & 2 deletions deploy/helm/wg-access-server/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
targetPort: 8000
protocol: TCP
name: http
selector:
Expand All @@ -25,9 +25,12 @@ metadata:
{{- include "wg-access-server.labels" . | nindent 4 }}
spec:
type: {{ .Values.wireguard.service.type }}
{{- if .Values.wireguard.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.wireguard.service.loadBalancerIP }}
{{- end }}
ports:
- port: 51820
targetPort: wireguard
targetPort: 51820
protocol: UDP
name: wireguard
selector:
Expand Down

0 comments on commit a526a2e

Please sign in to comment.