-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added TLS support for web - Added optional configurations `cert_file` and `key_file` to run web server with https Signed-off-by: Dmytro Bondar <[email protected]> * Helm chart update - Refactored Ingress to use one host only (`config.web.external_url` is required) - Added Certificate resource template (secret is mounted to container into `/app/certs/`) - Added support for service with mixed protocols (exposes UI and Wireguard ports on same IP) - Added helm-docs target to makefile - Changed pod labels to use selectorLabels - Removed default probes (app runs without healthy web) - Removed sections from README Signed-off-by: Dmytro Bondar <[email protected]> * Fix chart workflow path filter * Fix chart lint issue * Skip clean-up tested chart * Try k3d cluster --------- Signed-off-by: Dmytro Bondar <[email protected]>
- Loading branch information
Showing
17 changed files
with
286 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{/* | ||
Define the service template | ||
{{- include "wg-portal.service" (dict "context" $ "scope" .Values.service.<name> "ports" list "name" "<name>") -}} | ||
*/}} | ||
{{- define "wg-portal.service.tpl" -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
{{- with .scope.annotations }} | ||
annotations: {{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
labels: {{- include "wg-portal.labels" .context | nindent 4 }} | ||
name: {{ include "wg-portal.fullname" .context }}{{ ternary "" (printf "-%s" .name) (empty .name) }} | ||
spec: | ||
{{- with .scope.clusterIP }} | ||
clusterIP: {{ . }} | ||
{{- end }} | ||
{{- with .scope.externalIPs }} | ||
externalIPs: {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .scope.externalName }} | ||
externalName: {{ . }} | ||
{{- end }} | ||
{{- with .scope.externalTrafficPolicy }} | ||
externalTrafficPolicy: {{ . }} | ||
{{- end }} | ||
{{- with .scope.healthCheckNodePort }} | ||
healthCheckNodePort: {{ . }} | ||
{{- end }} | ||
{{- with .scope.loadBalancerIP }} | ||
loadBalancerIP: {{ . }} | ||
{{- end }} | ||
{{- with .scope.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
ports: {{- toYaml .ports | nindent 4 }} | ||
{{- with .scope.publishNotReadyAddresses }} | ||
publishNotReadyAddresses: {{ . }} | ||
{{- end }} | ||
{{- with .scope.sessionAffinity }} | ||
sessionAffinity: {{ . }} | ||
{{- end }} | ||
{{- with .scope.sessionAffinityConfig }} | ||
sessionAffinityConfig: {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .scope.topologyKeys }} | ||
topologyKeys: {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .scope.type }} | ||
type: {{ . }} | ||
{{- end }} | ||
selector: {{- include "wg-portal.selectorLabels" .context | nindent 4 }} | ||
{{- end -}} |
Oops, something went wrong.