RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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:
Embargoed:


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.