mirror of
https://github.com/cna-bootcamp/lifesub.git
synced 2026-06-13 04:59:10 +00:00
add manifest
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# lifesub/deployment/manifest/configmaps/common-config.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: common-config
|
||||
data:
|
||||
JPA_DDL_AUTO: update
|
||||
JPA_SHOW_SQL: "true"
|
||||
ALLOWED_ORIGINS: "http://lifesub-web"
|
||||
@@ -0,0 +1,10 @@
|
||||
# lifesub/deployment/manifest/configmaps/member-config.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: member-config
|
||||
data:
|
||||
SERVER_PORT: "8081"
|
||||
POSTGRES_HOST: "member-postgresql"
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DB: "member"
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
# lifesub/deployment/manifest/configmaps/mysub-config.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: mysub-config
|
||||
data:
|
||||
SERVER_PORT: "8082"
|
||||
POSTGRES_HOST: "mysub-postgresql"
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DB: "mysub"
|
||||
FEE_LEVEL_COLLECTOR: "50000"
|
||||
FEE_LEVEL_ADDICT: "100000"
|
||||
@@ -0,0 +1,10 @@
|
||||
# lifesub/deployment/manifest/configmaps/recommend-config.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: recommend-config
|
||||
data:
|
||||
SERVER_PORT: "8083"
|
||||
POSTGRES_HOST: "recommend-postgresql"
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DB: "recommend"
|
||||
@@ -0,0 +1,55 @@
|
||||
# lifesub/deployment/manifest/deployments/member-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: member
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: member
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: member
|
||||
spec:
|
||||
containers:
|
||||
- name: member
|
||||
image: dg0200cr.azurecr.io/lifesub/member:1.0.0
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8081
|
||||
resources:
|
||||
requests:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1024m
|
||||
memory: 1024Mi
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: member-config
|
||||
- secretRef:
|
||||
name: common-secret
|
||||
- secretRef:
|
||||
name: member-secret
|
||||
#startupProbe:
|
||||
# tcpSocket:
|
||||
# port: 5432
|
||||
# initialDelaySeconds: 30
|
||||
# periodSeconds: 10
|
||||
# failureThreshold: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8081
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8081
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 15
|
||||
@@ -0,0 +1,55 @@
|
||||
# lifesub/deployment/manifest/deployments/mysub-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mysub
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mysub
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mysub
|
||||
spec:
|
||||
containers:
|
||||
- name: mysub
|
||||
image: dg0200cr.azurecr.io/lifesub/mysub:1.0.0
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8082
|
||||
resources:
|
||||
requests:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1024m
|
||||
memory: 1024Mi
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: mysub-config
|
||||
- secretRef:
|
||||
name: common-secret
|
||||
- secretRef:
|
||||
name: mysub-secret
|
||||
#startupProbe:
|
||||
# tcpSocket:
|
||||
# port: 5432
|
||||
# initialDelaySeconds: 30
|
||||
# periodSeconds: 10
|
||||
# failureThreshold: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8082
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8082
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 15
|
||||
@@ -0,0 +1,55 @@
|
||||
# lifesub/deployment/manifest/deployments/recommend-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: recommend
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: recommend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: recommend
|
||||
spec:
|
||||
containers:
|
||||
- name: recommend
|
||||
image: dg0200cr.azurecr.io/lifesub/recommend:1.0.0
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8083
|
||||
resources:
|
||||
requests:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1024m
|
||||
memory: 1024Mi
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: recommend-config
|
||||
- secretRef:
|
||||
name: common-secret
|
||||
- secretRef:
|
||||
name: recommend-secret
|
||||
#startupProbe:
|
||||
# tcpSocket:
|
||||
# port: 5432
|
||||
# initialDelaySeconds: 30
|
||||
# periodSeconds: 10
|
||||
# failureThreshold: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8083
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /actuator/health
|
||||
port: 8083
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 15
|
||||
@@ -0,0 +1,8 @@
|
||||
# lifesub/deployment/manifest/secrets/common-secret.yaml
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: common-secret
|
||||
type: Opaque
|
||||
stringData:
|
||||
JWT_SECRET_KEY: "8O2HQ13etL2BWZvYOiWsJ5uWFoLi6NBUG8divYVoCgtHVvlk3dqRksMl16toztDUeBTSIuOOPvHIrYq11G2BwQ"
|
||||
@@ -0,0 +1,11 @@
|
||||
# lifesub/deployment/manifest/secrets/member-secret.yaml
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: member-secret
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_USER: "admin"
|
||||
POSTGRES_PASSWORD: "Passw0rd"
|
||||
JWT_ACCESS_TOKEN_VALIDITY: "3600000"
|
||||
JWT_REFRESH_TOKEN_VALIDITY: "86400000"
|
||||
@@ -0,0 +1,9 @@
|
||||
# lifesub/deployment/manifest/secrets/mysub-secret.yaml
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: mysub-secret
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_USER: "admin"
|
||||
POSTGRES_PASSWORD: "Passw0rd"
|
||||
@@ -0,0 +1,9 @@
|
||||
# lifesub/deployment/manifest/secrets/recommend-secret.yaml
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: recommend-secret
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_USER: "admin"
|
||||
POSTGRES_PASSWORD: "Passw0rd"
|
||||
@@ -0,0 +1,12 @@
|
||||
# lifesub/deployment/manifest/services/member-service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: member
|
||||
spec:
|
||||
selector:
|
||||
app: member
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8081
|
||||
type: ClusterIP
|
||||
@@ -0,0 +1,12 @@
|
||||
# lifesub/deployment/manifest/services/mysub-service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mysub
|
||||
spec:
|
||||
selector:
|
||||
app: mysub
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8082
|
||||
type: ClusterIP
|
||||
@@ -0,0 +1,12 @@
|
||||
# lifesub/deployment/manifest/services/recommend-service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: recommend
|
||||
spec:
|
||||
selector:
|
||||
app: recommend
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8083
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user