aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/00-init/gloo/templates/10-ingress-deployment.yaml
blob: 7314b4e3fbf6d80c0fce97f4b71d48d828abd15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{{- if or (.Values.ingress.enabled) (.Values.settings.integrations.knative.enabled) }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    app: gloo
    gloo: ingress
  name: ingress
  namespace: {{ .Release.Namespace }}
spec:
  replicas: {{ .Values.ingress.deployment.replicas }}
  selector:
    matchLabels:
      gloo: ingress
  template:
    metadata:
      labels:
        gloo: ingress
    spec:
      containers:
      - image: "{{ .Values.ingress.deployment.image.repository }}:{{ .Values.ingress.deployment.image.tag }}"
        imagePullPolicy: {{ .Values.ingress.deployment.image.pullPolicy }}
        name: ingress
        env:
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
{{- if .Values.settings.integrations.knative.enabled }}
        - name: "ENABLE_KNATIVE_INGRESS"
          value: "true"
{{- end }}

{{- if not (.Values.ingress.enabled) }}
        - name: "DISABLE_KUBE_INGRESS"
          value: "true"
{{- end }}


{{- end }}