apiVersion: apps/v1beta2
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "2"
creationTimestamp: "2020-06-02T09:36:11Z"
generation: 2
labels:
k8s-app: new-nginx
qcloud-app: new-nginx
name: new-nginx
namespace: test
resourceVersion: "8614784222"
selfLink: /apis/apps/v1beta2/namespaces/test/deployments/new-nginx
uid: 7e77455e-a4b4-11ea-9c35-e28957d7d0b3
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: new-nginx
qcloud-app: new-nginx
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
k8s-app: new-nginx
qcloud-app: new-nginx
spec:
containers:
- env:
- name: RUNTIME
valueFrom:
configMapKeyRef:
key: RUNTIME
name: nginx-env
optional: false
- name: TZ
valueFrom:
configMapKeyRef:
key: TZ
name: nginx-env
optional: false
image: ccr.ccs.tencentyun.com/tmptest/nwx-nginx
imagePullPolicy: IfNotPresent
name: new-my-nginx
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
securityContext:
privileged: false
procMount: Default
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: data-volume
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: test-secret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: data-volume
persistentVolumeClaim:
claimName: nwx-pvc1
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2020-06-03T02:41:32Z"
lastUpdateTime: "2020-06-03T02:41:32Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2020-06-02T09:36:11Z"
lastUpdateTime: "2020-06-03T02:51:59Z"
message: ReplicaSet "new-nginx-86774775f6" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 2
readyReplicas: 1
replicas: 1
updatedReplicas: 1