Merge pull request #5265 from chenhuan12/patch-76

fix the command output
This commit is contained in:
Andrew Chen
2017-09-01 16:05:36 -07:00
committed by GitHub
+19 -4
View File
@@ -259,6 +259,7 @@ Namespace: default
Node: gke-test-default-pool-239f5d02-x1kf/ Node: gke-test-default-pool-239f5d02-x1kf/
Start Time: Tue, 30 Aug 2016 17:58:56 -0700 Start Time: Tue, 30 Aug 2016 17:58:56 -0700
Labels: <none> Labels: <none>
Annotations: container.apparmor.security.beta.kubernetes.io/hello=localhost/k8s-apparmor-example-allow-write
Status: Failed Status: Failed
Reason: AppArmor Reason: AppArmor
Message: Pod Cannot enforce AppArmor: profile "k8s-apparmor-example-allow-write" is not loaded Message: Pod Cannot enforce AppArmor: profile "k8s-apparmor-example-allow-write" is not loaded
@@ -266,20 +267,34 @@ IP:
Controllers: <none> Controllers: <none>
Containers: Containers:
hello: hello:
Container ID:
Image: busybox Image: busybox
Image ID:
Port: Port:
Command: Command:
sh sh
-c -c
echo 'Hello AppArmor!' && sleep 1h echo 'Hello AppArmor!' && sleep 1h
Requests: State: Waiting
cpu: 100m Reason: Blocked
Environment Variables: <none> Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-dnz7v (ro)
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes: Volumes:
default-token-dnz7v: default-token-dnz7v:
Type: Secret (a volume populated by a Secret) Type: Secret (a volume populated by a Secret)
SecretName: default-token-dnz7v SecretName: default-token-dnz7v
QoS Tier: Burstable Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: <none>
Events: Events:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ ------- --------- -------- ----- ---- ------------- -------- ------ -------