ingress 哪个字段对应的是svc
时间: 2023-08-14 10:03:55 浏览: 28
In Ingress, the field that corresponds to a Service (svc) is the `backend` field. It specifies the backend configuration for a particular host or URL path. This field defines the Service to which traffic should be forwarded.
相关问题
k8s ingress yaml 字段解释
Kubernetes(In short k8s) Ingress is an API object that provides a collection of routing rules that govern how external users access services running in a Kubernetes cluster. In simple terms, Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster.
For creating an Ingress object, a YAML file is used with different fields defined in it. The YAML fields and their explanations are as follows:
1. apiVersion: This field defines the version of the APIs that the YAML is written for.
2. kind: This field defines the type of object being created. In this case, it will be Ingress.
3. metadata: This field consists of data like the name, namespace, labels, and annotations describing the Ingress object.
4. spec: The spec field defines the rules for the Ingress object. The spec consists of different fields like rule, path, backend, and etc which defines routing rules, paths, and backend services of the Ingress object.
I hope this clarifies your doubts regarding the k8s ingress yaml field explanation.
k8s和ingress版本对应
Kubernetes(k8s)和Ingress之间的版本对应关系如下:
- Kubernetes v1.14和更早版本:使用Ingress资源的API版本为extensions/v1beta1。
- Kubernetes v1.15到v1.18:使用Ingress资源的API版本为networking.k8s.io/v1beta1。
- Kubernetes v1.19和更新版本:使用Ingress资源的API版本为networking.k8s.io/v1。
请注意,具体的版本对应关系可能因Kubernetes发行版或发行商而有所不同。因此,在实际使用之前,最好查阅相关文档或官方发布的版本说明。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)