for-matK零S
- 已编辑
[root@master100 ~]# kubectl -n test-namespace get deployment productpage-v1 -o yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
creator: admin
deployment.kubernetes.io/revision: "1"
kubesphere.io/isElasticReplicas: "false"
servicemesh.kubesphere.io/enabled: "true"
creationTimestamp: "2019-10-17T03:29:35Z"
generation: 1
labels:
app: productpage
app.kubernetes.io/name: bookinfo
app.kubernetes.io/version: v1
version: v1
name: productpage-v1
namespace: test-namespace
ownerReferences:
- apiVersion: app.k8s.io/v1beta1
blockOwnerDeletion: true
controller: false
kind: Application
name: bookinfo
uid: 57b01a89-f08e-11e9-93ab-52560ade2364
resourceVersion: "9687755"
selfLink: /apis/extensions/v1beta1/namespaces/test-namespace/deployments/productpage-v1
uid: 57b037eb-f08e-11e9-93ab-52560ade2364
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: productpage
app.kubernetes.io/name: bookinfo
app.kubernetes.io/version: v1
version: v1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
sidecar.istio.io/inject: "true"
creationTimestamp: null
labels:
app: productpage
app.kubernetes.io/name: bookinfo
app.kubernetes.io/version: v1
version: v1
spec:
containers:
- image: kubesphere/examples-bookinfo-productpage-v1:1.13.0
imagePullPolicy: IfNotPresent
name: productpage
ports:
- containerPort: 9080
name: http-web
protocol: TCP
resources:
limits:
cpu: "1"
memory: 1000Mi
requests:
cpu: 10m
memory: 10Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-10-17T03:29:56Z"
lastUpdateTime: "2019-10-17T03:29:56Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2019-10-17T03:29:35Z"
lastUpdateTime: "2019-10-17T03:29:56Z"
message: ReplicaSet "productpage-v1-579dfbcddd" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1