Files
fedora-infra_ansible/roles/openshift-apps/fedocal/files/deploymentconfig.yml
Pierre-Yves Chibon 3c288105c9 Start porting fedocal to openshift
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2019-01-23 13:52:03 +01:00

70 lines
1.5 KiB
YAML

---
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: fedocal
service: fedocal
name: fedocal
spec:
replicas: 1
selector:
app: fedocal
deploymentconfig: fedocal
strategy:
type: Recreate
recreateParams:
# mid:
# failurePolicy: Abort
# execNewPod:
# containerName: fedocal
# command: ["alembic", "upgrade", "head", "-c", "/opt/app-root/config/alembic.ini"]
# env:
# - name: PYTHONPATH
# value: /opt/app-root/src
# volumes:
# - config-volume
template:
metadata:
labels:
app: fedocal
deploymentconfig: fedocal
spec:
containers:
- name: fedocal
image: fedocal:latest
ports:
- containerPort: 8080
resources: {}
volumeMounts:
- name: config-volume
mountPath: /opt/app-root/config/
readOnly: true
readinessProbe:
timeoutSeconds: 1
initialDelaySeconds: 5
httpGet:
path: /
port: 8080
livenessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
httpGet:
path: /
port: 8080
volumes:
- name: config-volume
configMap:
name: fedocal-configmap
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- fedocal
from:
kind: ImageStreamTag
name: fedocal:latest