deployment.yaml 949 B

1234567891011121314151617181920212223242526
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: swagger-ui
  5. namespace: cicd
  6. labels:
  7. app.kubernetes.io/name: swagger-ui
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: swagger-ui
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: swagger-ui
  17. spec:
  18. shareProcessNamespace: true
  19. containers:
  20. - name: ob-core
  21. image: swaggerapi/swagger-ui
  22. imagePullPolicy: Always
  23. env:
  24. - name: URLS
  25. value: '[{url:"http://git.cestong.com.cn/cecf/ob-core/raw/master/api/biz/v1/openapi.yaml", name:"业务接口"},{url:"http://git.cestong.com.cn/cecf/ob-core/raw/master/api/infra/v1/openapi.yaml", name:"基础设施接口"}, {url:"http://git.cestong.com.cn/cecf/ob-core/raw/master/api/svc/v1/openapi.yaml", name:"服务相关接口"}]'
  26. # value: '[{url:"http://git.cestong.com.cn/cecf/ob-core/raw/master/openapi.yaml", name:"ob-core"}]'