feat : initial commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: goal-service
|
||||
namespace: team1tier-healthsync-ns
|
||||
spec:
|
||||
revisionHistoryLimit: 3
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: goal-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: goal-service
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: acr-secret
|
||||
containers:
|
||||
- name: goal-service
|
||||
image: acrhealthsync01.azurecr.io/team1tier/goal-service:1.0.8
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8084
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: goal-config
|
||||
- configMapRef:
|
||||
name: redis-config
|
||||
- secretRef:
|
||||
name: common-secret
|
||||
- secretRef:
|
||||
name: database-secret
|
||||
- secretRef:
|
||||
name: redis-secret
|
||||
- secretRef:
|
||||
name: goal-db-secret
|
||||
resources:
|
||||
requests:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1024m
|
||||
memory: 1024Mi
|
||||
# startupProbe:
|
||||
# httpGet:
|
||||
# path: /actuator/health
|
||||
# port: 8084
|
||||
# failureThreshold: 30
|
||||
# periodSeconds: 10
|
||||
# livenessProbe:
|
||||
# httpGet:
|
||||
# path: /actuator/health
|
||||
# port: 8084
|
||||
# initialDelaySeconds: 60
|
||||
# periodSeconds: 15
|
||||
# readinessProbe:
|
||||
# httpGet:
|
||||
# path: /actuator/health
|
||||
# port: 8084
|
||||
# initialDelaySeconds: 10
|
||||
# periodSeconds: 5
|
||||
@@ -0,0 +1,56 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: health-service
|
||||
namespace: team1tier-healthsync-ns
|
||||
spec:
|
||||
revisionHistoryLimit: 3
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: health-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: health-service
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: acr-secret
|
||||
containers:
|
||||
- name: health-service
|
||||
image: acrhealthsync01.azurecr.io/team1tier/health-service:1.0.13
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8082
|
||||
env:
|
||||
- name: SPRING_DATA_REDIS_HOST
|
||||
value: "redis-digitalgarage-01.redis.cache.windows.net"
|
||||
- name: SPRING_DATA_REDIS_PORT
|
||||
value: "6380"
|
||||
- name: SPRING_DATA_REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: redis-secret
|
||||
key: REDIS_PASSWORD
|
||||
- name: SPRING_DATA_REDIS_SSL_ENABLED
|
||||
value: "true"
|
||||
- name: SPRING_DATA_REDIS_TIMEOUT
|
||||
value: "2000ms"
|
||||
- name: DB_URL
|
||||
value: "jdbc:postgresql://psql-digitalgarage-01.postgres.database.azure.com:5432/healthsync_db"
|
||||
- name: DB_USERNAME
|
||||
value: "team1tier"
|
||||
- name: DB_PASSWORD
|
||||
value: "Hi5Jessica!"
|
||||
- name: JWT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: common-secret
|
||||
key: JWT_SECRET
|
||||
resources:
|
||||
requests:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1024m
|
||||
memory: 1024Mi
|
||||
@@ -0,0 +1,42 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: user-service
|
||||
namespace: team1tier-healthsync-ns
|
||||
spec:
|
||||
revisionHistoryLimit: 3
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: user-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: user-service
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: acr-secret
|
||||
containers:
|
||||
- name: user-service
|
||||
image: acrhealthsync01.azurecr.io/team1tier/user-service:1.0.11
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8081
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: user-config
|
||||
- secretRef:
|
||||
name: database-secret
|
||||
- secretRef:
|
||||
name: redis-secret
|
||||
- secretRef:
|
||||
name: user-db-secret
|
||||
resources:
|
||||
requests:
|
||||
cpu: 256m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1024m
|
||||
memory: 1024Mi
|
||||
Reference in New Issue
Block a user