I deployed ambassador from turtorial and standard route works, but when I try to add TCPMapping I see error:
no matches for kind "TCPMapping" in version "ambassador/v1"
Versions:
I found solution.
@kfkawalec
Would you please elaborate what was the solution?
We have experienced the same problem
I only test ambassador and don't remember details, but this was my mistake.
Problem was related to ambassador installation, I don't have kubernetes TCP Mapping object.
But as I say I dont remember details.
When using CRDs the apiVersion is getambassador.io/v1 instead of ambassador/v1.
Thank you, your answer is accurate
I just would like to mention that initially we misunderstood the ambassador documentation about Mapping examples here
https://www.getambassador.io/reference/mappings/#additional-example-mappings
Because, when it mentions about
apiVersion: ambassador/v1
kind: Mapping
name: backend-https_mapping
prefix: /backend/secure/
rewrite: /secure/
service: https://tour
It was not obvious in documentation that it is talking about mapping configuration as annotation and not mapping configuration as CRD. So we thought it is an CRD and were applying it as yaml file and were getting the error stated earlier.
I think many other people were ran into same scenario as the original user who opened this issue
Thanks
helm version(v2.9.1) don't automatic installation crds.
upgrade to new version(v2.16.0) to fix it.
Most helpful comment
Thank you, your answer is accurate
I just would like to mention that initially we misunderstood the ambassador documentation about Mapping examples here
https://www.getambassador.io/reference/mappings/#additional-example-mappings
Because, when it mentions about
It was not obvious in documentation that it is talking about mapping configuration as
annotationand not mapping configuration asCRD. So we thought it is an CRD and were applying it as yaml file and were getting the error stated earlier.I think many other people were ran into same scenario as the original user who opened this issue
Thanks