mirror of
https://github.com/won-ktds/smarketing-manifest.git
synced 2026-06-13 14:39:10 +00:00
Initial manifest files for smarketing services
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: marketing-content-config
|
||||
namespace: smarketing
|
||||
data:
|
||||
SERVER_PORT: "8083"
|
||||
POSTGRES_HOST: "psql-digitalgarage-02.postgres.database.azure.com"
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_DB: "MarketingContentDB"
|
||||
REDIS_HOST: "redis-digitalgarage-02.redis.cache.windows.net"
|
||||
REDIS_PORT: "6380"
|
||||
JPA_DDL_AUTO: "create-drop"
|
||||
JPA_SHOW_SQL: "true"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: marketing-content-secret
|
||||
namespace: smarketing
|
||||
stringData:
|
||||
POSTGRES_USER: "pgadmin"
|
||||
POSTGRES_PASSWORD: "DG_Won!"
|
||||
REDIS_PASSWORD: "bOpPbvYhUF8toxgHDfOJlG62HTtgX2AwxAzCaDajg2w="
|
||||
type: Opaque
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: marketing-content
|
||||
namespace: smarketing
|
||||
labels:
|
||||
app: marketing-content
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: marketing-content
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: marketing-content
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: acr-secret
|
||||
containers:
|
||||
- name: marketing-content
|
||||
image: acrdigitalgarage02.azurecr.io/smarketing/marketing-content:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8083
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: marketing-content-config
|
||||
- secretRef:
|
||||
name: common-secret
|
||||
- secretRef:
|
||||
name: marketing-content-secret
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: marketing-content
|
||||
namespace: smarketing
|
||||
spec:
|
||||
selector:
|
||||
app: marketing-content
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8083
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user