55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: quay-enterprise
|
|
name: quay-enterprise-app
|
|
labels:
|
|
quay-enterprise-component: app
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
quay-enterprise-component: app
|
|
spec:
|
|
serviceAccountName: "quay-enterprise"
|
|
containers:
|
|
- name: quay-enterprise-app
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /status
|
|
port: 80
|
|
initialDelaySeconds: 300
|
|
periodSeconds: 30
|
|
failureThreshold: 3
|
|
successThreshold: 1
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /status
|
|
port: 80
|
|
initialDelaySeconds: 45
|
|
failureThreshold: 6
|
|
periodSeconds: 20
|
|
env:
|
|
- name: QE_K8S_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
image: {{image}}
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: configvolume
|
|
readOnly: false
|
|
mountPath: /conf/stack
|
|
resources:
|
|
limits:
|
|
cpu: 1
|
|
memory: 2Gi
|
|
imagePullSecrets:
|
|
- name: coreos-pull-secret
|
|
volumes:
|
|
- name: configvolume
|
|
secret:
|
|
secretName: quay-enterprise-config-secret
|