我正在尝试使用 Fargate 创建 Kubernetes 集群。
我将 eksctl 与 .config 文件(如下)一起使用。
如果您有使用 Fargate 创建基本 Kubernetes 集群的配置文件,请分享。
我收到了回滚消息,我不明白此错误消息的含义。
CREATE OR REPLACE FUNCTION myschema.post_current_person_has_reacted(
post myschema.post)
RETURNS boolean
LANGUAGE 'plpgsql'
COST 100
STABLE PARALLEL UNSAFE
AS $BODY$
DECLARE
res BOOLEAN := NULL;
prpostid uuid;
prpersonid uuid;
postid uuid;
BEGIN
SELECT
pr.post_id,
pr.person_id,
p.id
INTO prpostid, prpersonid, postid
FROM myschema.post_reactions pr INNER JOIN
myschema.post p
ON p.id = pr.post_id WHERE
pr.person_id = nullif(current_setting('jwt.claims.person_id', true), '')::uuid;
IF prpostid = postid and prpersonid = nullif(current_setting('jwt.claims.person_id', true), '')::uuid THEN
res = TRUE;
ELSE
res = FALSE;
END IF;
RETURN res;
END
$BODY$;
配置文件:
No export named eksctl-<name>-cluster::SubnetsPublic found.
Rollback requested by user.
ROLLBACK_COMPLETE
如果是
答案 0 :(得分:0)
请检查您提到的子网是否正确。对我来说,是不正确的子网导致了同样的问题。
此外,我注意到您仅提供私有子网。您可能想看看是否需要在 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