75 lines
1.7 KiB
YAML
75 lines
1.7 KiB
YAML
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: eonline-deployment
|
|
labels:
|
|
app: eonline
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: eonline
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: eonline
|
|
spec:
|
|
containers:
|
|
- name: eonline
|
|
image: nginx
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 80
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "128m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "256m"
|
|
volumeMounts:
|
|
- mountPath: /data/conf
|
|
name: eonline-conf
|
|
volumes:
|
|
- configMap:
|
|
defaultMode: 420
|
|
name: eonline-conf
|
|
name: eonline-conf
|
|
---
|
|
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: eonline-worker-deployment
|
|
labels:
|
|
app: eonline-worker
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: eonline-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: eonline-worker
|
|
spec:
|
|
containers:
|
|
- name: eonline-worker
|
|
image: nginx
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 80
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "128m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "256m"
|
|
volumeMounts:
|
|
- mountPath: /data/conf
|
|
name: eonline-conf
|
|
volumes:
|
|
- configMap:
|
|
defaultMode: 420
|
|
name: eonline-conf
|
|
name: eonline-conf |