zoukankan      html  css  js  c++  java
  • aws eks 通过eksctl 创建nodegroup

    参考官方文档:https://eksctl.io/usage/managing-nodegroups/

    创建nodegroup命令

    eksctl create nodegroup --cluster=<clusterName> [--name=<nodegroupName>]

    例如
    eksctl create nodegroup --cluster=faberbeta --name=high-memory-group

    看样子这个方式不是很好,因为不能详细配置nodegroup服务器的配置

    推荐使用--config-file指定配置文件来创建nodegroup

    命令:
    eksctl create nodegroup --config-file=high-memory-cluster.yaml

    high-memory-cluster.yaml的配置文件

    apiVersion: eksctl.io/v1alpha5
    kind: ClusterConfig
    
    metadata:
      name: faberbeta
      region: ap-east-1
    
    managedNodeGroups:
      - name: high-mem-nodegroup
        instanceType: r5.large
        minSize: 3
        maxSize: 6
        desiredCapacity: 3
        volumeSize: 30
        ssh:
          allow: true
          publicKeyPath: /root/.ssh/id_rsa.pub
        labels: {role: worker}
        tags:
          nodegroup-role: worker
        iam:
          withAddonPolicies:
            imageBuilder: true
            autoScaler: true
            externalDNS: true
            certManager: true
            appMesh: true
            appMeshPreview: true
            ebs: true
            fsx: true
            efs: true
            albIngress: true
            xRay: true
            cloudWatch: true
    
    本人水平有限,还在不断学习中 难免有很多错误或者遗漏,望见谅
  • 相关阅读:
    Mybatis分页插件
    Mybatis代码自动生成
    Spring-Mybatis依赖
    Spring-test单元测试
    Spring-json依赖
    Spring-MVC依赖
    Log4j日志依赖
    Spring数据库连接池依赖
    Spring-JDBC依赖
    Spring依赖
  • 原文地址:https://www.cnblogs.com/faberbeta/p/14298102.html
Copyright © 2011-2022 走看看