作者小头像 Lv.1
54 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据
个人勋章
TA还没获得勋章~
成长雷达
0
39
0
15
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据

达成规则

他的回复:
华为云账号:austin22在虚拟机上面搭建做作业。环境:  Installing : kubernetes-1.5.2-0.7.git269f928.el7.x86_64  Installing : 2:docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64  Installing : etcd-3.2.22-1.el7.x86_64 第一题:[brsysman@T8]~% kubectl get pods hwcka-001-austin22-3783630810-ccp8l -o yamlapiVersion: v1kind: Podmetadata:  annotations:    kubernetes.io/created-by: |      {"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"default","name":"hwcka-001-austin22-3783630810","uid":"83b4cfa8-c072-11e8-a3ab-005056a85cb5","apiVersion":"extensions","resourceVersion":"305"}}  creationTimestamp: 2018-09-25T03:24:30Z  generateName: hwcka-001-austin22-3783630810-  labels:    pod-template-hash: "3783630810"    run: hwcka-001-austin22  name: hwcka-001-austin22-3783630810-ccp8l  namespace: default  ownerReferences:  - apiVersion: extensions/v1beta1    controller: true    kind: ReplicaSet    name: hwcka-001-austin22-3783630810    uid: 83b4cfa8-c072-11e8-a3ab-005056a85cb5  resourceVersion: "314"  selfLink: /api/v1/namespaces/default/pods/hwcka-001-austin22-3783630810-ccp8l  uid: 83b5b714-c072-11e8-a3ab-005056a85cb5spec:  containers:  - image: nginx    imagePullPolicy: Always    name: hwcka-001-austin22    resources: {}    terminationMessagePath: /dev/termination-log  dnsPolicy: ClusterFirst  nodeName: 127.0.0.1  restartPolicy: Always  securityContext: {}  terminationGracePeriodSeconds: 30status:  conditions:  - lastProbeTime: null    lastTransitionTime: 2018-09-25T03:24:30Z    status: "True"    type: Initialized  - lastProbeTime: null    lastTransitionTime: 2018-09-25T03:24:30Z    message: 'containers with unready status: [hwcka-001-austin22]'    reason: ContainersNotReady    status: "False"    type: Ready  - lastProbeTime: null    lastTransitionTime: 2018-09-25T03:24:30Z    status: "True"    type: PodScheduled  containerStatuses:  - image: nginx    imageID: ""    lastState: {}    name: hwcka-001-austin22    ready: false    restartCount: 0    state:      waiting:        reason: ContainerCreating  hostIP: 127.0.0.1  phase: Pending  startTime: 2018-09-25T03:24:30Z第二题:[brsysman@T8]~% kubectl get deployment hwcka-002-austin22 -o yamlapiVersion: extensions/v1beta1kind: Deploymentmetadata:  annotations:    deployment.kubernetes.io/revision: "1"  creationTimestamp: 2018-09-25T03:30:18Z  generation: 1  labels:    run: hwcka-002-austin22  name: hwcka-002-austin22  namespace: default  resourceVersion: "747"  selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/hwcka-002-austin22  uid: 532f8513-c073-11e8-a3ab-005056a85cb5spec:  replicas: 2  selector:    matchLabels:      run: hwcka-002-austin22  strategy:    rollingUpdate:      maxSurge: 1      maxUnavailable: 1    type: RollingUpdate  template:    metadata:      creationTimestamp: null      labels:        run: hwcka-002-austin22    spec:      containers:      - image: nginx        imagePullPolicy: Always        name: hwcka-002-austin22        ports:        - containerPort: 9001          protocol: TCP        resources: {}        terminationMessagePath: /dev/termination-log      dnsPolicy: ClusterFirst      restartPolicy: Always      securityContext: {}      terminationGracePeriodSeconds: 30status:  conditions:  - lastTransitionTime: 2018-09-25T03:30:18Z    lastUpdateTime: 2018-09-25T03:30:18Z    message: Deployment does not have minimum availability.    reason: MinimumReplicasUnavailable    status: "False"    type: Available  observedGeneration: 1  replicas: 2  unavailableReplicas: 2  updatedReplicas: 2