123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- apiVersion: v1
- kind: List
- metadata: {}
- items:
- - apiVersion: image.openshift.io/v1
- kind: ImageStream
- metadata:
- labels:
- app: quotes
- app.kubernetes.io/component: quotes
- app.kubernetes.io/instance: quotes
- composition: quotes
- name: quotes
- spec:
- lookupPolicy:
- local: false
- - apiVersion: build.openshift.io/v1
- kind: BuildConfig
- metadata:
- labels:
- app: quotes
- app.kubernetes.io/component: quotes
- app.kubernetes.io/instance: quotes
- composition: quotes
- name: quotes
- spec:
- output:
- to:
- kind: ImageStreamTag
- name: quotes:latest
- postCommit: {}
- resources: {}
- source:
- contextDir: quotes
- git:
- uri: https://git.p0f.net/gregab/sample-apps/
- type: Git
- strategy:
- sourceStrategy:
- from:
- kind: ImageStreamTag
- name: php:7.4-ubi8
- namespace: openshift
- type: Source
- triggers:
- - github:
- secret: AjswNd0DGJn4t1txGl4I
- type: GitHub
- - generic:
- secret: nka8bx8wM1ReHAO_VJm5
- type: Generic
- - type: ConfigChange
- - imageChange: {}
- type: ImageChange
- - apiVersion: apps/v1
- kind: Deployment
- metadata:
- annotations:
- image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"quotes:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"quotes\")].image"}]'
- labels:
- app: quotes
- app.kubernetes.io/component: quotes
- app.kubernetes.io/instance: quotes
- composition: quotes
- name: quotes
- spec:
- replicas: 1
- selector:
- matchLabels:
- composition: quotes
- deployment: quotes
- strategy: {}
- template:
- metadata:
- labels:
- composition: quotes
- deployment: quotes
- spec:
- containers:
- - image: ' '
- name: quotes
- env:
- - name: DATABASE_NAME
- valueFrom:
- configMapKeyRef:
- name: dbconfig
- key: database
- - name: DATABASE_USER
- valueFrom:
- configMapKeyRef:
- name: dbconfig
- key: username
- - name: DATABASE_PASSWORD
- valueFrom:
- secretKeyRef:
- name: dbauth
- key: password
- - name: DATABASE_SERVICE_NAME
- value: quotesdb
- ports:
- - containerPort: 8080
- protocol: TCP
- - containerPort: 8443
- protocol: TCP
- resources: {}
- - apiVersion: v1
- kind: Service
- metadata:
- labels:
- app: quotes
- app.kubernetes.io/component: quotes
- app.kubernetes.io/instance: quotes
- composition: quotes
- name: quotes
- spec:
- ports:
- - name: 8080-tcp
- port: 8080
- protocol: TCP
- targetPort: 8080
- - name: 8443-tcp
- port: 8443
- protocol: TCP
- targetPort: 8443
- selector:
- composition: quotes
- deployment: quotes
|