-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpod-3.yaml
48 lines (48 loc) · 900 Bytes
/
pod-3.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
apiVersion: v1
kind: Pod
metadata:
name: pod-3
spec:
containers:
- name: one
image: demo:1
args:
- --pod=3
- --container=container1
- --listen=:8080
- --call=http://localhost:8081
ports:
- containerPort: 8080
volumeMounts:
- name: scratch
mountPath: /tmp
- name: config
mountPath: /etc/app-config
- name: two
image: demo:1
args:
- --pod=3
- --container=container2
- --listen=:8081
- --call=http://localhost:8080
ports:
- containerPort: 8081
volumeMounts:
- name: scratch
mountPath: /tmp
- name: config
mountPath: /etc/app-config
volumes:
- name: scratch
emptyDir: {}
- name: config
configMap:
defaultMode: 420
name: app-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
file.conf: "Some file content!"