apiVersion: apps/v1
kind: Deployment
metadata:
name: 'my-server'
labels:
name: 'zs'
age : '18'
spec:
replicas: 3
selector:
matchLabels:
app: app1
test: test1
template:
metadata:
labels:
app: app1
test: test1
spec:
containers:
- name: 'my'
image: nginx:1.14.2
livenessProbe:
httpGet:
path: /index.html
port: 80
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 3
periodSeconds: 3
---
apiVersion: v1
kind: Pod
metadata:
name: 'my-pod'
labels:
name: 'zs'
age: '18'
spec:
containers:
- name: 'my-pod'
image: nginx:1.14.2
readinessProbe:
exec:
command: ['cd','/usr/local/share']
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 3
periodSeconds: 3
K8S - 哲学 Assign CPU Resources to Containers and Pods
最新推荐文章于 2024-08-30 20:09:55 发布