first commit

This commit is contained in:
iProbe 2022-10-18 16:59:37 +08:00
commit ba848e218d
1001 changed files with 152333 additions and 0 deletions

View file

@ -0,0 +1,28 @@
```
apiVersion: apps/v1 # kubectl explian rs查看
kind: ReplicaSet
metadata:
name: myapp
namespace: default
spec:
replicas: 2 # 副本数
selector: # 选择标签匹配的容器[与template中的匹配]
matchLabels:
app: myapp
release: v1
template:
metadata:
name: app-demo
labels:
app:myapp
release: v1
spec:
container:
name: myapp-ct
image: xxx/myapp.v1
ports:
name: myapp-http
containerPort:80
```