我正试图在我的库伯奈特文档中添加入口。我能够添加ingress.yaml文件,而且ingress.yaml上有很多文档,但是我使用skaffold.yaml来处理Kubernetes部署的细节。我也找不到任何关于为进入而创建人肉档案的文件。(只需使用googleCloudBuild、buildpack和minikube )我看到的所有文档都是针对NGINX的。
我的项目如下所示:
kubernetes-manifests:
--- frontend_service.deployment.yaml
--- frontend_service.service.yaml
--- ingress.yaml
--- login_service.deployment.yaml
--- login_service.service.yaml
--- recipes_service.deployment.yaml
--- recipes_service.service.yaml我现在的员工档案如下:
apiVersion: skaffold/v2beta4
kind: Config
build:
tagPolicy:
sha256: {}
# defines where to find the code at build time and where to push the resulting image
artifacts:
- image: frontend-service
context: src/frontend
- image: login-service
context: src/login
- image: recipes-service
context: src/recipes
# defines the Kubernetes manifests to deploy on each run
deploy:
kubectl:
manifests:
- ./kubernetes-manifests/*.service.yaml
- ./kubernetes-manifests/*.deployment.yaml
profiles:
# use the cloudbuild profile to build images using Google Cloud Build
- name: cloudbuild
build:
googleCloudBuild: {}
- name: buildpacks
build:
artifacts:
- image: frontend-service
context: src/frontend
buildpack:
builder: "gcr.io/buildpacks/builder:v1"
- image: login-service
context: src/login
buildpack:
builder: "gcr.io/buildpacks/builder:v1"
- image: recipes-service
context: src/recipes
buildpack:
builder: "gcr.io/buildpacks/builder:v1"当前的skaffold文件不部署在入口体系结构中,它使用后端和前端。
发布于 2020-11-18 18:37:02
入口定义只是Kubernetes参考资料,所以您只需将ingress.yaml添加到要部署的清单中:
deploy:
kubectl:
manifests:
- ./kubernetes-manifests/ingress.yaml
- ./kubernetes-manifests/*.service.yaml
- ./kubernetes-manifests/*.deployment.yamlhttps://stackoverflow.com/questions/64897332
复制相似问题