我目前是使用自己的代码库,我想问下app.ymal 和 service.yaml 里面也有

f7032f9e0eccd07e6b445adeae429955.png 云效我目前是使用自己的代码库, 0d1eddb2d348028cf030f71132c2e73d.png ,我想问下app.ymal 和 service.yaml 里面也有 cddcf6c1d0c299f0653474e7bc0a0d90.png 也需要同步修改吗?

展开
收起
真的很搞笑 2023-05-02 15:13:32 187 分享 版权
1 条回答
写回答
取消 提交回答
  • app.yaml: apiVersion: apps/v1 kind: Deployment metadata: labels: run: spring-boot-sample name: spring-boot-sample spec: replicas: 2 selector: matchLabels: run: spring-boot-sample template: metadata: labels: run: spring-boot-sample spec: containers: - image: ${IMAGE} name: app service.yaml: apiVersion: v1 kind: Service metadata: name: spring-boot-service labels: test: test labele2: label spec: ports: - name: http port: 8080 protocol: TCP targetPort: 8080 - name: https port: 443 protocol: TCP targetPort: 443 selector: run: spring-boot-sample sessionAffinity: None type: ClusterIP 您可以参考一下,此回答整理自钉群“云效开发者交流群6群”

    2023-05-03 18:27:49
    赞同 展开评论
问答分类:
问答地址:

云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。

收录在圈子:
+ 订阅
还有其他疑问?
咨询AI助理