Ambassador: no matches for kind "TCPMapping" in version "ambassador/v1"

Created on 22 Apr 2019  路  6Comments  路  Source: datawire/ambassador

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:

  • Ambassador: 0.53.1
  • Kubernetes: bare metal, host network, 1.12.5

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

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

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ppeble picture ppeble  路  3Comments

gregbacchus picture gregbacchus  路  3Comments

Viacheslav-Akimov picture Viacheslav-Akimov  路  6Comments

nilanjan-samajdar picture nilanjan-samajdar  路  4Comments

vishal-yadav picture vishal-yadav  路  4Comments