app-resources.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. - github:
  49. secret: AjswNd0DGJn4t1txGl4I
  50. type: GitHub
  51. - generic:
  52. secret: nka8bx8wM1ReHAO_VJm5
  53. type: Generic
  54. - type: ConfigChange
  55. - imageChange: {}
  56. type: ImageChange
  57. - apiVersion: apps/v1
  58. kind: Deployment
  59. metadata:
  60. annotations:
  61. image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"quotes:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"quotes\")].image"}]'
  62. labels:
  63. app: quotes
  64. app.kubernetes.io/component: quotes
  65. app.kubernetes.io/instance: quotes
  66. composition: quotes
  67. name: quotes
  68. spec:
  69. replicas: 1
  70. selector:
  71. matchLabels:
  72. composition: quotes
  73. deployment: quotes
  74. strategy: {}
  75. template:
  76. metadata:
  77. labels:
  78. composition: quotes
  79. deployment: quotes
  80. spec:
  81. containers:
  82. - image: ' '
  83. name: quotes
  84. env:
  85. - name: DATABASE_NAME
  86. valueFrom:
  87. configMapKeyRef:
  88. name: dbconfig
  89. key: database
  90. - name: DATABASE_USER
  91. valueFrom:
  92. configMapKeyRef:
  93. name: dbconfig
  94. key: username
  95. - name: DATABASE_PASSWORD
  96. valueFrom:
  97. secretKeyRef:
  98. name: dbauth
  99. key: password
  100. - name: DATABASE_SERVICE_NAME
  101. value: quotesdb
  102. ports:
  103. - containerPort: 8080
  104. protocol: TCP
  105. - containerPort: 8443
  106. protocol: TCP
  107. resources: {}
  108. - apiVersion: v1
  109. kind: Service
  110. metadata:
  111. labels:
  112. app: quotes
  113. app.kubernetes.io/component: quotes
  114. app.kubernetes.io/instance: quotes
  115. composition: quotes
  116. name: quotes
  117. spec:
  118. ports:
  119. - name: 8080-tcp
  120. port: 8080
  121. protocol: TCP
  122. targetPort: 8080
  123. - name: 8443-tcp
  124. port: 8443
  125. protocol: TCP
  126. targetPort: 8443
  127. selector:
  128. composition: quotes
  129. deployment: quotes