Skip to content

Commit 362cc77

Browse files
author
Michael Recachinas
committed
Add deployment k8s yaml
1 parent 931a4a4 commit 362cc77

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

deploy/k8s-deployment.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
kind: Deployment
3+
apiVersion: apps/v1
4+
metadata:
5+
name: sigplot-data-service
6+
spec:
7+
replicas: 1
8+
revisionHistoryLimit: 1
9+
selector:
10+
matchLabels:
11+
app: sigplot-data-service
12+
13+
template:
14+
metadata:
15+
labels:
16+
app: sigplot-data-service
17+
spec:
18+
containers:
19+
- name: sigplot-data-service
20+
image: sigplot-data-service:0.7
21+
args:
22+
- --config=/opt/sds/sdsConfig.json
23+
ports:
24+
- containerPort: 1338
25+
volumeMounts:
26+
- name: sds-secret
27+
mountPath: /opt/sds/sdsConfig.json
28+
subPath: sdsConfig.json
29+
readOnly: true
30+
volumes:
31+
- name: sds-secret
32+
secret:
33+
defaultMode: 420
34+
secretName: sds-secret
35+
36+
---
37+
kind: Service
38+
apiVersion: v1
39+
metadata:
40+
name: sigplot-data-service
41+
spec:
42+
ports:
43+
- port: 1338
44+
protocol: TCP
45+
selector:
46+
app: sigplot-data-service
47+
48+
---
49+
kind: Ingress
50+
apiVersion: networking.k8s.io/v1
51+
metadata:
52+
name: sigplot-data-service
53+
spec:
54+
rules:
55+
- host: ...
56+
http:
57+
paths:
58+
- path: /
59+
pathType: Prefix
60+
backend:
61+
service:
62+
name: sigplot-data-service
63+
port:
64+
number: 1338

0 commit comments

Comments
 (0)