Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to find api field in struct meshConfigExtensionProvider for the json field "envoyOtelAls" - installing 1.13.3 #103

Closed
peterj opened this issue Jun 3, 2022 · 1 comment
Assignees

Comments

@peterj
Copy link
Contributor

peterj commented Jun 3, 2022

Repo steps:

  1. Download GetMesh CLI
  2. Install 1.13.3 (e.g. getmesh istioctl install --set profile=demo)

Error:

Error: could not overlay user config over base: json merge error (unable to find api field in struct meshConfigExtensionProvider for the json field "envoyOtelAls") for base object: {
  "apiVersion": "install.istio.io/v1alpha1",
  "kind": "IstioOperator",
  "metadata": {
    "namespace": "istio-system"
  },
  "spec": {
    "components": {
      "base": {
        "enabled": true
      },
      "cni": {
        "enabled": false
      },
      "egressGateways": [
        {
          "enabled": true,
          "k8s": {
            "resources": {
              "requests": {
                "cpu": "10m",
                "memory": "40Mi"
              }
            }
          },
          "name": "istio-egressgateway"
        }
      ],
      "ingressGateways": [
        {
          "enabled": true,
          "k8s": {
            "resources": {
              "requests": {
                "cpu": "10m",
                "memory": "40Mi"
              }
            },
            "service": {
              "ports": [
                {
                  "name": "status-port",
                  "port": 15021,
                  "targetPort": 15021
                },
                {
                  "name": "http2",
                  "port": 80,
                  "targetPort": 8080
                },
                {
                  "name": "https",
                  "port": 443,
                  "targetPort": 8443
                },
                {
                  "name": "tcp",
                  "port": 31400,
                  "targetPort": 31400
                },
                {
                  "name": "tls",
                  "port": 15443,
                  "targetPort": 15443
                }
              ]
            }
          },
          "name": "istio-ingressgateway"
        }
      ],
      "istiodRemote": {
        "enabled": false
      },
      "pilot": {
        "enabled": true,
        "k8s": {
          "env": [
            {
              "name": "PILOT_TRACE_SAMPLING",
              "value": "100"
            }
          ],
          "resources": {
            "requests": {
              "cpu": "10m",
              "memory": "100Mi"
            }
          }
        }
      }
    },
    "hub": "containers.istio.tetratelabs.com",
    "meshConfig": {
      "accessLogFile": "/dev/stdout",
      "defaultConfig": {
        "proxyMetadata": {}
      },
      "enablePrometheusMerge": true,
      "extensionProviders": [
        {
          "envoyOtelAls": {
            "port": 4317,
            "service": "otel-collector.istio-system.svc.cluster.local"
          },
          "name": "otel"
        }
      ]
    },
    "tag": "1.13.3-tetrate-v0",
    "values": {
      "base": {
        "enableCRDTemplates": false,
        "validationURL": ""
      },
      "defaultRevision": "",
      "gateways": {
        "istio-egressgateway": {
          "autoscaleEnabled": false,
          "env": {},
          "name": "istio-egressgateway",
          "secretVolumes": [
            {
              "mountPath": "/etc/istio/egressgateway-certs",
              "name": "egressgateway-certs",
              "secretName": "istio-egressgateway-certs"
            },
            {
              "mountPath": "/etc/istio/egressgateway-ca-certs",
              "name": "egressgateway-ca-certs",
              "secretName": "istio-egressgateway-ca-certs"
            }
          ],
          "type": "ClusterIP"
        },
        "istio-ingressgateway": {
          "autoscaleEnabled": false,
          "env": {},
          "name": "istio-ingressgateway",
          "secretVolumes": [
            {
              "mountPath": "/etc/istio/ingressgateway-certs",
              "name": "ingressgateway-certs",
              "secretName": "istio-ingressgateway-certs"
            },
            {
              "mountPath": "/etc/istio/ingressgateway-ca-certs",
              "name": "ingressgateway-ca-certs",
              "secretName": "istio-ingressgateway-ca-certs"
            }
          ],
          "type": "LoadBalancer"
        }
      },
      "global": {
        "configValidation": true,
        "defaultNodeSelector": {},
        "defaultPodDisruptionBudget": {
          "enabled": true
        },
        "defaultResources": {
          "requests": {
            "cpu": "10m"
          }
        },
        "imagePullPolicy": "",
        "imagePullSecrets": [],
        "istioNamespace": "istio-system",
        "istiod": {
          "enableAnalysis": false
        },
        "jwtPolicy": "third-party-jwt",
        "logAsJson": false,
        "logging": {
          "level": "default:info"
        },
        "meshNetworks": {},
        "mountMtlsCerts": false,
        "multiCluster": {
          "clusterName": "",
          "enabled": false
        },
        "network": "",
        "omitSidecarInjectorConfigMap": false,
        "oneNamespace": false,
        "operatorManageWebhooks": false,
        "pilotCertProvider": "istiod",
        "priorityClassName": "",
        "proxy": {
          "autoInject": "enabled",
          "clusterDomain": "cluster.local",
          "componentLogLevel": "misc:error",
          "enableCoreDump": false,
          "excludeIPRanges": "",
          "excludeInboundPorts": "",
          "excludeOutboundPorts": "",
          "image": "proxyv2",
          "includeIPRanges": "*",
          "logLevel": "warning",
          "privileged": false,
          "readinessFailureThreshold": 30,
          "readinessInitialDelaySeconds": 1,
          "readinessPeriodSeconds": 2,
          "resources": {
            "limits": {
              "cpu": "2000m",
              "memory": "1024Mi"
            },
            "requests": {
              "cpu": "10m",
              "memory": "40Mi"
            }
          },
          "statusPort": 15020,
          "tracer": "zipkin"
        },
        "proxy_init": {
          "image": "proxyv2",
          "resources": {
            "limits": {
              "cpu": "2000m",
              "memory": "1024Mi"
            },
            "requests": {
              "cpu": "10m",
              "memory": "10Mi"
            }
          }
        },
        "sds": {
          "token": {
            "aud": "istio-ca"
          }
        },
        "sts": {
          "servicePort": 0
        },
        "tracer": {
          "datadog": {},
          "lightstep": {},
          "stackdriver": {},
          "zipkin": {}
        },
        "useMCP": false
      },
      "istiodRemote": {
        "injectionURL": ""
      },
      "pilot": {
        "autoscaleEnabled": false,
        "autoscaleMax": 5,
        "autoscaleMin": 1,
        "configMap": true,
        "cpu": {
          "targetAverageUtilization": 80
        },
        "deploymentLabels": null,
        "enableProtocolSniffingForInbound": true,
        "enableProtocolSniffingForOutbound": true,
        "env": {
          "ENABLE_LEGACY_FSGROUP_INJECTION": false
        },
        "image": "pilot",
        "keepaliveMaxServerConnectionAge": "30m",
        "nodeSelector": {},
        "podLabels": {},
        "replicaCount": 1,
        "traceSampling": 1
      },
      "telemetry": {
        "enabled": true,
        "v2": {
          "enabled": true,
          "metadataExchange": {
            "wasmEnabled": false
          },
          "prometheus": {
            "enabled": true,
            "wasmEnabled": false
          },
          "stackdriver": {
            "configOverride": {},
            "enabled": false,
            "logging": false,
            "monitoring": false,
            "topology": false
          }
        }
      }
    }
  }
}
 override object: {
  "apiVersion": "install.istio.io/v1alpha1",
  "kind": "IstioOperator",
  "metadata": {
    "annotations": {
      "install.istio.io/ignoreReconcile": "true",
      "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"install.istio.io/v1alpha1\",\"kind\":\"IstioOperator\",\"metadata\":{\"annotations\":{\"install.istio.io/ignoreReconcile\":\"true\"},\"creationTimestamp\":null,\"name\":\"installed-state\",\"namespace\":\"istio-system\"},\"spec\":{\"components\":{\"base\":{\"enabled\":true},\"cni\":{\"enabled\":false},\"egressGateways\":[{\"enabled\":true,\"k8s\":{\"resources\":{\"requests\":{\"cpu\":\"10m\",\"memory\":\"40Mi\"}}},\"name\":\"istio-egressgateway\"}],\"ingressGateways\":[{\"enabled\":true,\"k8s\":{\"resources\":{\"requests\":{\"cpu\":\"10m\",\"memory\":\"40Mi\"}},\"service\":{\"ports\":[{\"name\":\"status-port\",\"port\":15021,\"protocol\":\"TCP\",\"targetPort\":15021},{\"name\":\"http2\",\"port\":80,\"protocol\":\"TCP\",\"targetPort\":8080},{\"name\":\"https\",\"port\":443,\"protocol\":\"TCP\",\"targetPort\":8443},{\"name\":\"tcp\",\"port\":31400,\"protocol\":\"TCP\",\"targetPort\":31400},{\"name\":\"tls\",\"port\":15443,\"protocol\":\"TCP\",\"targetPort\":15443}]}},\"name\":\"istio-ingressgateway\"}],\"istiodRemote\":{\"enabled\":false},\"pilot\":{\"enabled\":true,\"k8s\":{\"env\":[{\"name\":\"PILOT_TRACE_SAMPLING\",\"value\":\"100\"}],\"resources\":{\"requests\":{\"cpu\":\"10m\",\"memory\":\"100Mi\"}}}}},\"hub\":\"containers.istio.tetratelabs.com\",\"meshConfig\":{\"accessLogFile\":\"/dev/stdout\",\"defaultConfig\":{\"proxyMetadata\":{}},\"enablePrometheusMerge\":true,\"extensionProviders\":[{\"envoyOtelAls\":{\"port\":4317,\"service\":\"otel-collector.istio-system.svc.cluster.local\"},\"name\":\"otel\"}]},\"profile\":\"demo\",\"tag\":\"1.13.3-tetrate-v0\",\"values\":{\"base\":{\"enableCRDTemplates\":false,\"validationURL\":\"\"},\"defaultRevision\":\"\",\"gateways\":{\"istio-egressgateway\":{\"autoscaleEnabled\":false,\"env\":{},\"name\":\"istio-egressgateway\",\"secretVolumes\":[{\"mountPath\":\"/etc/istio/egressgateway-certs\",\"name\":\"egressgateway-certs\",\"secretName\":\"istio-egressgateway-certs\"},{\"mountPath\":\"/etc/istio/egressgateway-ca-certs\",\"name\":\"egressgateway-ca-certs\",\"secretName\":\"istio-egressgateway-ca-certs\"}],\"type\":\"ClusterIP\"},\"istio-ingressgateway\":{\"autoscaleEnabled\":false,\"env\":{},\"name\":\"istio-ingressgateway\",\"secretVolumes\":[{\"mountPath\":\"/etc/istio/ingressgateway-certs\",\"name\":\"ingressgateway-certs\",\"secretName\":\"istio-ingressgateway-certs\"},{\"mountPath\":\"/etc/istio/ingressgateway-ca-certs\",\"name\":\"ingressgateway-ca-certs\",\"secretName\":\"istio-ingressgateway-ca-certs\"}],\"type\":\"LoadBalancer\"}},\"global\":{\"configValidation\":true,\"defaultNodeSelector\":{},\"defaultPodDisruptionBudget\":{\"enabled\":true},\"defaultResources\":{\"requests\":{\"cpu\":\"10m\"}},\"imagePullPolicy\":\"\",\"imagePullSecrets\":[],\"istioNamespace\":\"istio-system\",\"istiod\":{\"enableAnalysis\":false},\"jwtPolicy\":\"third-party-jwt\",\"logAsJson\":false,\"logging\":{\"level\":\"default:info\"},\"meshNetworks\":{},\"mountMtlsCerts\":false,\"multiCluster\":{\"clusterName\":\"\",\"enabled\":false},\"network\":\"\",\"omitSidecarInjectorConfigMap\":false,\"oneNamespace\":false,\"operatorManageWebhooks\":false,\"pilotCertProvider\":\"istiod\",\"priorityClassName\":\"\",\"proxy\":{\"autoInject\":\"enabled\",\"clusterDomain\":\"cluster.local\",\"componentLogLevel\":\"misc:error\",\"enableCoreDump\":false,\"excludeIPRanges\":\"\",\"excludeInboundPorts\":\"\",\"excludeOutboundPorts\":\"\",\"image\":\"proxyv2\",\"includeIPRanges\":\"*\",\"logLevel\":\"warning\",\"privileged\":false,\"readinessFailureThreshold\":30,\"readinessInitialDelaySeconds\":1,\"readinessPeriodSeconds\":2,\"resources\":{\"limits\":{\"cpu\":\"2000m\",\"memory\":\"1024Mi\"},\"requests\":{\"cpu\":\"10m\",\"memory\":\"40Mi\"}},\"statusPort\":15020,\"tracer\":\"zipkin\"},\"proxy_init\":{\"image\":\"proxyv2\",\"resources\":{\"limits\":{\"cpu\":\"2000m\",\"memory\":\"1024Mi\"},\"requests\":{\"cpu\":\"10m\",\"memory\":\"10Mi\"}}},\"sds\":{\"token\":{\"aud\":\"istio-ca\"}},\"sts\":{\"servicePort\":0},\"tracer\":{\"datadog\":{},\"lightstep\":{},\"stackdriver\":{},\"zipkin\":{}},\"useMCP\":false},\"istiodRemote\":{\"injectionURL\":\"\"},\"pilot\":{\"autoscaleEnabled\":false,\"autoscaleMax\":5,\"autoscaleMin\":1,\"configMap\":true,\"cpu\":{\"targetAverageUtilization\":80},\"deploymentLabels\":null,\"enableProtocolSniffingForInbound\":true,\"enableProtocolSniffingForOutbound\":true,\"env\":{\"ENABLE_LEGACY_FSGROUP_INJECTION\":false},\"image\":\"pilot\",\"keepaliveMaxServerConnectionAge\":\"30m\",\"nodeSelector\":{},\"podLabels\":{},\"replicaCount\":1,\"traceSampling\":1},\"telemetry\":{\"enabled\":true,\"v2\":{\"enabled\":true,\"metadataExchange\":{\"wasmEnabled\":false},\"prometheus\":{\"enabled\":true,\"wasmEnabled\":false},\"stackdriver\":{\"configOverride\":{},\"enabled\":false,\"logging\":false,\"monitoring\":false,\"topology\":false}}}}}}\n"
    },
    "creationTimestamp": null,
    "generation": 1,
    "name": "installed-state",
    "namespace": "istio-system",
    "resourceVersion": "8141",
    "uid": "e4321802-3eba-4867-b651-6d52d89eb768"
  },
  "spec": {
    "components": {
      "base": {
        "enabled": true
      },
      "cni": {
        "enabled": false
      },
      "egressGateways": [
        {
          "enabled": true,
          "k8s": {
            "resources": {
              "requests": {
                "cpu": "10m",
                "memory": "40Mi"
              }
            }
          },
          "name": "istio-egressgateway"
        }
      ],
      "ingressGateways": [
        {
          "enabled": true,
          "k8s": {
            "resources": {
              "requests": {
                "cpu": "10m",
                "memory": "40Mi"
              }
            },
            "service": {
              "ports": [
                {
                  "name": "status-port",
                  "port": 15021,
                  "protocol": "TCP",
                  "targetPort": 15021
                },
                {
                  "name": "http2",
                  "port": 80,
                  "protocol": "TCP",
                  "targetPort": 8080
                },
                {
                  "name": "https",
                  "port": 443,
                  "protocol": "TCP",
                  "targetPort": 8443
                },
                {
                  "name": "tcp",
                  "port": 31400,
                  "protocol": "TCP",
                  "targetPort": 31400
                },
                {
                  "name": "tls",
                  "port": 15443,
                  "protocol": "TCP",
                  "targetPort": 15443
                }
              ]
            }
          },
          "name": "istio-ingressgateway"
        }
      ],
      "istiodRemote": {
        "enabled": false
      },
      "pilot": {
        "enabled": true,
        "k8s": {
          "env": [
            {
              "name": "PILOT_TRACE_SAMPLING",
              "value": "100"
            },
            {
              "name": "ENABLE_LEGACY_FSGROUP_INJECTION",
              "value": "false"
            }
          ],
          "nodeSelector": {},
          "replicaCount": 1,
          "resources": {
            "requests": {
              "cpu": "10m",
              "memory": "100Mi"
            }
          }
        }
      }
    },
    "hub": "containers.istio.tetratelabs.com",
    "meshConfig": {
      "accessLogFile": "/dev/stdout",
      "defaultConfig": {
        "proxyMetadata": {}
      },
      "enablePrometheusMerge": true,
      "extensionProviders": [
        {
          "envoyOtelAls": {
            "port": 4317,
            "service": "otel-collector.istio-system.svc.cluster.local"
          },
          "name": "otel"
        }
      ]
    },
    "profile": "demo",
    "tag": "1.13.3-tetrate-v0",
    "values": {
      "base": {
        "enableCRDTemplates": false,
        "validationURL": ""
      },
      "defaultRevision": "",
      "gateways": {
        "istio-egressgateway": {
          "autoscaleEnabled": false,
          "env": {},
          "name": "istio-egressgateway",
          "secretVolumes": [
            {
              "mountPath": "/etc/istio/egressgateway-certs",
              "name": "egressgateway-certs",
              "secretName": "istio-egressgateway-certs"
            },
            {
              "mountPath": "/etc/istio/egressgateway-ca-certs",
              "name": "egressgateway-ca-certs",
              "secretName": "istio-egressgateway-ca-certs"
            }
          ],
          "type": "ClusterIP"
        },
        "istio-ingressgateway": {
          "autoscaleEnabled": false,
          "env": {},
          "name": "istio-ingressgateway",
          "secretVolumes": [
            {
              "mountPath": "/etc/istio/ingressgateway-certs",
              "name": "ingressgateway-certs",
              "secretName": "istio-ingressgateway-certs"
            },
            {
              "mountPath": "/etc/istio/ingressgateway-ca-certs",
              "name": "ingressgateway-ca-certs",
              "secretName": "istio-ingressgateway-ca-certs"
            }
          ],
          "type": "LoadBalancer"
        }
      },
      "global": {
        "configValidation": true,
        "defaultNodeSelector": {},
        "defaultPodDisruptionBudget": {
          "enabled": true
        },
        "defaultResources": {
          "requests": {
            "cpu": "10m"
          }
        },
        "imagePullPolicy": "",
        "imagePullSecrets": [],
        "istioNamespace": "istio-system",
        "istiod": {
          "enableAnalysis": false
        },
        "jwtPolicy": "third-party-jwt",
        "logAsJson": false,
        "logging": {
          "level": "default:info"
        },
        "meshNetworks": {},
        "mountMtlsCerts": false,
        "multiCluster": {
          "clusterName": "",
          "enabled": false
        },
        "network": "",
        "omitSidecarInjectorConfigMap": false,
        "oneNamespace": false,
        "operatorManageWebhooks": false,
        "pilotCertProvider": "istiod",
        "priorityClassName": "",
        "proxy": {
          "autoInject": "enabled",
          "clusterDomain": "cluster.local",
          "componentLogLevel": "misc:error",
          "enableCoreDump": false,
          "excludeIPRanges": "",
          "excludeInboundPorts": "",
          "excludeOutboundPorts": "",
          "image": "proxyv2",
          "includeIPRanges": "*",
          "logLevel": "warning",
          "privileged": false,
          "readinessFailureThreshold": 30,
          "readinessInitialDelaySeconds": 1,
          "readinessPeriodSeconds": 2,
          "resources": {
            "limits": {
              "cpu": "2000m",
              "memory": "1024Mi"
            },
            "requests": {
              "cpu": "10m",
              "memory": "40Mi"
            }
          },
          "statusPort": 15020,
          "tracer": "zipkin"
        },
        "proxy_init": {
          "image": "proxyv2",
          "resources": {
            "limits": {
              "cpu": "2000m",
              "memory": "1024Mi"
            },
            "requests": {
              "cpu": "10m",
              "memory": "10Mi"
            }
          }
        },
        "sds": {
          "token": {
            "aud": "istio-ca"
          }
        },
        "sts": {
          "servicePort": 0
        },
        "tracer": {
          "datadog": {},
          "lightstep": {},
          "stackdriver": {},
          "zipkin": {}
        },
        "useMCP": false
      },
      "istiodRemote": {
        "injectionURL": ""
      },
      "pilot": {
        "autoscaleEnabled": false,
        "autoscaleMax": 5,
        "autoscaleMin": 1,
        "configMap": true,
        "cpu": {
          "targetAverageUtilization": 80
        },
        "enableProtocolSniffingForInbound": true,
        "enableProtocolSniffingForOutbound": true,
        "env": {
          "ENABLE_LEGACY_FSGROUP_INJECTION": false
        },
        "image": "pilot",
        "keepaliveMaxServerConnectionAge": "30m",
        "nodeSelector": {},
        "podLabels": {},
        "replicaCount": 1,
        "traceSampling": 1
      },
      "telemetry": {
        "enabled": true,
        "v2": {
          "enabled": true,
          "metadataExchange": {
            "wasmEnabled": false
          },
          "prometheus": {
            "enabled": true,
            "wasmEnabled": false
          },
          "stackdriver": {
            "configOverride": {},
            "enabled": false,
            "logging": false,
            "monitoring": false,
            "topology": false
          }
        }
      }
    }
  }
}
error executing istioctl: exit status 1
@psbrar99 psbrar99 self-assigned this Jun 7, 2022
@psbrar99
Copy link
Contributor

psbrar99 commented Jun 23, 2022

@peterj : this is fixed in 1.13.5, this was related to this issue .
Addressed in 1.13.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants