Difference between revisions of "Node taints on managed node groups"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html
 
* https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html
  
<pre>
+
 
aws eks create-nodegroup \
+
aws eks create-nodegroup \
--cli-input-json '
+
  --cli-input-json '
{
+
{
  "clusterName": "my-cluster",
+
  "clusterName": "my-cluster",
  "nodegroupName": "node-taints-example",
+
  "nodegroupName": "node-taints-example",
  "subnets": [
+
  "subnets": [
    "subnet-1234567890abcdef0",
+
      "subnet-1234567890abcdef0",
    "subnet-abcdef01234567890",
+
      "subnet-abcdef01234567890",
    "subnet-021345abcdef67890"
+
      "subnet-021345abcdef67890"
  ],
+
    ],
  "nodeRole": "arn:aws:iam::111122223333:role/AmazonEKSNodeRole",
+
  "nodeRole": "arn:aws:iam::111122223333:role/AmazonEKSNodeRole",
  "taints": [
+
  "taints": [
    {
+
      {
        "key": "dedicated",
+
          "key": "dedicated",
        "value": "gpuGroup",
+
          "value": "gpuGroup",
        "effect": "NO_SCHEDULE"
+
          "effect": "NO_SCHEDULE"
    }
+
      }
  ]
+
    ]
}'
+
}'
</pre>
 
  
  

Revision as of 08:59, 25 January 2024


aws eks create-nodegroup \
 --cli-input-json '
{
  "clusterName": "my-cluster",
  "nodegroupName": "node-taints-example",
  "subnets": [
     "subnet-1234567890abcdef0",
     "subnet-abcdef01234567890",
     "subnet-021345abcdef67890"
   ],
  "nodeRole": "arn:aws:iam::111122223333:role/AmazonEKSNodeRole",
  "taints": [
     {
         "key": "dedicated",
         "value": "gpuGroup",
         "effect": "NO_SCHEDULE"
     }
   ]
}'


Advertising: