99 lines
3.4 KiB
YAML
99 lines
3.4 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: atlas-admin-inventory
|
|
spec:
|
|
selector: {app: atlas-admin-inventory}
|
|
ports:
|
|
- {name: http, port: 8081}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: atlas-admin-inventory
|
|
spec:
|
|
replicas: 1
|
|
strategy: {type: Recreate}
|
|
selector:
|
|
matchLabels: {app: atlas-admin-inventory}
|
|
template:
|
|
metadata:
|
|
labels: {app: atlas-admin-inventory}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: inventory
|
|
image: item-atlas-inventory-service:admin-preview-0.1.2
|
|
imagePullPolicy: Never
|
|
envFrom:
|
|
- secretRef: {name: atlas-admin-inventory}
|
|
env:
|
|
- {name: SPRING_PROFILES_ACTIVE, value: release}
|
|
- {name: ATLAS_DB_URL, value: 'jdbc:postgresql://atlas-admin-postgres:5432/itematlas_inventory'}
|
|
- {name: ATLAS_DB_USER, value: atlas_inventory}
|
|
- {name: ATLAS_OIDC_ISSUER_URI, value: 'http://127.0.0.1:18482/auth/realms/item-atlas-admin-preview'}
|
|
- {name: ATLAS_OIDC_AUDIENCE, value: item-atlas-api}
|
|
- {name: SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI, value: 'http://atlas-admin-keycloak:8080/auth/realms/item-atlas-admin-preview/protocol/openid-connect/certs'}
|
|
- {name: SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE, value: '4'}
|
|
- {name: SPRING_FLYWAY_CONNECT_RETRIES, value: '12'}
|
|
- {name: SPRING_FLYWAY_CONNECT_RETRIES_INTERVAL, value: '4s'}
|
|
- {name: MANAGEMENT_OTLP_METRICS_EXPORT_ENABLED, value: 'false'}
|
|
- {name: JAVA_TOOL_OPTIONS, value: '-Xmx192m'}
|
|
ports:
|
|
- {name: http, containerPort: 8081}
|
|
startupProbe:
|
|
httpGet: {path: /actuator/health/readiness, port: http}
|
|
periodSeconds: 5
|
|
failureThreshold: 48
|
|
readinessProbe:
|
|
httpGet: {path: /actuator/health/readiness, port: http}
|
|
livenessProbe:
|
|
httpGet: {path: /actuator/health/liveness, port: http}
|
|
resources:
|
|
requests: {cpu: 100m, memory: 192Mi}
|
|
limits: {cpu: '1', memory: 384Mi}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: atlas-admin-gateway
|
|
spec:
|
|
selector: {app: atlas-admin-gateway}
|
|
ports:
|
|
- {name: http, port: 8080}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: atlas-admin-gateway
|
|
spec:
|
|
replicas: 1
|
|
strategy: {type: Recreate}
|
|
selector:
|
|
matchLabels: {app: atlas-admin-gateway}
|
|
template:
|
|
metadata:
|
|
labels: {app: atlas-admin-gateway}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: gateway
|
|
image: git.tutudog.com/dongjf/item-atlas-gateway:5299e526f4aee1e619a66f3d57e464b05be7ef92
|
|
env:
|
|
- {name: ATLAS_INVENTORY_URL, value: 'http://atlas-admin-inventory:8081'}
|
|
- {name: MANAGEMENT_OTLP_METRICS_EXPORT_ENABLED, value: 'false'}
|
|
- {name: JAVA_TOOL_OPTIONS, value: '-Xmx160m'}
|
|
ports:
|
|
- {name: http, containerPort: 8080}
|
|
startupProbe:
|
|
httpGet: {path: /actuator/health/readiness, port: http}
|
|
periodSeconds: 5
|
|
failureThreshold: 48
|
|
readinessProbe:
|
|
httpGet: {path: /actuator/health/readiness, port: http}
|
|
livenessProbe:
|
|
httpGet: {path: /actuator/health/liveness, port: http}
|
|
resources:
|
|
requests: {cpu: 100m, memory: 160Mi}
|
|
limits: {cpu: '1', memory: 320Mi}
|