Last active
November 29, 2016 16:13
-
-
Save jwmatthews/b1d615215b1033286b755b94c85a8cf5 to your computer and use it in GitHub Desktop.
Example output from oc describe pods for an atomicapp with an intentional bad healthcheck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pwd | |
/git/CAP/nulecule-library/mattermost-badhealthcheck-atomicapp/artifacts/openshift | |
$ cat pod.yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: mattermost | |
labels: | |
name: mattermost | |
spec: | |
containers: | |
- image: $image | |
name: mattermost | |
env: | |
- name: DRIVER_NAME | |
value: ${DRIVER_NAME} | |
- name: DATABASE_SERVICE_NAME | |
value: ${DATABASE_SERVICE_NAME} | |
- name: MYSQL_USER | |
value: ${MYSQL_USER} | |
- name: MYSQL_PASSWORD | |
value: ${MYSQL_PASSWORD} | |
- name: MYSQL_DATABASE | |
value: ${MYSQL_DATABASE} | |
ports: | |
- name: mattermost | |
containerPort: $hostport | |
livenessProbe: | |
httpGet: | |
path: /badpathandport | |
port: 12345 | |
initialDelaySeconds: 5 | |
timeoutSeconds: 3 | |
$ oc describe pods mattermost | |
Name: mattermost | |
Namespace: cap | |
Node: cap.example.com/10.0.2.15 | |
Start Time: Tue, 29 Nov 2016 11:02:52 -0500 | |
Labels: name=mattermost,namespace=cap | |
Status: Running | |
IP: 172.17.0.3 | |
Controllers: <none> | |
Containers: | |
mattermost: | |
Container ID: docker://5ab67d4ca0ed464d3ef6f86152623b7aa8c892a0545fbd10f0f6a7325d3d8457 | |
Image: jmontleon/mattermost | |
Image ID: docker://sha256:d6812dc43632a71c8f2c1d228b235fffd8122b2818008846ffbb70230631494c | |
Port: 8065/TCP | |
QoS Tier: | |
cpu: BestEffort | |
memory: BestEffort | |
State: Waiting | |
Reason: CrashLoopBackOff | |
Last State: Terminated | |
Reason: Completed | |
Exit Code: 0 | |
Started: Tue, 29 Nov 2016 11:06:52 -0500 | |
Finished: Tue, 29 Nov 2016 11:07:02 -0500 | |
Ready: False | |
Restart Count: 6 | |
Liveness: http-get http://:12345/badpathandport delay=0s timeout=1s period=10s #success=1 #failure=3 | |
Environment Variables: | |
DRIVER_NAME: mysql | |
DATABASE_SERVICE_NAME: mariadb | |
MYSQL_USER: db_user | |
MYSQL_PASSWORD: db_pass | |
MYSQL_DATABASE: mattermost_db | |
Conditions: | |
Type Status | |
Ready False | |
Volumes: | |
default-token-y3owa: | |
Type: Secret (a volume populated by a Secret) | |
SecretName: default-token-y3owa | |
Events: | |
FirstSeen LastSeen Count From SubobjectPath Type Reason Message | |
--------- -------- ----- ---- ------------- -------- ------ ------- | |
6m 6m 1 {default-scheduler } Normal Scheduled Successfully assigned mattermost to cap.example.com | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id 24c9f2f60e78 | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id 24c9f2f60e78 | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id 24c9f2f60e78: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id 0edef13df91a | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id 0edef13df91a | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id 0edef13df91a: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id b77e2884fc92 | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id b77e2884fc92 | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id b77e2884fc92: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id ed9e03109127 | |
5m 5m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id ed9e03109127 | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id ed9e03109127: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
4m 4m 3 {kubelet cap.example.com} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "mattermost" with CrashLoopBackOff: "Back-off 20s restarting failed container=mattermost pod=mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id 84ce64f0b2b5 | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id 84ce64f0b2b5 | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id 84ce64f0b2b5: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id 2d937f8c5fba | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id 2d937f8c5fba | |
4m 4m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id 2d937f8c5fba: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
4m 2m 8 {kubelet cap.example.com} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "mattermost" with CrashLoopBackOff: "Back-off 1m20s restarting failed container=mattermost pod=mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" | |
6m 2m 7 {kubelet cap.example.com} spec.containers{mattermost} Normal Pulling pulling image "jmontleon/mattermost" | |
5m 2m 7 {kubelet cap.example.com} spec.containers{mattermost} Normal Pulled Successfully pulled image "jmontleon/mattermost" | |
2m 2m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Started Started container with docker id 5ab67d4ca0ed | |
2m 2m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Created Created container with docker id 5ab67d4ca0ed | |
5m 2m 9 {kubelet cap.example.com} spec.containers{mattermost} Warning Unhealthy Liveness probe failed: Get http://172.17.0.3:12345/badpathandport: dial tcp 172.17.0.3:12345: connection refused | |
2m 2m 1 {kubelet cap.example.com} spec.containers{mattermost} Normal Killing Killing container with docker id 5ab67d4ca0ed: pod "mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" container "mattermost" is unhealthy, it will be killed and re-created. | |
2m 4s 13 {kubelet cap.example.com} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "mattermost" with CrashLoopBackOff: "Back-off 2m40s restarting failed container=mattermost pod=mattermost_cap(484f583c-b64d-11e6-aeda-5254009f9a8b)" | |
4m 4s 24 {kubelet cap.example.com} spec.containers{mattermost} Warning BackOff Back-off restarting failed docker container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment