forked from mckeeh3/akka-java-cluster-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
akka-cluster-deployment.yml
49 lines (48 loc) · 1.13 KB
/
akka-cluster-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: akka-cluster-demo
name: akka-cluster-demo
namespace: akka-cluster-1
spec:
replicas: 3
selector:
matchLabels:
app: akka-cluster-demo
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: akka-cluster-demo
actorSystemName: akka-cluster-demo
spec:
containers:
- name: akka-cluster-demo
image: akka-cluster-demo:1.0.2
imagePullPolicy: Never
livenessProbe:
tcpSocket:
port: 8558
ports:
- name: http
containerPort: 8080
protocol: TCP
# akka remoting
- name: remoting
containerPort: 2552
protocol: TCP
# akka-management bootstrap
# must match up with contact-point-discovery.port-name for bootstrap
- name: management
containerPort: 8558
protocol: TCP
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace