UNCLASSIFIED

controlplane.yaml 4.42 KB
Newer Older
Josh Wolf's avatar
Josh Wolf committed
1 2 3 4 5 6 7 8 9 10 11
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  name: istiocontrolplane
  namespace: {{ .Release.Namespace }}
spec:
  profile: {{ .Values.profile }}
  hub: {{ .Values.hub }}
  tag: {{ .Values.tag }}

  components:
Nick Nellis's avatar
Nick Nellis committed
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
    pilot:
      k8s:
{{- if and .Values.istiod.hpaSpec.maxReplicas .Values.istiod.hpaSpec.minReplicas }}
        hpaSpec:
          maxReplicas: {{ .Values.istiod.hpaSpec.maxReplicas }}
          minReplicas: {{ .Values.istiod.hpaSpec.minReplicas }}
          scaleTargetRef:
            apiVersion: apps/v1
            kind: Deployment
            name: istiod
          metrics:
            {{- toYaml .Values.istiod.hpaSpec.metrics | nindent 12 }}
{{- end }}
        replicaCount: {{ .Values.istiod.replicaCount }}
        resources:
          {{- toYaml .Values.istiod.resources | nindent 10 }}
        strategy:
          {{- toYaml .Values.istiod.strategy | nindent 10 }}
        serviceAnnotations:
          {{- .Values.istiod.serviceAnnotations | default (dict) | toYaml | nindent 10 }}
        podAnnotations:
          {{- .Values.istiod.podAnnotations | default (dict) | toYaml | nindent 10 }}
        nodeSelector:
          {{- .Values.istiod.nodeSelector | default (dict) | toYaml | nindent 10 }}
        affinity:
          {{- .Values.istiod.affinity | default (dict) | toYaml | nindent 10 }}
        tolerations:
          {{- .Values.istiod.tolerations | default (list) | toYaml | nindent 10 }}
40
    {{- if .Values.openshift }}
Nick Nellis's avatar
Nick Nellis committed
41
    {{- with .Values.cni }}
42 43 44
    cni:
      enabled: true
      namespace: kube-system
Nick Nellis's avatar
Nick Nellis committed
45 46 47 48 49 50 51 52 53 54 55
      k8s:
        podAnnotations:
          {{- .podAnnotations | default (dict) | toYaml | nindent 10 }}
        nodeSelector:
          {{- .nodeSelector | default (dict) | toYaml | nindent 10 }}
        tolerations:
          {{- .tolerations | default (list) | toYaml | nindent 10 }}
        affinity:
          {{- .affinity | default (dict) | toYaml | nindent 10 }}
    {{- end }}
    {{- end }}
Josh Wolf's avatar
Josh Wolf committed
56
    ingressGateways:
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
    {{- if .Values.ingressgateway }}
    {{- required "`ingressgateway` value has been deprecated.  Please use the new format in the `ingressGateways` value." "" }}
    {{- end }}
    {{- range $name, $values := .Values.ingressGateways }}
    - name: {{ $name }}
      namespace: {{ $.Release.Namespace }}
      enabled: {{ if eq (toString $values.enabled) "<nil>" }}true{{ else }}{{ $values.enabled }}{{ end }}
      label:
        app: {{ $name }}
        istio: ingressgateway
        {{- if $values.extraLabels }}
          {{- toYaml $values.extraLabels | nindent 8 }}
        {{- end }}
      k8s:
        {{- toYaml $values.k8s | nindent 8 }}
    {{- end }}
Josh Wolf's avatar
Josh Wolf committed
73 74 75

  meshConfig:
    accessLogFile: /dev/stdout
runyontr's avatar
runyontr committed
76 77 78 79 80
    enableTracing: {{ .Values.tracing.enabled }}
    defaultConfig:
      tracing:
        sampling: {{ .Values.tracing.sampling }}
      zipkinAddress: {{ .Values.tracing.address }}:{{.Values.tracing.port}}
81
      holdApplicationUntilProxyStarts: true
Nick Nellis's avatar
Nick Nellis committed
82 83 84
    {{- if .Values.meshConfig }}
    {{- toYaml .Values.meshConfig | nindent 4 }}
    {{- end }}
Josh Wolf's avatar
Josh Wolf committed
85 86

  values:
87 88 89 90 91 92 93
    {{- if .Values.openshift }}
    cni:
      repair:
        enabled: false
      image: {{ .Values.cni.image.name }}
      hub: {{ .Values.cni.image.hub }}
      tag: {{ .Values.cni.image.tag }}
Nick Nellis's avatar
Nick Nellis committed
94 95
      cniBinDir: {{ .Values.cni.binDir | default "/var/lib/cni/bin" }}
      cniConfDir: {{ .Values.cni.confDir | default "/etc/cni/multus/net.d" }}
96
      chained: false
Nick Nellis's avatar
Nick Nellis committed
97
      cniConfFileName: {{ .Values.cni.confFileName | default "istio-cni.conf" }}
98 99 100
      excludeNamespaces:
       - istio-system
       - kube-system
Nick Nellis's avatar
Nick Nellis committed
101
      logLevel: {{ .Values.cni.logLevel | default "info" }}
102
    {{- end }}
Josh Wolf's avatar
Josh Wolf committed
103
    global:
Nick Nellis's avatar
Nick Nellis committed
104 105 106
      {{- if .Values.imagePullPolicy }}
      imagePullPolicy: {{ .Values.imagePullPolicy }}
      {{- end }}
Josh Wolf's avatar
Josh Wolf committed
107 108 109 110
      {{- with .Values.imagePullSecrets }}
      imagePullSecrets:
        {{- toYaml . | nindent 8 }}
      {{- end }}
Nick Nellis's avatar
Nick Nellis committed
111
      {{- if .Values.tracing.enabled }}
runyontr's avatar
runyontr committed
112 113 114
      tracer:
        zipkin:
          address: {{ .Values.tracing.address }}:{{.Values.tracing.port}}
Nick Nellis's avatar
Nick Nellis committed
115 116 117
      {{ end }}
      {{- if .Values.values.global }}
      {{- toYaml .Values.values.global | nindent 6 }}
118
      {{- end }}
Josh Wolf's avatar
Josh Wolf committed
119 120
    sidecarInjectorWebhook:
      rewriteAppHTTPProbe: true
121 122 123 124
      {{- if .Values.openshift }}
      injectedAnnotations:
        k8s.v1.cni.cncf.io/networks: istio-cni
      {{- end }}
Josh Wolf's avatar
Josh Wolf committed
125 126 127 128 129 130

      neverInjectSelector:
        - matchExpressions:
            - key: app.kubernetes.io/component
              operator: In
              values: [fluentd-configcheck]