db-resources.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. apiVersion: v1
  2. kind: List
  3. metadata: {}
  4. items:
  5. - apiVersion: image.openshift.io/v1
  6. kind: ImageStreamTag
  7. metadata:
  8. labels:
  9. app: quotesdb
  10. app.kubernetes.io/component: quotesdb
  11. app.kubernetes.io/instance: quotesdb
  12. app.kubernetes.io/name: mariadb
  13. composition: quotes
  14. name: quotesdb:10.3-el8
  15. generation: 0
  16. image:
  17. dockerImageLayers: null
  18. dockerImageMetadata: null
  19. metadata:
  20. creationTimestamp: null
  21. lookupPolicy:
  22. local: false
  23. tag:
  24. annotations: null
  25. from:
  26. kind: DockerImage
  27. name: registry.redhat.io/rhel8/mariadb-103@sha256:89b8a68cb817f381aff9f0595e8b56e8541ee860cf7e23c0d97286164ffea9e7
  28. generation: null
  29. importPolicy:
  30. scheduled: true
  31. name: 10.3-el8
  32. referencePolicy:
  33. type: ""
  34. - apiVersion: apps/v1
  35. kind: Deployment
  36. metadata:
  37. annotations:
  38. image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"mariadb:10.3-el8","namespace":"openshift"},"fieldPath":"spec.template.spec.containers[?(@.name==\"quotesdb\")].image"}]'
  39. labels:
  40. app: quotesdb
  41. app.kubernetes.io/component: quotesdb
  42. app.kubernetes.io/instance: quotesdb
  43. app.kubernetes.io/name: mariadb
  44. composition: quotes
  45. name: quotesdb
  46. spec:
  47. replicas: 1
  48. selector:
  49. matchLabels:
  50. composition: quotes
  51. deployment: quotesdb
  52. strategy: {}
  53. template:
  54. metadata:
  55. labels:
  56. composition: quotes
  57. deployment: quotesdb
  58. spec:
  59. containers:
  60. - image: ' '
  61. name: quotesdb
  62. env:
  63. - name: MYSQL_DATABASE
  64. configMapKeyRef:
  65. name: dbconfig
  66. key: database
  67. - name: MYSQL_USER
  68. configMapKeyRef:
  69. name: dbconfig
  70. key: username
  71. - name: MYSQL_PASSWORD
  72. secretKeyRef:
  73. name: dbauth
  74. key: password
  75. - name: MYSQL_AIO
  76. configMapKeyRef:
  77. name: dbconfig
  78. key: aio
  79. ports:
  80. - containerPort: 3306
  81. protocol: TCP
  82. resources: {}
  83. - apiVersion: v1
  84. kind: Service
  85. metadata:
  86. labels:
  87. app: quotesdb
  88. app.kubernetes.io/component: quotesdb
  89. app.kubernetes.io/instance: quotesdb
  90. app.kubernetes.io/name: mariadb
  91. composition: quotes
  92. name: quotesdb
  93. spec:
  94. ports:
  95. - name: 3306-tcp
  96. port: 3306
  97. protocol: TCP
  98. targetPort: 3306
  99. selector:
  100. composition: quotes
  101. deployment: quotesdb