-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathcurl2.yml
More file actions
44 lines (44 loc) · 1.11 KB
/
curl2.yml
File metadata and controls
44 lines (44 loc) · 1.11 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: curl2
name: curl2
spec:
replicas: 1
selector:
matchLabels:
app: curl2
template:
metadata:
labels:
app: curl2
spec:
containers:
- image: radial/busyboxplus:curl
command: ['sh', '-c', 'echo Hello Kubernetes! && sleep 3600']
imagePullPolicy: Always
name: curl2
ports:
- containerPort: 5678
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: MY_POD_SERVICE_ACCOUNT
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName