Skip to content

Commit

Permalink
Add Kubernetes files
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Sep 24, 2015
1 parent 50d6f5e commit d44c7ee
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
31 changes: 31 additions & 0 deletions kube/rc.yaml
@@ -0,0 +1,31 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: yesodweb
labels:
name: yesodweb
spec:
replicas: 1
selector:
name: yesodweb
template:
metadata:
labels:
name: yesodweb
spec:
containers:
- name: yesodweb
image: snoyberg/yesodweb
imagePullPolicy: Always
command: ["yesodweb", "development"]
workingDir: /app
ports:
- containerPort: 3001
hostPort: 3001
env:
- name: PORT
value: "3001"
livenessProbe:
httpGet:
path: /
port: 3001
14 changes: 14 additions & 0 deletions kube/service.yaml
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: yesodweb
labels:
name: yesodweb
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 3001
protocol: TCP
selector:
name: yesodweb
7 changes: 7 additions & 0 deletions stack.yaml
@@ -1 +1,8 @@
resolver: lts-3.0
image:
container:
name: snoyberg/yesodweb
base: fpco/stack-run
add:
config: /app/config
static: /app/static

0 comments on commit d44c7ee

Please sign in to comment.