This repository was archived by the owner on Aug 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpayment-paypal-microservice.yml
More file actions
109 lines (103 loc) · 2.81 KB
/
Copy pathpayment-paypal-microservice.yml
File metadata and controls
109 lines (103 loc) · 2.81 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apiVersion: apps/v1
kind: Deployment
metadata:
name: payment-paypal-microservice-deployment
namespace: 'funixproductions-dev'
labels:
app: springboot
service: payment-paypal
spec:
replicas: 1
selector:
matchLabels:
app: springboot
service: payment-paypal
template:
metadata:
namespace: 'funixproductions-dev'
annotations:
build-time: "TIME-UPDATE-BUILD-FNG"
labels:
app: springboot
service: payment-paypal
spec:
containers:
- name: springboot-payment-paypal
image: ghcr.io/funixproductions/funixproductions-api-payment-paypal:dev
ports:
- containerPort: 80
resources:
limits:
memory: "400Mi"
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /actuator/health
port: 80
initialDelaySeconds: 10
periodSeconds: 5
env:
- name: APP_PORT
value: '80'
- name: SPRING_PROFILES_ACTIVE
value: 'dev'
- name: DB_HOSTNAME
valueFrom:
configMapKeyRef:
key: postgres-url
name: postgres-config
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: postgres-config
key: postgres-port
- name: DB_DATABASE
valueFrom:
configMapKeyRef:
name: postgres-config
key: postgres-db
- name: DB_USER
valueFrom:
secretKeyRef:
name: postgres-secret
key: postgres-user
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: postgres-password
- name: PAYPAL_CLIENT_ID
valueFrom:
secretKeyRef:
name: paypal-secret
key: paypal-client-id
- name: PAYPAL_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: paypal-secret
key: paypal-client-secret
- name: PAYPAL_WEBHOOK_ID
valueFrom:
secretKeyRef:
name: paypal-secret
key: paypal-webhook-id
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: sentry-secret
key: sentry-funixprod-api-key
---
apiVersion: v1
kind: Service
metadata:
namespace: 'funixproductions-dev'
name: payment-paypal
spec:
type: ClusterIP
selector:
app: springboot
service: payment-paypal
ports:
- protocol: TCP
port: 80
targetPort: 80