Error al configurar samples/apigee/handler.yaml

Not applicable

Hola, buenos días tengo un grave error ya que no puedo configurar handler.yaml, sigo las indicaciones como viene aquí apigee-istio-adapter pero no me funciona, intento editar de forma manual pero no logro obtenerlo y en la consola de windows tampoco puedo acceder, ya copie el path y ni así.

Espero alguien me pueda ayudar, se los agradecería mucho.

# handler configuration for adapter 'apigee'
        apiVersion: config.istio.io/v1alpha2    
        kind: apigee
        metadata:
          name: apigee-handler
          namespace: istio-system
        spec:
          apigee_base: https://istioservices.apigee.net/edgemicro
          customer_base: REPLACE ME
          org_name: REPLACE ME
          env_name: REPLACE ME
          key: REPLACE ME (No se como obtenerlo)
          secret: REPLACE ME (No se como obtenerlo)
0 4 433
4 REPLIES 4

Hi @Luis Ramirez, From what I understand you are trying to edit the handler.yaml file but are unable to do so. Is that correct? If so:

  1. How are trying to edit this file?
  2. You mentioned "Windows", so the "cp" command mentioned in the article will not work for you.
  3. You can manually make a copy. Have you checked the permissions of the handler.yaml file?

Running the

apigee-istio provision -o docs -e test -u jdoe@example.com -p abc123 > samples/apigee/handler.yaml 

command will automatically set the key and secret values in the handler.yaml. However, this command will not work on Windows. So you can execute the command like

apigee-istio provision -o docs -e test -u jdoe@example.com -p abc123 

and then copy the output of the command to overwrite the handler.yaml file.

Hope this helps.

Hola, @Luis Ramirez, por lo que entiendo, estás intentando editar el archivo handler.yaml pero no puedes hacerlo. ¿Es eso correcto? Si es así: ¿Cómo están tratando de editar este archivo? Mencionó "Windows", por lo que el comando "cp" mencionado en el artículo no funcionará para usted. Puedes hacer una copia manual. ¿Has revisado los permisos del archivo handler.yaml? Espero que esto ayude.

La ejecución de la

apigee-istio provision -o docs -e test -u jdoe@example.com -p abc123 > samples/apigee/handler.yaml 

configurará automáticamente la clave y los valores secretos en el handler.yaml. Sin embargo, este comando no funcionará en Windows. Entonces puede ejecutar el comando como

 apigee-istio provision -o docs -e test -u jdoe@example.com -p abc123

y luego copiar la salida del comando para sobrescribir el archivo handler.yaml.

No tome esto de la manera incorrecta, pero si utilizara https://translate.google.com/ para publicar sus consultas en inglés, es posible que obtenga más respuestas.

Not applicable

Hi, @Cladius Fernando , i run the following line on windows cmd. but this appears

apigee-istio provision -o docs -e test -u jdoe@example.com -p abc123 (with my data) 
error deploying auth proxy: error importing proxy istio-auth: POST https://api.enterprise.apigee.com/v1/o/my_org/ apis? action = import & name = is
tio-auth: 400 Bundle is invalid. Empty bundle.

I have been checking the configuration og gcloud, istio, apigee-istio-adapter and i don't get the expected output.

And my other serious error is the following:

kubectl version --shortClient 
Version: v1.11.0
Error from server (Forbidden): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>...</html>

I would really appreciate it if you could help me.

Thanks.

@Luis Ramirez, can you please double check the apigee adapter that you downloaded? If the issue persists maybe you could log a defect at: https://github.com/apigee/istio-mixer-adapter/issues

@srinandans, any inputs for Luis?

Not applicable

Hi @Cladius Fernando, in the Google cloud platform cloud shell if I see the server, I would like to know if I can install apigee-istio-adapter in the cloud shell, if so, they will have a link that I can Please share

Thank you

my_user@cloudshell:~ (project)$ kubectl version --short
Client Version: v1.10.7
Server Version: v1.10.7-gke.2