Dry Run for Debugging

    1. ---
    2. # Application(vela-app) -- Comopnent(express-server)
    3. ---
    4. apiVersion: apps/v1
    5. kind: Deployment
    6. metadata:
    7. labels:
    8. app.oam.dev/appRevision: ""
    9. app.oam.dev/component: express-server
    10. app.oam.dev/name: vela-app
    11. workload.oam.dev/type: webservice
    12. spec:
    13. selector:
    14. matchLabels:
    15. app.oam.dev/component: express-server
    16. template:
    17. metadata:
    18. labels:
    19. app.oam.dev/component: express-server
    20. spec:
    21. - image: crccheck/hello-world
    22. ports:
    23. - containerPort: 8000
    24. ---
    25. apiVersion: v1
    26. kind: Service
    27. metadata:
    28. labels:
    29. app.oam.dev/appRevision: ""
    30. app.oam.dev/component: express-server
    31. app.oam.dev/name: vela-app
    32. trait.oam.dev/resource: service
    33. trait.oam.dev/type: ingress
    34. name: express-server
    35. spec:
    36. ports:
    37. - port: 8000
    38. targetPort: 8000
    39. selector:
    40. app.oam.dev/component: express-server
    41. ---
    42. apiVersion: networking.k8s.io/v1beta1
    43. kind: Ingress
    44. metadata:
    45. labels:
    46. app.oam.dev/appRevision: ""
    47. app.oam.dev/component: express-server
    48. app.oam.dev/name: vela-app
    49. trait.oam.dev/resource: ingress
    50. trait.oam.dev/type: ingress
    51. name: express-server
    52. spec:
    53. rules:
    54. - host: testsvc.example.com
    55. http:
    56. paths:
    57. - backend:
    58. serviceName: express-server
    59. servicePort: 8000
    60. path: /
    61. ---