- 新增 deployment-2.yaml 文件 - 定义了一个名为 http-bin 的 Deployment - 设置 replicas 为 1 - 使用 kennethreitz/httpbin 镜像创建容器
25 lines
413 B
YAML
25 lines
413 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: http-bin
|
|
name: http-bin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: http-bin
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: http-bin
|
|
spec:
|
|
containers:
|
|
- image: kennethreitz/httpbin
|
|
name: httpbin
|
|
resources: {}
|
|
status: {}
|