Skip to content

Commit 609852f

Browse files
First commit
0 parents  commit 609852f

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# simple-kubernetes-deployment

deployment.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: simple-deployment
6+
spec:
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: trivial-go-web-app
11+
template:
12+
metadata:
13+
labels:
14+
app: trivial-go-web-app
15+
spec:
16+
containers:
17+
- name: webserver-simple
18+
image: docker.io/kostiscodefresh/simple-web-app:3d9b390
19+
ports:
20+
- containerPort: 8080

service.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: simple-service
5+
spec:
6+
type: LoadBalancer
7+
selector:
8+
app: trivial-go-web-app
9+
ports:
10+
- protocol: TCP
11+
port: 80
12+
targetPort: 8080

0 commit comments

Comments
 (0)