-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathget.yaml
More file actions
48 lines (48 loc) · 757 Bytes
/
get.yaml
File metadata and controls
48 lines (48 loc) · 757 Bytes
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: ConfigMap
metadata:
name: get-conf
data:
ENDPOINT: "back-srv:8083"
HOST_PORT: "8081"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: get
labels:
app: get
spec:
replicas: 1
selector:
matchLabels:
app: get
template:
metadata:
labels:
app: get
spec:
containers:
- name: get
image: nikitasadok/go-get-service
ports:
- containerPort: 8081
protocol: TCP
envFrom:
- configMapRef:
name: get-conf
---
apiVersion: v1
kind: Service
metadata:
name: get-srv
labels:
app: get
spec:
type: NodePort
ports:
- port: 8081
protocol: TCP
targetPort: 8081
selector:
app: get