Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/collector/clusters/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g@ � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�quote)�Clusterc @ s: e Zd ZdZdZdZd gZddiZdZddgZ dd � 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�kubernetes-masterzkubernetes.allZonZkubectl�label� �-Filter node list to those with matching label�role�,Filter node list to those with matching rolec C s� | j d7 _ | jd�r8| j dt| jd��� d�7 _ | j| j �}|d dkr�g }dd� | jd �jd �D �}xR|d j� dd � D ]:}|j� }|s�|j|d � q�|d |kr�|j|d � q�W |S td��d S )Nz get nodesr z -l � Zstatusr c S s g | ]}|r|�qS � r )�.0�xr r � /usr/lib/python3.6/kubernetes.py� <listcomp>) s z(kubernetes.get_nodes.<locals>.<listcomp>r �,�output� � z-Node enumeration did not return usable output)�cmdZ get_optionr Zexec_primary_cmd�split� splitlines�append� Exception)�self�resZnodesZrolesZnodelnZnoder r r � get_nodes"