k8s deployment/svc

pull/2/head
Karolis Rusenas 2017-06-10 12:23:22 +01:00
parent a6f7a9bd72
commit 3283c28529
2 changed files with 52 additions and 0 deletions

31
hack/deployment.yml Normal file
View File

@ -0,0 +1,31 @@
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: keel
namespace: default
labels:
name: "keel"
spec:
replicas: 1
template:
metadata:
name: keel
labels:
app: keel
spec:
containers:
- image: karolisr/keel:0.0.1
imagePullPolicy: Always
name: keel
command: ["/bin/keel"]
ports:
- containerPort: 9300
livenessProbe:
httpGet:
path: /healthz
port: 9300
initialDelaySeconds: 30
timeoutSeconds: 10
securityContext:
privileged: true

21
hack/svc.yml Normal file
View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
namespace: default
labels:
name: keel
version: 0.0.1
name: keel
spec:
ports:
- name: ui
port: 9300
protocol: TCP
targetPort: 9300
selector:
app: keel
sessionAffinity: None
type: LoadBalancer