-
Notifications
You must be signed in to change notification settings - Fork 0
/
userjava.yaml
28 lines (28 loc) · 1.22 KB
/
userjava.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
apiVersion: apps/v1 # defines the API version we use
kind: Deployment # type of config object
metadata:
name: userjava
namespace: api # use a descriptive name
spec:
selector:
matchLabels:
app: userjava # this deployment will only 'look after' pods with this label
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: userjava # selector of deployment must match the label the pod. label are key-value pairs.
spec:
containers: # definition of the containers in the spec
- image: registrybnk1575.azurecr.io/tripinsights/user-java:1.0 # name of docker image you want to use
name: userjava
env:
- name: SQL_USER
value: sqladminbNk1575
- name: SQL_PASSWORD
value: nP1px5Qj3
- name: SQL_SERVER
value: sqlserverbnk1575.database.windows.net
- name: SQL_DBNAME
value: mydrivingDB
imagePullPolicy: Always