Skip to content

Commit

Permalink
Merge pull request #1 from stakater-charts/update-annotations
Browse files Browse the repository at this point in the history
Add xposer annotations
  • Loading branch information
kahootali authored Oct 16, 2018
2 parents b17a3ee + 4089631 commit 1dc974a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
19 changes: 3 additions & 16 deletions grafana/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,10 @@ metadata:
expose: "{{ .Values.grafana.service.expose }}"
{{ include "grafana.labels.stakater" . | indent 4 }}
{{ include "grafana.labels.chart" . | indent 4 }}
{{- if .Values.grafana.service.annotations }}
annotations:
fabric8.io/ingress.path: {{ .Values.grafana.service.ingressPath }}
fabric8.io/ingress.annotations: |-
ingress.kubernetes.io/rewrite-target: {{ .Values.grafana.service.rewriteTarget }}
ingress.kubernetes.io/force-ssl-redirect: {{ .Values.grafana.service.forceSslRedirect }}
kubernetes.io/ingress.class: {{ .Values.grafana.service.ingressClass }}
{{- with .Values.grafana.forecastle.expose }}
forecastle.stakater.com/expose: {{ . }}
{{- end }}
{{- with .Values.grafana.forecastle.icon }}
forecastle.stakater.com/icon: {{ . }}
{{- end }}
{{- with .Values.grafana.service.annotations }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
{{ toYaml .Values.grafana.service.annotations | indent 4 }}
{{- end }}
spec:
ports:
- port: 80
Expand Down
17 changes: 13 additions & 4 deletions grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,20 @@ grafana:
password: dummy
service:
expose: "true"
ingressPath: /grafana
rewriteTarget: /
forceSslRedirect: "false"
ingressClass: internal-ingress
annotations:
config.xposer.stakater.com/IngressURLPath: /grafana
config.xposer.stakater.com/Domain: stackator.com
config.xposer.stakater.com/IngressNameTemplate: '{{.Service}}-{{.Namespace}}'
config.xposer.stakater.com/IngressURLTemplate: '{{.Service}}.{{.Domain}}'
config.xposer.stakater.com/TLS: "true"
xposer.stakater.com/annotations: |-
kubernetes.io/ingress.class: internal-ingress
ingress.kubernetes.io/force-ssl-redirect: false
ingress.kubernetes.io/rewrite-target: /
certmanager.k8s.io/cluster-issuer: letsencrypt-production
# Add these under xposer.stakater.com/annotations
# forecastle.stakater.com/expose: true
# forecastle.stakater.com/icon: https://cdn-images-1.medium.com/max/521/0*D__TQ7qMdoq3Y7kP.png
shouldUseGenericUrl: false # if true, use the init-container to replace the values in the configmaps
configFiles:

0 comments on commit 1dc974a

Please sign in to comment.