You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.0 KiB
74 lines
2.0 KiB
10 months ago
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
annotations: {}
|
||
|
labels:
|
||
|
app: nginx-deployment-label
|
||
|
name: nginx-deployment
|
||
|
namespace: default
|
||
|
resourceVersion: '568978'
|
||
|
spec:
|
||
|
progressDeadlineSeconds: 600
|
||
|
replicas: 1
|
||
|
revisionHistoryLimit: 10
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: nginx-selector
|
||
|
strategy:
|
||
|
rollingUpdate:
|
||
|
maxSurge: 25%
|
||
|
maxUnavailable: 25%
|
||
|
type: RollingUpdate
|
||
|
template:
|
||
|
metadata:
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
app: nginx-selector
|
||
|
spec:
|
||
|
containers:
|
||
|
- env:
|
||
|
- name: password
|
||
|
value: '123'
|
||
|
- name: age
|
||
|
value: '18'
|
||
|
image: >-
|
||
|
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openresty/openresty:1.25.3.1-5-alpine-fat
|
||
|
imagePullPolicy: Always
|
||
|
name: nginx-container
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
name: http
|
||
|
protocol: TCP
|
||
|
- containerPort: 443
|
||
|
name: https
|
||
|
protocol: TCP
|
||
|
resources: {}
|
||
|
terminationMessagePath: /dev/termination-log
|
||
|
terminationMessagePolicy: File
|
||
|
dnsPolicy: ClusterFirst
|
||
|
restartPolicy: Always
|
||
|
schedulerName: default-scheduler
|
||
|
securityContext: {}
|
||
|
terminationGracePeriodSeconds: 30
|
||
|
status:
|
||
|
availableReplicas: 1
|
||
|
conditions:
|
||
|
- lastTransitionTime: '2024-09-14T12:15:22Z'
|
||
|
lastUpdateTime: '2024-09-14T12:15:22Z'
|
||
|
message: Deployment has minimum availability.
|
||
|
reason: MinimumReplicasAvailable
|
||
|
status: 'True'
|
||
|
type: Available
|
||
|
- lastTransitionTime: '2024-09-14T12:15:20Z'
|
||
|
lastUpdateTime: '2024-09-14T12:15:22Z'
|
||
|
message: ReplicaSet "nginx-deployment-86b7dc4856" has successfully progressed.
|
||
|
reason: NewReplicaSetAvailable
|
||
|
status: 'True'
|
||
|
type: Progressing
|
||
|
observedGeneration: 1
|
||
|
readyReplicas: 1
|
||
|
replicas: 1
|
||
|
updatedReplicas: 1
|
||
|
|