-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
62 lines (55 loc) · 1.04 KB
/
deployment.yaml
File metadata and controls
62 lines (55 loc) · 1.04 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: v1
kind: Namespace
metadata:
name: my-go-hello-app-namespace
labels:
name: my-go-hello-app
razee/watch-resource: detail
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-go-hello-app-deployment
namespace: my-go-hello-app-namespace
labels:
app: my-go-hello-app
spec:
replicas: 3
selector:
matchLabels:
app: my-go-hello-app
template:
metadata:
labels:
app: my-go-hello-app
spec:
containers:
- name: my-go-hello-app
image: docker.io/dhodvogner/my-go-hello-app:latest
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: my-go-hello-app-service
namespace: my-go-hello-app-namespace
spec:
selector:
app: my-go-hello-app
ports:
- port: 8080
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: my-go-hello-app-route
namespace: my-go-hello-app-namespace
labels:
razee/watch-resource: detail
spec:
port:
targetPort: 8080
to:
kind: Service
name: my-go-hello-app-service