44 lines
1006 B
YAML
44 lines
1006 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: health-service
|
|
namespace: team1tier-healthsync-ns
|
|
spec:
|
|
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.0
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8082
|
|
envFrom:
|
|
- configMapRef:
|
|
name: common-config
|
|
- configMapRef:
|
|
name: health-config
|
|
- secretRef:
|
|
name: common-secret
|
|
- secretRef:
|
|
name: database-secret
|
|
- secretRef:
|
|
name: redis-secret
|
|
- secretRef:
|
|
name: health-db-secret
|
|
resources:
|
|
requests:
|
|
cpu: 256m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1024m
|
|
memory: 1024Mi
|