Skip to content

Commit 9f688b8

Browse files
committed
add samples
1 parent 598e5aa commit 9f688b8

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

sample-nginx-deployment.yaml

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

sample-nginx-replica.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apps/v1
2+
kind: ReplicaSet
3+
metadata:
4+
name: nginx-replicaset-2
5+
labels:
6+
app: nginx2
7+
spec:
8+
replicas: 4
9+
selector:
10+
matchLabels:
11+
app: nginx2
12+
template:
13+
metadata:
14+
labels:
15+
app: nginx2
16+
spec:
17+
containers:
18+
- name: nginx
19+
image: nginx:latest
20+
ports:
21+
- containerPort: 80

0 commit comments

Comments
 (0)