-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathkube.yaml
More file actions
41 lines (41 loc) · 675 Bytes
/
kube.yaml
File metadata and controls
41 lines (41 loc) · 675 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
apiVersion: v1
kind: Service
metadata:
name: nodeport-svc
namespace: ms
spec:
type: NodePort
selector:
app: my-app
env: prod
ports:
- port: 80
protocol: TCP
targetPort: app-port
nodePort: 32001
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
namespace: ms
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
env: prod
spec:
containers:
- name: my-deployment-container
image: naresh2603/multi:v1
imagePullPolicy: Always
ports:
- name: app-port
containerPort: 8080