app-resources.yml 2.8 KB

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