Rafabios feature/ingress-and-svc-type (#135)
* added ingress values and service type field * added ingress template * added service type to template * Removed namespace field
This commit is contained in:
Родитель
45e0fdca04
Коммит
20f89dbccd
|
@ -0,0 +1,28 @@
|
|||
{{- if .Values.ingress.enabled }}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
{{- range $key, $value := .Values.ingress.annotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ .Values.name }}
|
||||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
app.kubernetes.io/instance: "{{ .Release.Name }}"
|
||||
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
|
||||
name: {{ .Values.name }}
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .Values.ingress.host }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: {{ .Values.name }}
|
||||
servicePort: {{ .Values.service.port }}
|
||||
path: /
|
||||
{{- end -}}
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{ toYaml .Values.ingress.tls | indent 4 }}
|
||||
{{- end -}}
|
|
@ -15,3 +15,4 @@ spec:
|
|||
targetPort: {{ .Values.service.targetPort }}
|
||||
selector:
|
||||
app.kubernetes.io/name: {{ .Values.name }}
|
||||
type: {{ .Values.service.type }}
|
||||
|
|
|
@ -15,6 +15,7 @@ resources: {}
|
|||
service:
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
type: ClusterIP
|
||||
## Configure extra options for liveness and readiness probes
|
||||
livenessProbe:
|
||||
enabled: true
|
||||
|
@ -30,3 +31,8 @@ readinessProbe:
|
|||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
successThreshold: 1
|
||||
ingress:
|
||||
enabled: false
|
||||
host: sloop.example.com
|
||||
annotations: {}
|
||||
tls: {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче