db-resources.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. valueFrom:
  65. configMapKeyRef:
  66. name: dbconfig
  67. key: database
  68. - name: MYSQL_USER
  69. valueFrom:
  70. configMapKeyRef:
  71. name: dbconfig
  72. key: username
  73. - name: MYSQL_PASSWORD
  74. valueFrom:
  75. secretKeyRef:
  76. name: dbauth
  77. key: password
  78. - name: MYSQL_AIO
  79. valueFrom:
  80. configMapKeyRef:
  81. name: dbconfig
  82. key: aio
  83. ports:
  84. - containerPort: 3306
  85. protocol: TCP
  86. resources: {}
  87. - apiVersion: v1
  88. kind: Service
  89. metadata:
  90. labels:
  91. app: quotesdb
  92. app.kubernetes.io/component: quotesdb
  93. app.kubernetes.io/instance: quotesdb
  94. app.kubernetes.io/name: mariadb
  95. composition: quotes
  96. name: quotesdb
  97. spec:
  98. ports:
  99. - name: 3306-tcp
  100. port: 3306
  101. protocol: TCP
  102. targetPort: 3306
  103. selector:
  104. composition: quotes
  105. deployment: quotesdb