-
Notifications
You must be signed in to change notification settings - Fork 8
/
deployment.yaml
50 lines (50 loc) · 1.33 KB
/
deployment.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: discovery-demo-app
name: discovery-demo-app
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: discovery-demo-app
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: discovery-demo-app
spec:
containers:
- image: us.icr.io/<YOUR_ICR_NAMESPACE>/discovery-demo-app:v1
imagePullPolicy: IfNotPresent
name: discovery-demo-app
ports:
- containerPort: 8080
protocol: TCP
env:
- name: DISCOVERY_API_KEY
valueFrom:
secretKeyRef:
name: discovery-credentials
key: api-key
- name: DISCOVERY_URL
valueFrom:
secretKeyRef:
name: discovery-credentials
key: url
#- name: NEW_RELIC_LICENSE_KEY
# valueFrom:
# secretKeyRef:
# name: nri-bundle-newrelic-infrastructure-config
# key: license
#- name: NEW_RELIC_APP_NAME
# value: "discovery-demo"
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30