-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added yaml file for lighthouse startup (#6)
* added yaml file for lighthouse startup * have fully formed lighthouse cluster * using updated container image
- Loading branch information
1 parent
d83c251
commit 2ca3658
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |