app-resources.yml 3.0 KB

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