Skip to content

Commit 6084c73

Browse files
author
Moussa Ouattara
committed
update
1 parent 5ec723c commit 6084c73

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

manifests/deployment.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: helloworld
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: helloworld
10+
template:
11+
metadata:
12+
labels:
13+
app: helloworld
14+
spec:
15+
nodeSelector:
16+
"kubernetes.io/os": linux
17+
containers:
18+
- name: helloworld
19+
image: karthequian/helloworld:latest
20+
resources:
21+
requests:
22+
cpu: 100m
23+
memory: 128Mi
24+
limits:
25+
cpu: 250m
26+
memory: 256Mi
27+
ports:
28+
- containerPort: 80
29+
env:
30+
- name: PORT
31+
value: 80

manifests/service.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: helloworld
5+
spec:
6+
type: LoadBalancer
7+
ports:
8+
- port: 80
9+
selector:
10+
app: helloworld

0 commit comments

Comments
 (0)