1

我是 Kubernetes 新手,正在eksctl努力在 AWS 中创建一个 EKS 集群。这是我的简单清单文件

kind: ClusterConfig
apiVersion: eksctl.io/v1alpha5

metadata:
  name: sandbox
  region: us-east-1
  version: "1.18"

managedNodeGroups:
  - name: ng-sandbox
    instanceType: r5a.xlarge
    privateNetworking: true
    desiredCapacity: 2
    minSize: 1
    maxSize: 4
    ssh:
      allow: true
      publicKeyName: my-ssh-key

fargateProfiles:
  - name: fp-default
    selectors:
      # All workloads in the "default" Kubernetes namespace will be
      # scheduled onto Fargate:
      - namespace: default
      # All workloads in the "kube-system" Kubernetes namespace will be
      # scheduled onto Fargate:
      - namespace: kube-system
  - name: fp-sandbox
    selectors:
      # All workloads in the "sandbox" Kubernetes namespace matching the
      # following label selectors will be scheduled onto Fargate:
      - namespace: sandbox
        labels:
          env: sandbox
          checks: passed

EKSClusterRole我为集群管理和EKSWorkerRole工作节点创建了 2 个角色?我在文件中的什么地方使用它们?我正在查看eksctl 配置文件架构页面,我不清楚在清单文件中的哪个位置使用它们。

4

1 回答 1

0

正如您所提到的,它在managedNodeGroups 文档中

managedNodeGroups:
  - ...
    iam:
      instanceRoleARN: my-role-arn
      # or
      # instanceRoleName: my-role-name

您还应该阅读

于 2021-02-04T23:41:07.440 回答