github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/docs/operating/kubernetes/kubernetes-quick/deployment.yaml (about)

     1  ---
     2  kind: Deployment
     3  apiVersion: extensions/v1beta1
     4  metadata:
     5    name: functions
     6    labels:
     7      app: functions
     8  spec:
     9    replicas: 1
    10    template:
    11      metadata:
    12        labels:
    13          app: functions
    14      spec:
    15        containers:
    16        - name: functions
    17          image: iron/functions
    18          securityContext:
    19            privileged: true
    20          env:
    21          - name: DOCKER_HOST
    22            value: unix:///var/run/docker.sock
    23          volumeMounts:
    24          - mountPath: "/var/run/docker.sock"
    25            name: docker-socket
    26            readOnly: false
    27          ports:
    28          - name: http-server
    29            containerPort: 8080
    30        volumes:
    31        - name: docker-socket
    32          hostPath:
    33            path: "/var/run/docker.sock"