mirror of
https://github.com/puppetlabs/vmpooler-deployment.git
synced 2026-01-26 03:28:41 -05:00
Create Helm repository
This commit is contained in:
parent
0b21ff051b
commit
0f4c2310b8
19 changed files with 24 additions and 1 deletions
33
helm-charts/vmpooler/templates/ingress.yaml
Normal file
33
helm-charts/vmpooler/templates/ingress.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{{- if .Values.ingress.enabled -}}
|
||||
{{- $fullName := include "vmpooler.fullname" . -}}
|
||||
{{- $svcPort := .Values.service.port -}}
|
||||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
{{- else -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
{{- end }}
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
{{- include "vmpooler.labels" . | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
rules:
|
||||
- host: '{{ .Values.vmpoolerInstance }}.{{ .Values.ingress.domain }}'
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: {{ $fullName }}-api
|
||||
servicePort: {{ $svcPort }}
|
||||
path: /
|
||||
{{ if .Values.ingress.useTLS -}}
|
||||
tls:
|
||||
- hosts:
|
||||
- '{{ .Values.vmpoolerInstance }}.{{ .Values.ingress.domain }}'
|
||||
secretName: '{{ .Values.vmpoolerInstance }}.{{ .Values.ingress.domain }}-tls'
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue