Skip to content

Commit

Permalink
added yaml file for lighthouse startup (#6)
Browse files Browse the repository at this point in the history
* added yaml file for lighthouse startup

* have fully formed lighthouse cluster

* using updated container image
  • Loading branch information
Aaronontheweb authored Feb 6, 2019
1 parent d83c251 commit 2ca3658
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions yaml/k8s-lighthouse-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: v1
kind: Service
metadata:
name: lighthouse
labels:
app: lighthouse
spec:
clusterIP: None
ports:
- port: 4053
selector:
app: lighthouse
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: lighthouse
labels:
app: lighthouse
spec:
serviceName: lighthouse
replicas: 3
selector:
matchLabels:
app: lighthouse
template:
metadata:
labels:
app: lighthouse
spec:
terminationGracePeriodSeconds: 35
containers:
- name: lighthouse
image: webcrawler.lighthouse:0.2.0
env:
- name: ACTORSYSTEM
value: webcrawler
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CLUSTER_SEEDS
value: akka.tcp://webcrawler@lighthouse-0.lighthouse:4053,akka.tcp://webcrawler@lighthouse-1.lighthouse:4053,akka.tcp://webcrawler@lighthouse-2.lighthouse:4053
command: [ "/bin/sh", "-c", "CLUSTER_IP=${POD_NAME}.lighthouse dotnet Lighthouse.dll"]
livenessProbe:
tcpSocket:
port: 4053
ports:
- containerPort: 4053
protocol: TCP

0 comments on commit 2ca3658

Please sign in to comment.