Getting Information About a Node Pool
You can get information about the node pools you have created.
Getting Information About a Node Pool Using kubectl
To get information about your node pools, use the kubectl get npl command following this syntax:
Request sample
$ kubectl get npl NAME_OF_NODEPOOL --output yaml
This command contains the following option that you may need to specify:
-
(optional)
output: The output format for the response (json|yaml|wide).
The kubectl get npl command returns exhaustive information about your node pool, including the ID of the OUTSCALE account running your clusters (oks.account-id), the ID of the applied security group (oks.nodepool.security-group), and the ID of your project’s control plane network (oks.network-id).
Result sample
apiVersion: oks.dev/v1beta2
kind: NodePool
metadata:
...
labels:
oks.account-id: "123456789876"
oks.network_id: vpc-1a2b3c4d
oks.nodepool.security-group: sg-abcd1ef2
name: testnodepool
resourceVersion: "1234"
uid: 12a345bc-d678-9e87-f65g-h4321i234jk5
spec:
autoHealing: true
autoscaling: false
desiredNodes: 2
maxNodes: 0
minNodes: 0
nodeType: tinav6.c1r1p2
taint: false
upgradeStrategy:
autoUpgradeEnabled: true
autoUpgradeMaintenance:
durationHours: 1
startHour: 12
weekDay: Tue
maxSurge: 0
maxUnavailable: 1
volumes:
- device: root
dir: /
filesystem: ext4
iops: 0
size: 100
type: gp2
zones:
- eu-west-2a
...
|
For more information on the content of this result sample, see Node Pool Manifest Reference. |
Related Pages