app-resources.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. configMapKeyRef:
  85. name: dbconfig
  86. key: database
  87. - name: DATABASE_USER
  88. configMapKeyRef:
  89. name: dbconfig
  90. key: username
  91. - name: DATABASE_PASSWORD
  92. secretKeyRef:
  93. name: dbauth
  94. key: password
  95. - name: DATABASE_SERVICE_NAME
  96. value: quotesdb
  97. ports:
  98. - containerPort: 8080
  99. protocol: TCP
  100. - containerPort: 8443
  101. protocol: TCP
  102. resources: {}
  103. - apiVersion: v1
  104. kind: Service
  105. metadata:
  106. labels:
  107. app: quotes
  108. app.kubernetes.io/component: quotes
  109. app.kubernetes.io/instance: quotes
  110. composition: quotes
  111. name: quotes
  112. spec:
  113. ports:
  114. - name: 8080-tcp
  115. port: 8080
  116. protocol: TCP
  117. targetPort: 8080
  118. - name: 8443-tcp
  119. port: 8443
  120. protocol: TCP
  121. targetPort: 8443
  122. selector:
  123. composition: quotes
  124. deployment: quotes