UNCLASSIFIED

controlplane.yaml 4.38 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}}
Nick Nellis's avatar
Nick Nellis committed
81 82 83
    {{- if .Values.meshConfig }}
    {{- toYaml .Values.meshConfig | nindent 4 }}
    {{- end }}
Josh Wolf's avatar
Josh Wolf committed
84 85

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

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