amazon-web-services - 如何使用 Fargate 创建 AWS Kubernetes 集群 (EKS)?
问题描述
我正在尝试使用 Fargate 创建一个 Kubernetes 集群。
我正在使用带有 .config 文件的 eksctl(如下)。
如果您有使用 Fargate 创建基本 Kubernetes 集群的配置文件,请分享。
我收到 ROLLBACK,我不明白此错误消息的含义。
No export named eksctl-<name>-cluster::SubnetsPublic found.
Rollback requested by user.
ROLLBACK_COMPLETE
配置文件:
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: test-kb-cluster-w-fg-profile
region: us-west-2
version: "1.19"
vpc:
subnets:
private:
us-west-2a: { id: subnet-<hash> }
us-west-2b: { id: subnet-<hash> }
us-west-2c: { id: subnet-<hash> }
nodeGroups:
- name: test-eks-linux-nodes
instanceType: t2.micro
desiredCapacity: 1
fargateProfiles:
- name: test-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
如果是
解决方案
请检查您提到的子网是否正确。对我来说,是不正确的子网导致了同样的问题。
另外,我注意到您只提供私有子网。您可能想查看是否需要在 NG 定义下将 privateNetworking 设置为 true。
privateNetworking: true # if only 'Private' subnets are given, this must be enabled
参考:https ://github.com/weaveworks/eksctl/blob/main/examples/04-existing-vpc.yaml
推荐阅读
- python - 如何通过 datetime 模块将 UTC 格式时间“2019-05-15T16:08:37+08:00”转换为通常的 datetime 对象?
- python - Django 视图集操作在中间件中看不到请求添加的数据
- python - 如何在 django 中为每个用户设置唯一的对象?
- c# - 带有文件列表的表格,用密码保护
- recaptcha - 验证码 v3。如果表单提交两次,验证码总是失败
- swift - 如何在 Swift iOS 中重新启动应用程序后使用 GIDSignIn 获取 gmail 登录的用户详细信息
- python - Selenium:如何在没有 href 标识符的情况下单击链接
- angular - 如何从我的 Angular 项目中删除 Bootstrap?
- python - 按两列中的值生成行
- javascript - TCP Packet 数据开头的怪事