app-resources.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. apiVersion: v1
  2. kind: List
  3. metadata: {}
  4. items:
  5. - apiVersion: image.openshift.io/v1
  6. kind: ImageStream
  7. metadata:
  8. labels:
  9. app: quotes
  10. app.kubernetes.io/component: quotes
  11. app.kubernetes.io/instance: quotes
  12. composition: quotes
  13. name: quotes
  14. spec:
  15. lookupPolicy:
  16. local: false
  17. tags:
  18. - name: latest
  19. - apiVersion: build.openshift.io/v1
  20. kind: BuildConfig
  21. metadata:
  22. labels:
  23. app: quotes
  24. app.kubernetes.io/component: quotes
  25. app.kubernetes.io/instance: quotes
  26. composition: quotes
  27. name: quotes
  28. spec:
  29. output:
  30. to:
  31. kind: ImageStreamTag
  32. name: quotes:latest
  33. postCommit: {}
  34. resources: {}
  35. source:
  36. contextDir: quotes
  37. git:
  38. uri: https://git.p0f.net/gregab/sample-apps/
  39. type: Git
  40. strategy:
  41. sourceStrategy:
  42. from:
  43. kind: ImageStreamTag
  44. name: php:7.4-ubi8
  45. namespace: openshift
  46. type: Source
  47. triggers:
  48. - imageChange: {}
  49. type: ImageChange
  50. - apiVersion: apps/v1
  51. kind: Deployment
  52. metadata:
  53. annotations:
  54. image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"quotes:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"quotes\")].image"}]'
  55. labels:
  56. app: quotes
  57. app.kubernetes.io/component: quotes
  58. app.kubernetes.io/instance: quotes
  59. composition: quotes
  60. name: quotes
  61. spec:
  62. replicas: 1
  63. selector:
  64. matchLabels:
  65. composition: quotes
  66. deployment: quotes
  67. strategy: {}
  68. template:
  69. metadata:
  70. labels:
  71. composition: quotes
  72. deployment: quotes
  73. spec:
  74. containers:
  75. - image: ' '
  76. name: quotes
  77. env:
  78. - name: DATABASE_NAME
  79. valueFrom:
  80. configMapKeyRef:
  81. name: dbconfig
  82. key: database
  83. - name: DATABASE_USER
  84. valueFrom:
  85. configMapKeyRef:
  86. name: dbconfig
  87. key: username
  88. - name: DATABASE_PASSWORD
  89. valueFrom:
  90. secretKeyRef:
  91. name: dbauth
  92. key: password
  93. - name: DATABASE_SERVICE_NAME
  94. value: quotesdb
  95. ports:
  96. - containerPort: 8080
  97. protocol: TCP
  98. - containerPort: 8443
  99. protocol: TCP
  100. resources: {}
  101. - apiVersion: v1
  102. kind: Service
  103. metadata:
  104. labels:
  105. app: quotes
  106. app.kubernetes.io/component: quotes
  107. app.kubernetes.io/instance: quotes
  108. composition: quotes
  109. name: quotes
  110. spec:
  111. ports:
  112. - name: 8080-tcp
  113. port: 8080
  114. protocol: TCP
  115. targetPort: 8080
  116. - name: 8443-tcp
  117. port: 8443
  118. protocol: TCP
  119. targetPort: 8443
  120. selector:
  121. composition: quotes
  122. deployment: quotes