增加一些k8s的应用

This commit is contained in:
2022-07-04 18:22:30 +08:00
parent eadf98e33c
commit 994a5d4b1c
3 changed files with 67 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: frontend
namespace: nginx
labels:
app: guestbook
tier: frontend
spec:
# modify replicas according to your case
replicas: 3
selector:
matchLabels:
tier: frontend
template:
metadata:
labels:
tier: frontend
spec:
containers:
- name: nginx
image: nginx