Bug 1313439 - [DOCS] [7.3] [RFE] - use 'kubectl' commands to determine health of Kubernetes master services
Summary: [DOCS] [7.3] [RFE] - use 'kubectl' commands to determine health of Kubernetes...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-RHEL-Atomic
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Negus
QA Contact: Vikram Goyal
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-01 15:32 UTC by Micah Abbott
Modified: 2019-03-06 00:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-18 03:56:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Micah Abbott 2016-03-01 15:32:00 UTC
In the docs for setting up a Kubernetes cluster [1], after the Kubernetes master services have been configured and started, the user could use the 'kubectl' command to test if they have been successful.  This is more native to Kubernetes than inspecting the output of 'ps'


-bash-4.2# kubectl cluster-info
Kubernetes master is running at http://localhost:8080

-bash-4.2# kubectl get nodes 
NAME      LABELS                          STATUS    AGE
master    kubernetes.io/hostname=master   Ready     22s

-bash-4.2# kubectl get services --all-namespaces=true
NAMESPACE   NAME         CLUSTER_IP   EXTERNAL_IP   PORT(S)   SELECTOR   AGE
default     kubernetes   10.254.0.1   <none>        443/TCP   <none>     5m

-bash-4.2# kubectl get pods --all-namespaces=true
NAMESPACE   NAME                             READY     STATUS    RESTARTS   AGE
default     kube-apiserver-master            1/1       Running   0          5m
default     kube-controller-manager-master   1/1       Running   0          5m
default     kube-scheduler-master            1/1       Running   0          5m


[1] https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/version-7/getting-started-with-containers/#creating_a_kubernetes_cluster_to_run_docker_formatted_container_images

Comment 2 Chris Negus 2016-08-30 19:18:37 UTC
Good suggestions. I'll add those or similar commands to the chapter for Atomic/RHEL 7.3.

Comment 3 Chris Negus 2016-10-24 22:49:29 UTC
The particular chapter mentioned in this RFE has been dropped. However, I'm adding the kubectl commands suggested to the remaining Kubernetes (all-in-one) chapter (https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/version-7/getting-started-with-containers/#get_started_orchestrating_containers_with_kubernetes). It will be published when RHEL 7.3 is released.

Comment 4 Vikram Goyal 2016-11-18 03:56:34 UTC
This is now covered in the Getting Started with Kubernetes guide: https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/7/single/getting-started-with-kubernetes/

Moving this to CLOSED --> CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.