You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.9 KiB
102 lines
2.9 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-net-ext
|
|
namespace: moh-prod
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: csi-net-ext
|
|
tier: backend
|
|
track: stable
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-net-ext
|
|
tier: backend
|
|
track: stable
|
|
spec:
|
|
#nodeName: csi-dev-wrk-01
|
|
containers:
|
|
# - image: harbor.moh.gov.sa/vidamoh/csi-token-filter:4.0.3.0-b2
|
|
# imagePullPolicy: IfNotPresent
|
|
# name: token-filter
|
|
# ports:
|
|
# - containerPort: 8085
|
|
# name: http
|
|
# env:
|
|
# - name: GODEBUG
|
|
# value: 'gctrace=1,schedtrace=10000'
|
|
# envFrom:
|
|
# - configMapRef:
|
|
# name: iam-service-configs
|
|
# - secretRef:
|
|
# name: iam-service-secret
|
|
# livenessProbe:
|
|
# httpGet:
|
|
# path: /healthz/liveness
|
|
# port: 8085
|
|
# initialDelaySeconds: 10
|
|
# failureThreshold: 3
|
|
# periodSeconds: 10
|
|
# readinessProbe:
|
|
# httpGet:
|
|
# path: /healthz/readiness
|
|
# port: 8085
|
|
# initialDelaySeconds: 10
|
|
# failureThreshold: 3
|
|
# periodSeconds: 10
|
|
# resources:
|
|
# limits:
|
|
# memory: 1G
|
|
# requests:
|
|
# cpu: 50m
|
|
# memory: 256M
|
|
- env:
|
|
- name: ASPNETCORE_URLS
|
|
value: http://+:80
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: net_environment
|
|
name: service-configs
|
|
- name: config_server
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: config_server
|
|
name: service-configs
|
|
image: harbor.moh.gov.sa/vidamoh/csi-net-ext:1.0.0
|
|
name: csi-net-ext
|
|
volumeMounts:
|
|
- name: volume-csi-net-ext
|
|
mountPath: /app/certs/
|
|
readOnly: false
|
|
- name: volume-csi-net-tenant-mapping
|
|
mountPath: /app/mappings/
|
|
readOnly: false
|
|
- name: volume-csi-net-appdb
|
|
mountPath: /app/data
|
|
readOnly: false
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
resources:
|
|
limits:
|
|
memory: 1Gi
|
|
cpu: 250m
|
|
requests:
|
|
cpu: 250m
|
|
memory: 1Gi
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
volumes:
|
|
- name: volume-csi-net-ext
|
|
secret:
|
|
secretName: secret-csi-net-ext
|
|
- name: volume-csi-net-tenant-mapping
|
|
secret:
|
|
secretName: secret-csi-net-tenant-mapping
|
|
- name: volume-csi-net-appdb
|
|
hostPath:
|
|
path: /home/noty/data
|
|
type: Directory |