Skip to content
Snippets Groups Projects

staging: Deploy vault in elastic infra

Merged Antoine R. Dumont requested to merge migrate-staging-vault into production
1 unresolved thread
Files
26
{{ if .Values.graphql.enabled -}}
{{ if and .Values.graphql.ingress .Values.graphql.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{ .Values.namespace }}
name: graphql-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
{{- if .Values.graphql.ingress.className }}
ingressClassName: {{ .Values.graphql.ingress.className }}
{{- end }}
rules:
- http:
paths:
- path: {{ .Values.graphql.ingress.httpPath }}
pathType: Prefix
backend:
service:
name: graphql
port:
number: 5013
{{- if .Values.graphql.ingress.host }}
host: {{ .Values.graphql.ingress.host }}
{{- end }}
{{ end }}
{{ if and .Values.graphql.enabled .Values.graphql.ingress .Values.graphql.ingress.enabled -}}
{{- include "swh.ingress" (dict "Values" .Values
"serviceType" "graphql"
"configuration" .Values.graphql) -}}
{{ end }}
Loading