UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
namespace.yaml 1.06 KiB
Newer Older
joshwolf's avatar
joshwolf committed
{{- if .Values.istio.enabled }}
Josh Wolf's avatar
Josh Wolf committed
apiVersion: v1
kind: Namespace
metadata:
  name: istio-system
Thomas Runyon's avatar
Thomas Runyon committed
  labels:
    app.kubernetes.io/name: istio-controlplane
    app.kubernetes.io/component: "core"
    {{- include "commonLabels" . | nindent 4}}
{{- if ( include "imagePullSecret" . ) }}
---
apiVersion: v1
kind: Secret
metadata:
  name: private-registry
  namespace: istio-system
Thomas Runyon's avatar
Thomas Runyon committed
  labels:
    app.kubernetes.io/name: istio-controlplane
    app.kubernetes.io/component: "core"
    {{- include "commonLabels" . | nindent 4}}
type: kubernetes.io/dockerconfigjson
data:
  .dockerconfigjson: {{ template "imagePullSecret" . }}
{{- end }}
---
{{- if and .Values.istio.ingress.key .Values.istio.ingress.cert }}
apiVersion: v1
kind: Secret
metadata:
  name: wildcard-cert
  namespace: istio-system
  labels:
    app.kubernetes.io/name: istio-controlplane
    app.kubernetes.io/component: "core"
    {{- include "commonLabels" . | nindent 4}}
type: kubernetes.io/tls
data:
  tls.crt: {{ .Values.istio.ingress.cert | b64enc }}
  tls.key: {{ .Values.istio.ingress.key | b64enc}}
{{- end }}
joshwolf's avatar
joshwolf committed
{{- end }}