Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains 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 ���bT � @ 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�� 7 _ | �| j �}|d dkr_g }dd� | �d��d �D �}|d �� dd � D ]}|�� }|sO|�|d � q?|d |v r\|�|d � q?|S td ��)Nz get nodesr z -l %s �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"