app-resources.yml 2.8 KB

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