|
@@ -0,0 +1,101 @@
|
|
|
+apiVersion: v1
|
|
|
+kind: List
|
|
|
+metadata: {}
|
|
|
+items:
|
|
|
+- apiVersion: image.openshift.io/v1
|
|
|
+ kind: ImageStreamTag
|
|
|
+ metadata:
|
|
|
+ labels:
|
|
|
+ app: quotesdb
|
|
|
+ app.kubernetes.io/component: quotesdb
|
|
|
+ app.kubernetes.io/instance: quotesdb
|
|
|
+ app.kubernetes.io/name: mariadb
|
|
|
+ composition: quotes
|
|
|
+ name: quotesdb:10.3-el8
|
|
|
+ generation: 0
|
|
|
+ image:
|
|
|
+ dockerImageLayers: null
|
|
|
+ dockerImageMetadata: null
|
|
|
+ metadata:
|
|
|
+ creationTimestamp: null
|
|
|
+ lookupPolicy:
|
|
|
+ local: false
|
|
|
+ tag:
|
|
|
+ annotations: null
|
|
|
+ from:
|
|
|
+ kind: DockerImage
|
|
|
+ name: registry.redhat.io/rhel8/mariadb-103@sha256:89b8a68cb817f381aff9f0595e8b56e8541ee860cf7e23c0d97286164ffea9e7
|
|
|
+ generation: null
|
|
|
+ importPolicy:
|
|
|
+ scheduled: true
|
|
|
+ name: 10.3-el8
|
|
|
+ referencePolicy:
|
|
|
+ type: ""
|
|
|
+- apiVersion: apps/v1
|
|
|
+ kind: Deployment
|
|
|
+ metadata:
|
|
|
+ annotations:
|
|
|
+ image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"mariadb:10.3-el8","namespace":"openshift"},"fieldPath":"spec.template.spec.containers[?(@.name==\"quotesdb\")].image"}]'
|
|
|
+ labels:
|
|
|
+ app: quotesdb
|
|
|
+ app.kubernetes.io/component: quotesdb
|
|
|
+ app.kubernetes.io/instance: quotesdb
|
|
|
+ app.kubernetes.io/name: mariadb
|
|
|
+ composition: quotes
|
|
|
+ name: quotesdb
|
|
|
+ spec:
|
|
|
+ replicas: 1
|
|
|
+ selector:
|
|
|
+ matchLabels:
|
|
|
+ composition: quotes
|
|
|
+ deployment: quotesdb
|
|
|
+ strategy: {}
|
|
|
+ template:
|
|
|
+ metadata:
|
|
|
+ labels:
|
|
|
+ composition: quotes
|
|
|
+ deployment: quotesdb
|
|
|
+ spec:
|
|
|
+ containers:
|
|
|
+ - image: ' '
|
|
|
+ name: quotesdb
|
|
|
+ env:
|
|
|
+ - name: MYSQL_DATABASE
|
|
|
+ configMapKeyRef:
|
|
|
+ name: dbconfig
|
|
|
+ key: database
|
|
|
+ - name: MYSQL_USER
|
|
|
+ configMapKeyRef:
|
|
|
+ name: dbconfig
|
|
|
+ key: username
|
|
|
+ - name: MYSQL_PASSWORD
|
|
|
+ secretKeyRef:
|
|
|
+ name: dbauth
|
|
|
+ key: password
|
|
|
+ - name: MYSQL_AIO
|
|
|
+ configMapKeyRef:
|
|
|
+ name: dbconfig
|
|
|
+ key: aio
|
|
|
+ ports:
|
|
|
+ - containerPort: 3306
|
|
|
+ protocol: TCP
|
|
|
+ resources: {}
|
|
|
+- apiVersion: v1
|
|
|
+ kind: Service
|
|
|
+ metadata:
|
|
|
+ labels:
|
|
|
+ app: quotesdb
|
|
|
+ app.kubernetes.io/component: quotesdb
|
|
|
+ app.kubernetes.io/instance: quotesdb
|
|
|
+ app.kubernetes.io/name: mariadb
|
|
|
+ composition: quotes
|
|
|
+ name: quotesdb
|
|
|
+ spec:
|
|
|
+ ports:
|
|
|
+ - name: 3306-tcp
|
|
|
+ port: 3306
|
|
|
+ protocol: TCP
|
|
|
+ targetPort: 3306
|
|
|
+ selector:
|
|
|
+ composition: quotes
|
|
|
+ deployment: quotesdb
|