Added kubernetes and docker swarm to main TOC. (#497)

This commit is contained in:
Travis Reeder
2017-01-24 11:20:51 -08:00
committed by GitHub
parent 16c9df1d0c
commit e5ef5ee6da
15 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: functions
labels:
app: functions
spec:
replicas: 1
template:
metadata:
labels:
app: functions
spec:
containers:
- name: functions
image: iron/functions
securityContext:
privileged: true
env:
- name: DOCKER_HOST
value: unix:///var/run/docker.sock
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"

View File

@@ -0,0 +1,14 @@
---
kind: Service
apiVersion: v1
metadata:
name: functions
labels:
app: functions
spec:
ports:
- port: 8080
targetPort: http-server
selector:
app: functions
type: LoadBalancer