mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-24 04:16:18 +00:00
Adding ingress.yaml to helm chart
This commit is contained in:
+3
-1
@@ -5,4 +5,6 @@ name: k8dash
|
||||
description: A Helm chart for Kubernetes K8Dash
|
||||
maintainers:
|
||||
- name: Ivan Kirianov
|
||||
email: kiryanov.i@gmail.com
|
||||
email: kiryanov.i@gmail.com
|
||||
- name: Eric Herbrandson
|
||||
email: eric@herbrandson.com
|
||||
@@ -0,0 +1,28 @@
|
||||
{{- if .Values.ingress.enabled -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: k8dash
|
||||
labels:
|
||||
app: k8dash
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
{{- if .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.ingress.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .Values.ingress.host }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: k8dash
|
||||
servicePort: 80
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{ toYaml .Values.ingress.tls | indent 4 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
+20
-2
@@ -1,20 +1,38 @@
|
||||
replicaCount: 1
|
||||
revisionHistoryLimit: 1
|
||||
|
||||
image:
|
||||
registry: herbrandson
|
||||
name: k8dash
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
pullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 300Mi
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
|
||||
service:
|
||||
name: Node
|
||||
type: NodePort
|
||||
servicePort: 4654
|
||||
|
||||
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
## Kubernetes Dashboard Ingress annotations
|
||||
# annotations:
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
|
||||
## Kubernetes Dashboard Ingress hostnames
|
||||
# host: kubernetes-dashboard.domain.com
|
||||
|
||||
## Kubernetes Dashboard Ingress TLS configuration
|
||||
# tls:
|
||||
# - secretName: kubernetes-dashboard-tls
|
||||
# hosts:
|
||||
# - kubernetes-dashboard.domain.com
|
||||
|
||||
Reference in New Issue
Block a user