diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 2214984..31b56ec 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -5,4 +5,6 @@ name: k8dash description: A Helm chart for Kubernetes K8Dash maintainers: - name: Ivan Kirianov - email: kiryanov.i@gmail.com \ No newline at end of file + email: kiryanov.i@gmail.com + - name: Eric Herbrandson + email: eric@herbrandson.com \ No newline at end of file diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml new file mode 100644 index 0000000..ed06feb --- /dev/null +++ b/helm/templates/ingress.yaml @@ -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 -}} \ No newline at end of file diff --git a/helm/values.yaml b/helm/values.yaml index 3cc6c89..5edfb4d 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -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