-
Notifications
You must be signed in to change notification settings - Fork 2
/
appinfo.yaml
43 lines (43 loc) · 957 Bytes
/
appinfo.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
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: appinfo
labels:
release: stable
app: appinfo
spec:
replicas: 1
selector:
matchLabels:
app: appinfo
template:
metadata:
labels:
app: appinfo
release: stable
spec:
containers:
- name: appinfo-containers
image: runyonsolutions/appinfo:1
ports:
- containerPort: 8080
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: podinfo
mountPath: /etc
readOnly: false
volumes:
- name: podinfo
downwardAPI:
items:
- path: "labels"
fieldRef:
fieldPath: metadata.labels