| Server IP : 167.99.254.82 / Your IP : 216.73.216.188 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/ |
Upload File : |
o
G%@i@ � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�quote)�Clusterc @ s: e Zd ZdZdZdZd gZddiZdZddgZ d d
� Z
dS )�
kubernetesz�
The kuberentes cluster profile is intended to be used on kubernetes
clusters built from the upstream/source kubernetes (k8s) project. It is
not intended for use with other projects or platforms that are built ontop
of kubernetes.
zCommunity Kubernetes)zkubernetes-masterzkubernetes.all�on�kubectl)�label� z-Filter node list to those with matching label)�roler z,Filter node list to those with matching rolec C s� | j d7 _ | �d�r| j dt| �d��� d�7 _ | �| j �}|d dkrag }dd� | �d ��d
�D �}|d �� dd � D ]}|�� }|sQ|�|d � qA|d
|v r^|�|d � qA|S td��)Nz
get nodesr z -l � �statusr c S s g | ]}|r|�qS � r )�.0�xr r �C/usr/lib/python3/dist-packages/sos/collector/clusters/kubernetes.py�
<listcomp>) s z(kubernetes.get_nodes.<locals>.<listcomp>r �,�output� � z-Node enumeration did not return usable output)�cmd�
get_optionr �exec_primary_cmd�split�
splitlines�append� Exception)�self�res�nodes�roles�nodeln�noder r r � get_nodes"