39 lines
821 B
YAML
39 lines
821 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lambda
|
|
namespace: eth
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: lambda
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: lambda
|
|
spec:
|
|
containers:
|
|
- name: lambda
|
|
image: eth-lambda
|
|
command: ["sleep", "infinity"]
|
|
workingDir: /app
|
|
envFrom:
|
|
- configMapRef:
|
|
name: eth-config
|
|
volumeMounts:
|
|
- name: documents
|
|
mountPath: /mnt/documents
|
|
readOnly: true
|
|
resources:
|
|
requests:
|
|
memory: 128Mi
|
|
cpu: 100m
|
|
limits:
|
|
memory: 512Mi
|
|
volumes:
|
|
- name: documents
|
|
hostPath:
|
|
path: /mnt/documents
|
|
type: Directory
|