Rick
我是正式环境。有其他应用在跑。所以不敢乱搞。
应该怎么清空呢?
`
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: “6”
kubectl.kubernetes.io/last-applied-configuration: |
creationTimestamp: “2020-12-25T09:09:07Z”
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:labels:
.: {}
f:app: {}
f:spec:
f:progressDeadlineSeconds: {}
f:revisionHistoryLimit: {}
f:selector:
f:matchLabels:
.: {}
f:app: {}
f:strategy:
f:rollingUpdate:
.: {}
f:maxSurge: {}
f:maxUnavailable: {}
f:type: {}
f:template:
f:metadata:
f:labels:
.: {}
f:app: {}
.: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{“mountPath”:“/etc/localtime”}:
.: {}
f:mountPath: {}
f:name: {}
f:dnsPolicy: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:serviceAccount: {}
f:serviceAccountName: {}
f:terminationGracePeriodSeconds: {}
f:volumes:
.: {}
f:hostPath:
.: {}
f:path: {}
f:type: {}
f:name: {}
manager: kubectl
operation: Update
time: “2020-12-25T09:09:07Z”
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:spec:
f:replicas: {}
f:template:
f:metadata:
f:annotations:
.: {}
time: “2021-01-26T06:29:59Z”
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:deployment.kubernetes.io/revision: {}
f:status:
.: {}
k:{“type”:“Available”}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
k:{“type”:“Progressing”}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:replicas: {}
name: ks-installer
namespace: kubesphere-system
resourceVersion: “10190389”
selfLink: /apis/apps/v1/namespaces/kubesphere-system/deployments/ks-installer
uid: e943434e-a79d-4f29-9e9d-990ceb313a47
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
app: ks-install
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
kubesphere.io/restartedAt: “2021-01-26T06:30:47.210Z”
creationTimestamp: null
labels:
app: ks-install
spec:
containers:
- image: kubesphere/ks-installer:v3.0.0
imagePullPolicy: Always
name: installer
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/localtime
name: host-time
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: ks-installer
serviceAccountName: ks-installer
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /etc/localtime
type: ""
name: host-time
status:
availableReplicas: 1
conditions:
- lastTransitionTime: “2021-01-25T09:53:22Z”
lastUpdateTime: “2021-01-25T09:53:22Z”
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: “True”
type: Available
- lastTransitionTime: “2020-12-25T09:09:07Z”
lastUpdateTime: “2021-01-26T06:30:03Z”
message: ReplicaSet “ks-installer-877f59776” has successfully progressed.
reason: NewReplicaSetAvailable
status: “True”
type: Progressing
observedGeneration: 14
readyReplicas: 1
replicas: 1
updatedReplicas: 1
`