Skip to content

Commit 2ca3658

Browse files
added yaml file for lighthouse startup (#6)
* added yaml file for lighthouse startup * have fully formed lighthouse cluster * using updated container image
1 parent d83c251 commit 2ca3658

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

yaml/k8s-lighthouse-service.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: lighthouse
5+
labels:
6+
app: lighthouse
7+
spec:
8+
clusterIP: None
9+
ports:
10+
- port: 4053
11+
selector:
12+
app: lighthouse
13+
---
14+
apiVersion: apps/v1
15+
kind: StatefulSet
16+
metadata:
17+
name: lighthouse
18+
labels:
19+
app: lighthouse
20+
spec:
21+
serviceName: lighthouse
22+
replicas: 3
23+
selector:
24+
matchLabels:
25+
app: lighthouse
26+
template:
27+
metadata:
28+
labels:
29+
app: lighthouse
30+
spec:
31+
terminationGracePeriodSeconds: 35
32+
containers:
33+
- name: lighthouse
34+
image: webcrawler.lighthouse:0.2.0
35+
env:
36+
- name: ACTORSYSTEM
37+
value: webcrawler
38+
- name: POD_NAME
39+
valueFrom:
40+
fieldRef:
41+
fieldPath: metadata.name
42+
- name: CLUSTER_SEEDS
43+
value: akka.tcp://[email protected]:4053,akka.tcp://[email protected]:4053,akka.tcp://[email protected]:4053
44+
command: [ "/bin/sh", "-c", "CLUSTER_IP=${POD_NAME}.lighthouse dotnet Lighthouse.dll"]
45+
livenessProbe:
46+
tcpSocket:
47+
port: 4053
48+
ports:
49+
- containerPort: 4053
50+
protocol: TCP

0 commit comments

Comments
 (0)