Use apiversion networking.k8s.io/v1 for ingress for JA
There is a warning deprecation message for kubernetes v1.19: ``` Warning: networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress ``` Switched apiversion in the example to `networking.k8s.io/v1`
This commit is contained in:
committed by
inductor
parent
d0bf292379
commit
1df5ca8f51
@@ -135,7 +135,7 @@ weight: 100
|
|||||||
1. 以下の内容で`example-ingress.yaml`を作成します。
|
1. 以下の内容で`example-ingress.yaml`を作成します。
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: example-ingress
|
name: example-ingress
|
||||||
@@ -147,9 +147,12 @@ weight: 100
|
|||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: web
|
service:
|
||||||
servicePort: 8080
|
name: web
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 次のコマンドを実行して、Ingressリソースを作成します。
|
1. 次のコマンドを実行して、Ingressリソースを作成します。
|
||||||
@@ -175,8 +178,8 @@ weight: 100
|
|||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
NAME HOSTS ADDRESS PORTS AGE
|
NAME CLASS HOSTS ADDRESS PORTS AGE
|
||||||
example-ingress hello-world.info 172.17.0.15 80 38s
|
example-ingress <none> hello-world.info 172.17.0.15 80 38s
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 次の行を`/etc/hosts`ファイルの最後に書きます。
|
1. 次の行を`/etc/hosts`ファイルの最後に書きます。
|
||||||
@@ -241,9 +244,12 @@ weight: 100
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- path: /v2
|
- path: /v2
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: web2
|
service:
|
||||||
servicePort: 8080
|
name: web2
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
1. 次のコマンドで変更を適用します。
|
1. 次のコマンドで変更を適用します。
|
||||||
|
|||||||
Reference in New Issue
Block a user