type
status
date
slug
summary
tags
category
icon
password
使用Podman on Windows安装kind
Install Podman on Windows
get podman VM IP
e.g.
Install kubectl
点击settings->resources->kubectl
Install kind
点击左下角kind
Creating a kind cluster
点击settings->resources->kind
get kubernetes cluster master IP
e.g.
登录master安装contour
Deploy the Gateway provisioner:
Verify the Gateway provisioner deployment is available:
Create a GatewayClass:
Create a Gateway:
Verify the
Gateway
is available (it may take up to a minute to become available):Verify the Contour pods are ready by running the following:
使用ingress暴露nginx服务
创建一个nginx deployment
创建一个nginx service
创建一个nginx ingress
由于envoy的service运行在kind中,我们无法直接从个人电脑访问,简单地修改envoy的daemonset(containerPort: 8080映射到hostPort: 80),再通过podman的http映射(containerPort: 80映射到hostPort: 9090)访问
访问nginx服务,使用浏览器打开http://local.projectcontour.io:9090/

使用Gateway API(HTTPRouteand
TLSRoute)暴露nginx服务
删除nginx ingress
创建nginx HTTPRoute
访问nginx服务,使用浏览器打开http://local.projectcontour.io:9090/

- Author:共倒金荷家万里
- URL:https://tangly1024.com/article/11140ef0-3786-80f1-98f3-d96977a6a9f9
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts