61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: flow-doc
|
|
namespace: ${NAMESPACE}
|
|
labels:
|
|
app: flow-doc
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: flow-doc
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: flow-doc
|
|
annotations:
|
|
config.linkerd.io/skip-outbound-ports: 3306,16379,6379
|
|
spec:
|
|
containers:
|
|
- name: flow-doc
|
|
image: ${TAG}
|
|
imagePullPolicy: IfNotPresent
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 80
|
|
path: /
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 200Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 50Mi
|
|
env:
|
|
- name: APP_DEBUG
|
|
value: "true"
|
|
- name: LOG_ALLOCATE
|
|
value: "off"
|
|
ports:
|
|
- containerPort: 80
|
|
- containerPort: 10080
|
|
imagePullSecrets:
|
|
- name: docker-registry-public
|
|
- name: docker-registry-vpc
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: flow-doc-service
|
|
namespace: ${NAMESPACE}
|
|
labels:
|
|
app: flow-doc
|
|
spec:
|
|
selector:
|
|
app: flow-doc
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
name: http |