mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 14:02:12 +08:00
49 lines
953 B
YAML
49 lines
953 B
YAML
---
|
|
apiVersion: apps.openshift.io/v1
|
|
kind: DeploymentConfig
|
|
metadata:
|
|
name: asknot
|
|
labels:
|
|
app: asknot
|
|
service: asknot
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
app: asknot
|
|
service: asknot
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: asknot
|
|
service: asknot
|
|
spec:
|
|
containers:
|
|
- name: asknot
|
|
image: registry/asknot:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
readinessProbe:
|
|
timeoutSeconds: 5
|
|
initialDelaySeconds: 60
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
livenessProbe:
|
|
timeoutSeconds: 5
|
|
initialDelaySeconds: 60
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
resources:
|
|
volumes:
|
|
triggers:
|
|
- type: ImageChange
|
|
imageChangeParams:
|
|
automatic: true
|
|
containerNames:
|
|
- "asknot"
|
|
from:
|
|
kind: ImageStreamTag
|
|
name: asknot:latest
|