Skip to content

Commit eda0275

Browse files
committed
Add Kubernetes configurations and service implementations for organization and license services
1 parent ed7d8f7 commit eda0275

File tree

100 files changed

+7368
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+7368
-36
lines changed

Bonus/microservices/eureka.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: eureka
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
pod: eureka
10+
template:
11+
metadata:
12+
labels:
13+
pod: eureka
14+
spec:
15+
containers:
16+
- name: eureka-container
17+
image: eureka:1
18+
resources:
19+
requests:
20+
cpu: 200m
21+
memory: 250Mi
22+
limits:
23+
cpu: 300m
24+
memory: 400Mi
25+
26+
---
27+
apiVersion: v1
28+
kind: Service
29+
metadata:
30+
name: eureka
31+
labels:
32+
app: eureka
33+
spec:
34+
selector:
35+
pod: eureka
36+
ports:
37+
- name: http
38+
port: 8071
39+
targetPort: 8071
40+
type: ClusterIP

Bonus/microservices/gateway.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: gateway
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
pod: gateway
10+
template:
11+
metadata:
12+
labels:
13+
pod: gateway
14+
spec:
15+
containers:
16+
- name: gateway-container
17+
image: gateway:1
18+
args:
19+
- "-jar"
20+
- "/application/application.jar"
21+
resources:
22+
requests:
23+
cpu: 200m
24+
memory: 250Mi
25+
limits:
26+
cpu: 300m
27+
memory: 400Mi
28+
env:
29+
- name: OTEL_SERVICE_NAME
30+
value: gateway-service
31+
- name: OTEL_TRACES_EXPORTER
32+
value: none
33+
- name: OTEL_LOGS_EXPORTER
34+
value: none
35+
- name: OTEL_METRICS_EXPORTER
36+
value: none
37+
- name: JAVA_TOOL_OPTIONS
38+
value: "-javaagent:/opt/app/opentelemetry-javaagent.jar"
39+
---
40+
apiVersion: v1
41+
kind: Service
42+
metadata:
43+
name: gateway
44+
labels:
45+
app: gateway
46+
spec:
47+
selector:
48+
pod: gateway
49+
ports:
50+
- name: http
51+
port: 8080
52+
targetPort: 8080
53+
type: ClusterIP

0 commit comments

Comments
 (0)