Skip to content

Commit 7ff9857

Browse files
author
rtkay123
committed
feat: sidecar deployment
1 parent 622876d commit 7ff9857

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ ENV DISTRIBUTED_CACHE_ENABLED=true
6666
# Auth
6767
ENV AUTHENTICATED=false
6868
ENV CERT_PATH_PUBLIC=
69+
ENV SIDECAR_HOST=0.0.0.0:5000
6970

7071
ENV ACTIVE_CONDITIONS_ONLY=false
7172

deployment.yaml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: admin-service-rel-1-0-0
6+
namespace: processor
7+
labels:
8+
app: admin-service
9+
spec:
10+
replicas: 1
11+
selector:
12+
matchLabels:
13+
app: admin-service
14+
template:
15+
metadata:
16+
name: admin-service-rel-1-0-0
17+
labels:
18+
app: admin-service
19+
annotations:
20+
prometheus.io.scrape: 'false'
21+
spec:
22+
containers:
23+
- name: admin-service-rel-1-0-0
24+
image: example.io/admin-service-rel-1-0-0:1.0.0
25+
ports:
26+
- name: http
27+
protocol: TCP
28+
containerPort: 3000
29+
resources: {}
30+
imagePullPolicy: Always
31+
- name: admin-service-sidecar-rel-1-0-0
32+
image: example.io/sidecar-rel-1-0-0:1.0.0
33+
ports:
34+
- name: http
35+
protocol: TCP
36+
containerPort: 5000
37+
resources: {}
38+
imagePullPolicy: Always
39+
restartPolicy: Always
40+
terminationGracePeriodSeconds: 30
41+
dnsPolicy: ClusterFirst
42+
securityContext: {}
43+
imagePullSecrets:
44+
- name: frmpullsecret
45+
schedulerName: default-scheduler
46+
enableServiceLinks: false
47+
strategy:
48+
type: RollingUpdate
49+
rollingUpdate:
50+
maxUnavailable: 0
51+
maxSurge: 1
52+
revisionHistoryLimit: 10
53+
progressDeadlineSeconds: 600

service.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: admin-service-rel-1-0-0
6+
namespace: processor
7+
spec:
8+
ports:
9+
- name: http
10+
protocol: TCP
11+
port: 3000
12+
targetPort: 3000
13+
- name: sidecar
14+
protocol: TCP
15+
port: 5000
16+
targetPort: 5000
17+
selector:
18+
app: admin-service
19+
type: ClusterIP
20+
sessionAffinity: None
21+
ipFamilies:
22+
- IPv4
23+
ipFamilyPolicy: SingleStack
24+
internalTrafficPolicy: Cluster

0 commit comments

Comments
 (0)