mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
44 lines
988 B
YAML
44 lines
988 B
YAML
---
|
|
kind: Deployment
|
|
apiVersion: extensions/v1beta1
|
|
metadata:
|
|
name: functions
|
|
labels:
|
|
app: functions
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: functions
|
|
spec:
|
|
containers:
|
|
- name: functions
|
|
image: treeder/functions
|
|
securityContext:
|
|
privileged: true
|
|
env:
|
|
- name: DOCKER_HOST
|
|
value: unix:///var/run/docker.sock
|
|
- name: MQ_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: functions-config
|
|
key: MQ_URL
|
|
- name: DB_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: functions-config
|
|
key: DB_URL
|
|
volumeMounts:
|
|
- mountPath: "/var/run/docker.sock"
|
|
name: docker-socket
|
|
readOnly: false
|
|
ports:
|
|
- name: http-server
|
|
containerPort: 8080
|
|
volumes:
|
|
- name: docker-socket
|
|
hostPath:
|
|
path: "/var/run/docker.sock"
|