apiVersion: v1
kind: Template
metadata:
  name: smcp-template
  namespace: maistra-pipelines
objects:
- apiVersion: maistra.io/v2
  kind: ServiceMeshControlPlane
  metadata:
    name: basic-install
    namespace: ${NAMESPACE}
  spec:
    version: ${VERSION_TAG}
    security:
      dataPlane:
        mtls: true
      controlPlane:
        mtls: true
        tls:
          minProtocolVersion: TLSv1_2
          maxProtocolVersion: TLSv1_2
          cipherSuites:
            - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
          ecdhCurves:
            - CurveP256
            - CurveP384
    istio:
      gateways:
        istio-egressgateway:
          autoscaleEnabled: false
        istio-ingressgateway:
          autoscaleEnabled: false
          ior_enabled: false
      mixer:
        policy:
          autoscaleEnabled: false
        telemetry:
          autoscaleEnabled: false
      pilot:
        autoscaleEnabled: false
        traceSampling: 100
      kiali:
        enabled: true
      grafana:
        enabled: true
      tracing:
        enabled: true
        jaeger:
          template: all-in-one
parameters:
- description: NAMESPACE for Control Plane
  displayName: namespace
  name: NAMESPACE
  value: "istio-system"
  required: true
- description: Version Tag for Control Plane
  displayName: version-tag
  name: VERSION_TAG
  value: "v2.0"
  required: true

