Skip to content

Commit 0e529f4

Browse files
Sync strategies example
1 parent 55aba9d commit 0e529f4

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

sync-strategies/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/gitops-simple-app:v1
19+
ports:
20+
- containerPort: 8080

sync-strategies/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: NodePort
7+
selector:
8+
app: trivial-go-web-app
9+
ports:
10+
- nodePort: 31000
11+
protocol: TCP
12+
port: 8080

0 commit comments

Comments
 (0)