forked from LaconicNetwork/kompose
97 lines
1.9 KiB
YAML
97 lines
1.9 KiB
YAML
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
annotations:
|
|
kompose.volume.subpath: test
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: postgres
|
|
name: postgres
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
io.kompose.service: postgres
|
|
strategy:
|
|
resources: {}
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.network/vols-subpath-default: "true"
|
|
io.kompose.service: postgres
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: POSTGRES_DB
|
|
value: dumb_db
|
|
- name: POSTGRES_PASSWORD
|
|
value: postgres_password
|
|
- name: POSTGRES_USER
|
|
value: dumb_postgres_user
|
|
image: ' '
|
|
name: postgres
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql/data
|
|
name: postgres-data
|
|
subPath: test
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: postgres-data
|
|
persistentVolumeClaim:
|
|
claimName: postgres-data
|
|
test: false
|
|
triggers:
|
|
- type: ConfigChange
|
|
- imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- postgres
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: postgres:latest
|
|
type: ImageChange
|
|
|
|
|
|
---
|
|
apiVersion: image.openshift.io/v1
|
|
kind: ImageStream
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: postgres
|
|
name: postgres
|
|
spec:
|
|
lookupPolicy:
|
|
local: false
|
|
tags:
|
|
- annotations: null
|
|
from:
|
|
kind: DockerImage
|
|
name: postgres
|
|
generation: null
|
|
importPolicy: {}
|
|
name: latest
|
|
referencePolicy:
|
|
type: ""
|
|
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: postgres-data
|
|
name: postgres-data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 100Mi
|
|
|
|
|