1-
2- # #
3- # # Copyright (c) 2021 Oracle and/or its affiliates.
4- # # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
51apiVersion : apps/v1
62kind : Deployment
73metadata :
84 name : inventory-springboot
9- labels :
10- app : inventory
115spec :
126 replicas : 1
137 selector :
@@ -20,57 +14,42 @@ spec:
2014 version : springboot
2115 spec :
2216 containers :
23- - name : inventory
24- imagePullPolicy : Always
25- image : %DOCKER_REGISTRY%/%IMAGE_NAME%:%IMAGE_VERSION%
26- volumeMounts :
27- - name : creds
28- mountPath : /msdataworkshop/creds
29- ports :
30- - containerPort : 8080
31- livenessProbe :
32- httpGet :
33- path : /health/live
34- port : 8080
35- initialDelaySeconds : 20
36- periodSeconds : 20
37- timeoutSeconds : 5
38- failureThreshold : 3
39- readinessProbe :
40- httpGet :
41- path : /health/ready
42- port : 8080
43- initialDelaySeconds : 3
44- periodSeconds : 3
45- timeoutSeconds : 5
46- failureThreshold : 20
47- env :
48- - name : LOG_LEVEL
49- value : " DEBUG"
50- - name : server_port
51- value : " 8080"
52- - name : db_user
53- value : " inventoryuser"
54- - name : db_url
55- value : " jdbc:oracle:thin:@%INVENTORY_PDB_NAME%_tp?TNS_ADMIN=/msdataworkshop/creds"
56- - name : db_queueOwner
57- value : " inventoryuser"
58- - name : db_orderQueueName
59- value : " orderqueue"
60- - name : db_inventoryQueueName
61- value : " inventoryqueue"
62- - name : OCI_REGION
63- value : " %OCI_REGION%"
64- - name : VAULT_SECRET_OCID
65- value : " %VAULT_SECRET_OCID%"
66- - name : db_password
67- valueFrom :
68- secretKeyRef :
69- name : dbuser
70- key : dbpassword
71- optional : true # not needed/used if using VAULT_SECRET_OCID exists
17+ - name : inventory
18+ image : %DOCKER_REGISTRY%/%IMAGE_NAME%:%IMAGE_VERSION%
19+ imagePullPolicy : Always
20+ env :
21+ - name : LOG_LEVEL
22+ value : " DEBUG"
23+ - name : server_port
24+ value : " 8080"
25+ - name : db_user
26+ value : " inventoryuser"
27+ - name : db_url
28+ value : " jdbc:oracle:thin:@%INVENTORY_PDB_NAME%_tp?TNS_ADMIN=/msdataworkshop/creds"
29+ - name : db_queueOwner
30+ value : " inventoryuser"
31+ - name : db_orderQueueName
32+ value : " orderqueue"
33+ - name : db_inventoryQueueName
34+ value : " inventoryqueue"
35+ - name : OCI_REGION
36+ value : " %OCI_REGION%"
37+ - name : VAULT_SECRET_OCID
38+ value : " %VAULT_SECRET_OCID%"
39+ - name : db_password
40+ valueFrom :
41+ secretKeyRef :
42+ name : dbuser
43+ key : dbpassword
44+ optional : true # not needed/used if using VAULT_SECRET_OCID exists
45+ volumeMounts :
46+ - name : creds
47+ mountPath : /msdataworkshop/creds
48+ ports :
49+ - containerPort : 8080
7250 restartPolicy : Always
7351 volumes :
7452 - name : creds
7553 secret :
76- secretName : db-wallet-secret
54+ secretName : db-wallet-secret
55+
0 commit comments