Skip to content

Commit fc3ea29

Browse files
committed
chore: add ki8s
1 parent b8b8591 commit fc3ea29

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

k8s/deployment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: hello-world
5+
namespace: default
6+
spec:
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: hello-world
11+
template:
12+
metadata:
13+
labels:
14+
app: hello-world
15+
spec:
16+
containers:
17+
- name: hello-world
18+
image: codepier/node-getting-started:latest
19+
ports:
20+
- containerPort: 3000

k8s/ingress.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: hello-world
5+
namespace: default
6+
spec:
7+
rules:
8+
- host: hello-world.localhost
9+
http:
10+
paths:
11+
- path: /
12+
pathType: Prefix
13+
backend:
14+
service:
15+
name: hello-world
16+
port:
17+
number: 3000

k8s/service.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: hello-world
5+
namespace: default
6+
spec:
7+
selector:
8+
app: hello-world
9+
ports:
10+
- port: 3000
11+
targetPort: 3000

0 commit comments

Comments
 (0)